/* ── Legal Layout ───────────────────────────────────────── */
.legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

/* ── Table of Contents ──────────────────────────────────── */
.legal-toc {
    position: sticky;
    top: 88px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.legal-toc-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--ink-4);
    margin-bottom: 12px;
}

.legal-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-toc-link {
    font-size: .82rem;
    color: var(--ink-3);
    padding: 6px 10px;
    border-radius: 6px;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.legal-toc-link:hover {
    background: var(--brand-light);
    color: var(--brand);
}

.legal-toc-num {
    width: 18px;
    height: 18px;
    background: var(--brand-light);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 700;
    color: var(--brand);
    flex-shrink: 0;
}

/* ── Content Area ───────────────────────────────────────── */
.legal-content { max-width: 680px; }

.legal-body h2,
.legal-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: 40px;
    margin-bottom: 14px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-body h2:first-child,
.legal-body h3:first-child { margin-top: 0; }

.legal-body h2:last-child,
.legal-body h3:last-child  { border-bottom: none; }

.legal-body p {
    color: var(--ink-2);
    line-height: 1.8;
    font-size: .925rem;
    margin-bottom: 16px;
}

.legal-body ul,
.legal-body ol {
    color: var(--ink-2);
    line-height: 1.8;
    font-size: .925rem;
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-body li    { margin-bottom: 6px; }
.legal-body a     { color: var(--brand); text-decoration: underline; }
.legal-body strong { color: var(--ink); font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc    { position: static; margin-bottom: 28px; }
}
