/* Terms page (/landing/terms): a plain legal document: title block, one reading column, numbered clauses. */
.terms-page {
    --tp-ink: #f3f6fb;
    --tp-muted: #a9b7cb;
    --tp-sheet: #0e1d33;
    --tp-line: #24334a;
    --tp-gold: #e1ad4a;
    padding: 12px 0 28px;
}

[data-bs-theme="light"] .terms-page {
    --tp-ink: #14233b;
    --tp-muted: #52627c;
    --tp-sheet: #ffffff;
    --tp-line: #d5deea;
    --tp-gold: #9a6a10;
}

.terms-doc {
    max-width: 720px;
    margin-inline: auto;
    padding: 8px 2px 4px;
}

.terms-title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tp-ink);
}

.terms-lead {
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tp-line);
    font-size: .85rem;
    line-height: 1.9;
    color: var(--tp-muted);
}

/* the agreement's own heading, then the preamble */
.terms-body h1, .terms-body h2, .terms-body h3, .terms-body h4, .terms-body h5, .terms-body h6 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tp-ink);
}

.terms-body p {
    margin: 0;
    padding: 12px 0;
    font-size: .95rem;
    line-height: 2.05;
    color: var(--tp-ink);
    text-align: justify;
    overflow-wrap: anywhere;
}

.terms-body hr { display: none; }
.terms-body p:empty { display: none; }

/* numbered clause: the number hangs in its own column */
.terms-body p.terms-clause {
    display: grid;
    grid-template-columns: 2.1em 1fr;
    column-gap: 8px;
    border-top: 1px solid var(--tp-line);
}

.terms-num {
    font-weight: 800;
    color: var(--tp-gold);
    font-variant-numeric: tabular-nums;
}

.terms-body ul, .terms-body ol { padding-inline-start: 22px; color: var(--tp-ink); line-height: 2; }

.terms-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 720px;
    margin: 14px auto 0;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--tp-gold);
    color: var(--tp-gold);
    font-weight: 700;
    text-decoration: none;
}
