:root {
    color-scheme: light;
    --ink: #15231f;
    --muted: #66736e;
    --paper: #f6f1e8;
    --white: #ffffff;
    --gold: #c7a76a;
    --line: rgba(21, 35, 31, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

a {
    color: inherit;
    text-underline-offset: 3px;
    text-decoration-color: var(--gold);
}

a:hover {
    text-decoration-thickness: 2px;
}

.legal-header {
    border-bottom: 1px solid var(--line);
    background: var(--ink);
}

.legal-header__inner {
    width: min(1120px, calc(100% - 40px));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.legal-header img {
    display: block;
    width: 126px;
    height: auto;
    filter: brightness(0) invert(1);
}

.legal-header__back {
    color: var(--white);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.legal-header__back::before {
    content: "<-";
    margin-right: 8px;
    color: var(--gold);
}

.legal-main {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 88px;
}

.legal-eyebrow {
    margin: 0 0 14px;
    color: #9b7d42;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 620;
    line-height: 1.04;
}

.legal-intro {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 19px;
}

.legal-meta {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.legal-content {
    margin-top: 56px;
    padding: 48px 56px;
    border: 1px solid var(--line);
    background: var(--white);
}

.legal-content section + section {
    margin-top: 42px;
    padding-top: 42px;
    border-top: 1px solid var(--line);
}

.legal-content h2 {
    margin: 0 0 14px;
    font-size: 27px;
    font-weight: 650;
    line-height: 1.2;
}

.legal-content h3 {
    margin: 24px 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.legal-content p,
.legal-content ul {
    margin: 10px 0 0;
}

.legal-content ul {
    padding-left: 22px;
}

.legal-content li + li {
    margin-top: 7px;
}

.legal-doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    font-weight: 650;
}

.legal-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.legal-footer__inner {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 36px;
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .legal-header__inner,
    .legal-main,
    .legal-footer__inner {
        width: min(100% - 28px, 920px);
    }

    .legal-header__inner {
        min-height: 72px;
    }

    .legal-header img {
        width: 104px;
    }

    .legal-main {
        padding: 48px 0 64px;
    }

    h1 {
        font-size: 40px;
    }

    .legal-intro {
        font-size: 17px;
    }

    .legal-content {
        margin-top: 38px;
        padding: 30px 22px;
    }

    .legal-content section + section {
        margin-top: 32px;
        padding-top: 32px;
    }

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