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

:root {
    color-scheme: light;
    --primary: #2F7D62;
    --primary-deep: #276A53;
    --primary-soft: #ECF5F0;
    --ink: #111714;
    --muted: #68716D;
    --line: #E3E9E6;
    --surface: #FFFFFF;
    --canvas: #FBFCFB;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    background: var(--canvas);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "PingFang SC", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--primary-deep);
    text-underline-offset: 3px;
}

.site-header {
    border-bottom: 1px solid rgba(17, 23, 20, 0.06);
    background: rgba(251, 252, 251, 0.92);
}

.header-inner,
.legal-main,
.footer-inner {
    width: min(760px, calc(100% - 48px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 650;
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
}

.back-link {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.back-link:hover,
.footer-inner a:hover {
    color: var(--primary);
}

.legal-main {
    padding: 72px 0 88px;
}

.legal-hero {
    margin-bottom: 36px;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin-top: 14px;
    font-size: clamp(38px, 7vw, 54px);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -2.2px;
}

.intro {
    max-width: 650px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.updated {
    margin-top: 16px;
    color: #929995;
    font-size: 12px;
}

.privacy-summary {
    margin-bottom: 20px;
    padding: 20px 22px;
    border: 1px solid #D8E9E1;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary-deep);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.75;
}

.legal-card {
    padding: 12px 40px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 16px 44px rgba(20, 40, 32, 0.05);
}

.legal-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
    border-bottom: 0;
}

.legal-section h2 {
    margin-bottom: 12px;
    font-size: 19px;
    font-weight: 650;
    line-height: 1.45;
}

.legal-section p,
.legal-section li {
    color: #3E4743;
    font-size: 14px;
    line-height: 1.9;
}

.legal-section p + p,
.legal-section ul + p,
.legal-section p + ul {
    margin-top: 10px;
}

.legal-section ul {
    padding-left: 1.3em;
}

.legal-section li + li {
    margin-top: 5px;
}

footer {
    padding: 24px 0 max(28px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(17, 23, 20, 0.06);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: #929995;
    font-size: 12px;
    line-height: 1.6;
}

.footer-inner a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid rgba(47, 125, 98, 0.28);
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .header-inner,
    .legal-main,
    .footer-inner {
        width: min(100% - 36px, 760px);
    }

    .header-inner {
        min-height: 64px;
    }

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

    .legal-hero {
        margin-bottom: 28px;
    }

    h1 {
        font-size: 40px;
        letter-spacing: -1.5px;
    }

    .intro {
        font-size: 15px;
    }

    .legal-card {
        padding: 4px 22px;
        border-radius: 18px;
    }

    .legal-section {
        padding: 26px 0;
    }
}

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