/* Herzensbilder Studio — Legal Pages (Impressum, Datenschutz)
   Shared stylesheet for legal/secondary pages. Designed to read calmly,
   pair with the editorial type system, and respect the site's reduced palette. */

.legal-page {
    padding: 160px 40px 80px;
}

.legal-page .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
}

/* Eyebrow above the page title — small uppercase label in accent color. */
.legal-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 18px;
}

/* Strong, calm H1 — same family as the rest of the site but smaller scale
   so it reads as a document title, not a hero. */
.legal-page h1 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-color);
    margin: 0 0 12px;
}

.legal-meta {
    font-size: 0.8rem;
    color: #999;
    letter-spacing: 0.04em;
    margin-bottom: 56px;
}

/* Section headings — kept compact and serif for editorial feel.
   The high-specificity selector deliberately overrides the global
   h2 { font-size: 3rem } so these never blow up on legal pages. */
.legal-page section + section {
    margin-top: 36px;
}

.legal-page .legal-section {
    border-top: 1px solid var(--line-color);
    padding-top: 24px;
}

.legal-page .legal-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-page h2,
.legal-page .legal-section h2 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-color);
    margin: 0 0 14px;
    letter-spacing: 0.1px;
}

.legal-page h2 .num {
    display: inline-block;
    min-width: 1.8em;
    color: var(--accent-color);
    font-style: italic;
}

.legal-page p,
.legal-page li {
    color: #4a4a4a;
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 10px;
}

.legal-page p:last-child,
.legal-page li:last-child {
    margin-bottom: 0;
}

.legal-page ul {
    list-style: disc;
    padding-left: 1.3rem;
    margin: 6px 0 12px;
}

.legal-page li {
    padding-left: 0.25rem;
}

.legal-page a {
    color: inherit;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-page a:hover {
    color: var(--accent-color);
}

/* Address block — slight visual lift, fixed-width feel without monospace. */
.legal-address {
    margin: 4px 0 10px;
    line-height: 1.85;
    color: #4a4a4a;
    font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.legal-footer {
    border-top: 1px solid var(--line-color);
    padding: 32px 40px 48px;
    max-width: 1200px;
    margin: 40px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.legal-footer-brand {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: #888;
    border: none;
    transition: color 0.2s ease;
}

.legal-footer-brand span {
    color: var(--accent-color);
}

.legal-footer-brand:hover {
    color: var(--text-color);
    border: none;
}

.legal-footer-nav {
    display: flex;
    gap: 28px;
}

.legal-footer-nav a {
    font-size: 0.78rem;
    color: #888;
    border: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.legal-footer-nav a:hover {
    color: var(--accent-color);
    border: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .legal-page {
        padding: 110px 22px 56px;
    }
    .legal-page h1 {
        font-size: 1.9rem;
    }
    .legal-meta {
        margin-bottom: 40px;
    }
    .legal-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 22px 40px;
        gap: 14px;
        margin-top: 24px;
    }
    .legal-footer-nav {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .legal-page h1 {
        font-size: 1.65rem;
    }
    .legal-page h2,
    .legal-page .legal-section h2 {
        font-size: 1.05rem;
    }
}
