/* ── Shared legal page styles (T&C, Privacy Policy) — v2, mobile-first ── */

.legal-page {
    padding: 40px 0 0;
}

.legal-page-header {
    margin-bottom: 36px;
}

.legal-page-header h1 {
    font-family: var(--v2-font);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.25;
    color: var(--v2-fg);
    margin-bottom: 0;
}

/* "Last updated: 3 August 2026" — sits directly under the page title on all three legal pages,
   matching where the client's source documents place it. Deliberately quiet: it is a fact about
   the document, not a heading, so it must not compete with the h1 above or the first section
   heading below. Not an <h*> for the same reason. */
.legal-page-header .legal-updated {
    font-family: var(--v2-font);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    color: var(--v2-muted);
    margin-top: 8px;
    margin-bottom: 0;
}

/* ── Content body ── */
/* .legal-content {
    max-width: 760px;
} */

.legal-content h1,
.legal-content h2 {
    font-family: var(--v2-font);
    font-weight: 600;
    color: var(--v2-fg);
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.legal-content h1 {
    font-size: 22px;
}

.legal-content h2 {
    font-size: 17px;
}

.legal-content p {
    font-family: var(--v2-font);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.8;
    color: var(--v2-muted);
    margin-bottom: 14px;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.legal-content ul li {
    font-family: var(--v2-font);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.8;
    color: var(--v2-muted);
    margin-bottom: 6px;
}

.legal-content ul li ul {
    margin-top: 6px;
    margin-bottom: 0;
}

.legal-content strong {
    font-weight: 600;
    color: var(--v2-fg);
}

.legal-content a {
    color: var(--v2-primary);
    font-weight: 400;
    word-break: break-all;
}

.legal-content a:hover {
    color: var(--v2-primary-hover);
}

/* ── Desktop ── */
@media (min-width: 768px) {
    .legal-page {
        padding: 64px 0 0;
    }

    .legal-page-header h1 {
        font-size: 38px;
    }

    .legal-content h1 {
        font-size: 24px;
    }

    .legal-content h2 {
        font-size: 18px;
        margin-top: 40px;
    }

    .legal-content p,
    .legal-content ul li {
        font-size: 15px;
    }
}

/* Cookie-policy tables. Wrapped in their own horizontal scroll container so a
   four-column table never forces the page body to scroll sideways on mobile
   (see mistakes.md: the site must never scroll horizontally). */
.legal-content .legal-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 14px;
    white-space: nowrap;
}

.legal-content .legal-table thead th {
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--v2-border, #e6e6e6);
    padding: 10px 14px 10px 0;
}

.legal-content .legal-table td {
    vertical-align: top;
    border-bottom: 1px solid var(--v2-border, #e6e6e6);
    padding: 10px 14px 10px 0;
}

.legal-content .legal-table td:nth-child(3) {
    white-space: normal;
    min-width: 260px;
}

.legal-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
    background: #f4f4f4;
    padding: 1px 5px;
    border-radius: 4px;
}
