:root {
    --background: #ffffff;
    --text: #111111;
    --muted: #6b6b6b;
    --border: #e8e8e8;
    --max-width: 820px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.legal-header {
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.legal-header-inner {
    width: min(100% - 40px, 1180px);
    min-height: 72px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.back-link {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text);
}

.legal-document {
    width: min(100% - 40px, var(--max-width));
    margin: 0 auto;
}

.legal-intro {
    padding: 88px 0 64px;
}

.eyebrow {
    margin-bottom: 18px;

    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.legal-intro h1 {
    max-width: 760px;

    font-size: clamp(2.6rem, 8vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    font-weight: 750;
}

.intro {
    max-width: 700px;
    margin-top: 32px;

    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: #3e3e3e;
}

.updated {
    margin-top: 28px;

    font-size: 0.82rem;
    color: var(--muted);
}

.legal-content {
    padding-bottom: 90px;
}

.legal-content section {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.legal-content h2 {
    margin-bottom: 22px;

    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -0.035em;
    font-weight: 700;
}

.legal-content p {
    margin-bottom: 20px;

    font-size: 1rem;
    line-height: 1.85;
    color: #292929;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content a {
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.final-section {
    padding-bottom: 0 !important;
}

.legal-footer {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;

    padding: 34px 0 44px;

    border-top: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    font-size: 0.78rem;
    color: var(--muted);
}

.legal-footer nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.legal-footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-footer a:hover {
    color: var(--text);
}

@media (max-width: 700px) {
    .legal-header-inner {
        min-height: 64px;
        width: min(100% - 28px, 1180px);
    }

    .legal-document {
        width: min(100% - 28px, var(--max-width));
    }

    .legal-intro {
        padding: 62px 0 48px;
    }

    .legal-intro h1 {
        font-size: clamp(2.55rem, 14vw, 4rem);
    }

    .intro {
        margin-top: 24px;
        font-size: 1rem;
    }

    .legal-content section {
        padding: 38px 0;
    }

    .legal-content p {
        font-size: 0.96rem;
        line-height: 1.8;
    }

    .legal-footer {
        width: min(100% - 28px, 1180px);

        flex-direction: column;
        align-items: flex-start;
    }

    .legal-footer nav {
        flex-wrap: wrap;
        gap: 14px 18px;
    }
}

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

    *,
    *::before {
        transition: none !important;
    }
}