/* Legal pages (Impressum, Datenschutz, AGB) — site-style overrides
   Loaded after tokens.css / nav.css / kontakt-footer.css / promo.css / fab-voice.css.
   Keeps only legal-specific layout: page header below sticky nav and readable
   long-form typography for the legal text body. No design tokens here — they
   live in tokens.css. */

/* Schlanker Seitenkopf statt Hero-Bild */
.legal-hero {
    background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--border);
    padding: clamp(7rem, 10vw, 9rem) 1.5rem 3rem;
}
.legal-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}
.legal-hero .section-label {
    margin-bottom: 0.75rem;
}
.legal-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.legal-hero .legal-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 60ch;
}

/* Lesefluss für lange Rechtstexte */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
    color: var(--text);
}
.legal-content section {
    margin-bottom: 2.5rem;
}
.legal-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.4rem, 2.4vw, 1.7rem);
    color: var(--text);
    line-height: 1.25;
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    padding-top: 0.25rem;
}
.legal-content section:first-child h2 {
    margin-top: 0;
}
.legal-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.legal-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 1rem;
}
.legal-content ul,
.legal-content ol {
    margin: 0.5rem 0 1.25rem 1.5rem;
    padding-left: 0.5rem;
    color: var(--text);
    line-height: 1.75;
}
.legal-content li {
    margin-bottom: 0.4rem;
}
.legal-content a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color 0.2s;
}
.legal-content a:hover {
    color: var(--red-dark);
}
.legal-content em {
    font-style: italic;
}

.legal-back {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}
.legal-back a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}
.legal-back a:hover {
    color: var(--red);
}

/* Aktiv-Markierung im Footer */
footer a[aria-current="page"] {
    color: var(--red-bright);
    font-weight: 600;
}

/* Promo-Banner-Abstand am Seitenende, damit der fixe Banner nichts überdeckt */
body:not(.promo-dismissed) .legal-content {
    padding-bottom: 8rem;
}

@media (max-width: 720px) {
    .legal-hero {
        padding: 6rem 1.25rem 2.25rem;
    }
    .legal-content {
        padding: 2.5rem 1.25rem 4rem;
    }
    body:not(.promo-dismissed) .legal-content {
        padding-bottom: 12rem;
    }
}
