/* ---------- Legal reading layout ---------- */
.legal-wrap {
    display: grid;
    grid-template-columns: 1fr minmax(0, 680px) 1fr;
    gap: 48px;
    padding: 40px 32px 80px;
    max-width: 1240px;
    margin: 0 auto;
    align-items: start;
}
.legal-wrap > .reading { grid-column: 2; padding: 0; }
.legal-wrap > .toc-rail {
    grid-column: 3;
    position: sticky;
    top: 80px;
    padding-top: 120px;
    max-width: 220px;
    justify-self: start;
}
/* .crumbs, h1.title, p.subtitle, base .prose rules live in shell.css.
 * Legal-specific overrides below. */

/* Legal page uses a wider subtitle gap and dash-style bullet lists. */
.legal-wrap p.subtitle { margin-bottom: 56px; }
.legal-wrap .prose em { color: var(--muted); }
.legal-wrap .prose ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4em;
    display: grid;
    gap: 10px;
}
.legal-wrap .prose ul li { padding-left: 24px; position: relative; }
.legal-wrap .prose ul li::before {
    content: "—";
    position: absolute;
    left: 0; top: 0;
    color: var(--amber);
    font-weight: 500;
}

/* Legal-only: address block for Imprint, DPA contact, etc. */
.prose .address {
    font-style: normal;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 1.4em;
    padding: 14px 18px;
    border-left: 2px solid var(--amber);
    background: var(--bg-2);
    border-radius: var(--radius-sm);
}
.prose .address .name { color: var(--text); font-weight: 600; }

.toc-rail h4 {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--amber);
    margin: 0 0 14px;
}
.toc-rail ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.4;
}
.toc-rail ol a {
    color: var(--muted);
    border-bottom: none;
    display: block;
    padding-left: 12px;
    border-left: 1px solid var(--rule-2);
}
.toc-rail ol a:hover { color: var(--amber); border-left-color: var(--amber); }

.toc-inline { display: none; }

.crosslinks {
    margin-top: 72px;
    padding-top: 28px;
    border-top: 1px solid var(--rule);
    font-family: var(--font-serif);
    font-style: italic;
    font-variation-settings: "opsz" 14, "SOFT" 70;
    font-size: 15px;
    color: var(--muted);
}
.crosslinks a {
    color: var(--muted);
    border-bottom: 1px dotted var(--rule-2);
    margin: 0 4px;
}
.crosslinks a:hover { color: var(--amber); border-bottom-color: currentColor; }
.crosslinks .sep { margin: 0 10px; opacity: .55; }

@media (max-width: 980px) {
    .legal-wrap {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 32px 24px 40px;
    }
    .legal-wrap > .reading { grid-column: 1; }
    .legal-wrap > .toc-rail { display: none; }
    .toc-inline {
        display: block;
        margin: 0 0 40px;
        padding: 18px 20px;
        border: 1px solid var(--rule-2);
        border-radius: var(--radius-md);
    }
    .toc-inline h4 {
        font-family: var(--font-sans);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: var(--amber);
        margin: 0 0 10px;
    }
    .toc-inline ol {
        list-style: none; padding: 0; margin: 0;
        display: grid; gap: 6px; font-size: 14px;
    }
    .toc-inline ol a { color: var(--muted); border-bottom: none; }
}

