:root {
    color-scheme: dark;
    --terms-bg: #11100d;
    --terms-panel: #1b1914;
    --terms-text: #eee8d8;
    --terms-muted: #b8ad94;
    --terms-gold: #d8aa4d;
    --terms-border: #4b3d25;
}

body {
    margin: 0;
    background: var(--terms-bg);
    color: var(--terms-text);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.65;
}

.terms {
    width: min(100% - 2rem, 920px);
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

.terms article {
    background: var(--terms-panel);
    border: 1px solid var(--terms-border);
    box-shadow: 0 1rem 3rem rgb(0 0 0 / 35%);
    padding: clamp(1.25rem, 4vw, 3.5rem);
}

.terms__header {
    border-bottom: 1px solid var(--terms-border);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.terms__eyebrow {
    color: var(--terms-gold);
    font-family: system-ui, sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    margin: 0;
    text-transform: uppercase;
}

.terms h1 {
    font-size: clamp(2rem, 6vw, 3.75rem);
    line-height: 1.05;
    margin: .35rem 0 1rem;
}

.terms h2 {
    color: var(--terms-gold);
    line-height: 1.25;
    margin-top: 2.5rem;
}

.terms__toc,
.terms__checklist,
.terms__notice {
    background: #242018;
    border-left: .25rem solid var(--terms-gold);
    padding: 1rem 1.25rem;
}

.terms__toc h2,
.terms__checklist h2 {
    margin-top: 0;
}

.terms__toc ol {
    columns: 2 18rem;
}

.terms a {
    color: #f0c66f;
}

.terms li + li,
.terms dd + dt {
    margin-top: .65rem;
}

.terms dt {
    color: var(--terms-gold);
    font-weight: 700;
}

.terms dd {
    margin-left: 0;
}

.terms strong {
    color: #fff3cd;
}

.withdrawal-form__document {
    margin-top: 2rem;
}

.withdrawal-form__line {
    border-bottom: 1px dotted var(--terms-muted);
    min-height: 3rem;
}

.withdrawal-form__inline-line {
    border-bottom: 1px dotted var(--terms-muted);
    display: inline-block;
    min-width: min(100%, 22rem);
}

.withdrawal-form__signature {
    margin-top: 4rem;
    text-align: right;
}

.withdrawal-form__signature small {
    display: block;
}

.withdrawal-form__actions {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.withdrawal-form__actions button {
    background: var(--terms-gold);
    border: 0;
    color: #17130c;
    cursor: pointer;
    font: 700 1rem system-ui, sans-serif;
    padding: .75rem 1rem;
}

@media print {
    body,
    .terms,
    .terms article {
        background: #fff;
        color: #000;
    }

    .terms {
        padding: 0;
        width: 100%;
    }

    .terms article {
        border: 0;
        box-shadow: none;
    }

    .terms a,
    .terms h2,
    .terms__eyebrow,
    .terms strong {
        color: #000;
    }

    .withdrawal-form__actions,
    .terms__notice {
        display: none;
    }
}

@media (max-width: 560px) {
    .terms {
        width: 100%;
        padding: 0;
    }

    .terms article {
        border: 0;
    }
}
