.legal-content { max-width: 960px; color: #334f55; font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.legal-content h2 { margin: 44px 0 20px; font-size: clamp(25px, 3vw, 32px); line-height: 1.3; color: var(--theme-color2); }
.legal-content h3 { margin: 30px 0 14px; font-size: 22px; line-height: 1.4; color: var(--theme-color2); }
.legal-content h4 { margin: 24px 0 12px; font-size: 19px; line-height: 1.4; }
.legal-content p { margin-bottom: 20px; }
.legal-content ul { padding-left: 24px; margin: 20px 0; list-style: disc; }
.legal-content li { margin-bottom: 12px; }
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--theme-color2); }
.legal-draft { padding: 22px 26px; background: #f1f6f5; border-left: 4px solid var(--theme-color1); border-radius: 8px; font-size: 16px; }
.legal-draft p { margin: 8px 0 0; }
@media (max-width: 767.98px) { .legal-content { font-size: 16px; } .legal-draft { padding: 18px; } }

.legal-content [id] { scroll-margin-top: 140px; }

/* Full-width return link following the contact form privacy information. */
.legal-content .legal-contact-return {
  display: block;
  width: 100%;
  margin: 12px 0 30px;
  padding: 18px 24px;
  border-radius: 8px;
  background: var(--theme-color1);
  color: #173d46;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.legal-content .legal-contact-return:hover,
.legal-content .legal-contact-return:focus-visible {
  background: var(--theme-color2);
  color: #fff;
}
.legal-content .legal-contact-return:focus-visible {
  outline: 3px solid var(--theme-color2);
  outline-offset: 4px;
}

/* Mobile only (Impressum + Datenschutz): less space above and below the page title. */
@media (max-width: 767.98px) {
  .subpage-intro { padding: 100px 0 36px; }
  .subpage-intro h1 { margin-top: 0; }
  .subpage-content { padding-top: 32px; }
  .legal-content > h2:first-child { margin-top: 0; }
}

/* Mobile only, Impressum: show the line breaks again (the theme hides every <br>
   below 768px), so address, contacts and register details stay readable. */
@media (max-width: 767.98px) {
  .legal-impressum br { display: inline; }
}
