:root {
    --page-bg: #ffffff;
    --text: #1a1a1a;
    --muted: #5f5f5f;
    --line: #e5e1d8;
    --gold: #a1713a;
    --soft-gold: #f7f2e9;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--page-bg);
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

.terms-page {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 36px 48px 72px;
}

.terms-header {
    margin-bottom: 36px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 30px;
    color: var(--text);
    font-size: 16px;
    font-weight: 650;
    line-height: 32px;
    letter-spacing: 0;
    text-decoration: none;
}

.brand-link:hover,
.brand-link:focus-visible {
    color: var(--gold);
}

.brand-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.brand-link img {
    display: block;
    width: 32px;
    height: 32px;
}

h1 {
    max-width: 720px;
    margin: 0;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: 0;
}

p {
    margin: 0 0 18px;
    color: var(--muted);
}

.terms-page > p > strong:only-child {
    display: block;
    margin-top: 38px;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
}

.terms-page > p:first-of-type > strong:only-child {
    margin-top: 0;
}

ul {
    margin: -4px 0 24px;
    padding-left: 24px;
}

li {
    margin-bottom: 10px;
    color: var(--muted);
}

li p {
    margin: 0;
}

mark {
    padding: 0 2px;
    background: var(--soft-gold);
    color: inherit;
}

@media (max-width: 720px) {
    body {
        font-size: 14px;
        line-height: 1.7;
    }

    .terms-page {
        padding: 24px 20px 52px;
    }

    .terms-header {
        margin-bottom: 28px;
        padding-bottom: 24px;
    }

    .brand-link {
        margin-bottom: 24px;
    }

    h1 {
        font-size: 30px;
        line-height: 1.25;
    }

    .terms-page > p > strong:only-child {
        margin-top: 30px;
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}
