/* ============================================================
   Impressum + Datenschutz — schlankes, lesbares Layout
   (eigene Body-Klasse, NICHT login-page — die hat overflow:hidden)
   ============================================================ */

/* theme.css setzt global `html, body { height: 100% }` — das kappt die
   Scroll-Höhe auf den Viewport. Für die Legal-Seiten überschreiben. */
body.legal-page {
    height: auto;
    min-height: 100vh;
    padding: 24px 16px 60px;
    background:
        radial-gradient(ellipse at top, rgba(225, 6, 0, 0.10), transparent 60%),
        var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-y: auto;
}

.legal-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 8px 40px;
}

.legal-header {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.legal-card {
    padding: 40px 44px;
    line-height: 1.65;
}

.legal-card h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 24px;
    letter-spacing: 0.01em;
}

.legal-card h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 40px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-card h2:first-of-type {
    margin-top: 24px;
}

.legal-card h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin: 24px 0 6px;
    text-transform: none;
}

.legal-card p,
.legal-card ul {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 10px 0;
}

.legal-card ul {
    padding-left: 22px;
}

.legal-card li {
    margin-bottom: 6px;
}

.legal-card strong {
    color: var(--text-primary);
}

.legal-card a {
    color: var(--li-red-bright, #ff4040);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}
.legal-card a:hover {
    border-bottom-color: var(--li-red-bright, #ff4040);
}

.legal-card code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 1px 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
}

.legal-banner {
    margin: 8px 0 24px;
    padding: 14px 18px;
    background: rgba(225, 6, 0, 0.06);
    border: 1px solid var(--li-red-dim);
    border-left: 3px solid var(--li-red);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-secondary);
}

.legal-meta {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* Footer-Links auf Login-Seite + im eingeloggten Layout */
.legal-footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
    font-size: 12px;
}
.legal-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}
.legal-footer-links a:hover {
    color: var(--text-primary);
}

/* Sidebar-Variante (vertikal, kleiner) */
.sidebar__legal {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px 0 4px;
    font-size: 11px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.sidebar__legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}
.sidebar__legal a:hover {
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .legal-card { padding: 24px 20px; }
    .legal-card h1 { font-size: 22px; }
}
