:root {
    color-scheme: light dark;
    --background: #f4f1f4;
    --surface: #ffffff;
    --text: #292526;
    --muted: #6f6668;
    --accent: #a63d57;
    --accent-soft: #f3dce2;
    --border: #ddd4dc;
    --max-width: 760px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.shell {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--background) 92%, transparent);
}

.header-inner,
.footer-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
}

.document-label,
.effective-date {
    color: var(--muted);
    font-size: 0.875rem;
}

.intro {
    padding: 76px 0 42px;
    border-bottom: 1px solid var(--border);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(2.35rem, 8vw, 4.2rem);
    line-height: 1.06;
}

.summary {
    max-width: 620px;
    margin: 24px 0 12px;
    color: var(--muted);
    font-size: 1.15rem;
}

.effective-date {
    margin: 0;
}

.contents {
    display: flex;
    gap: 10px 22px;
    padding: 22px 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.contents a,
footer a,
.policy a {
    color: var(--accent);
    font-weight: 650;
    text-underline-offset: 3px;
}

.contents a {
    text-decoration: none;
}

.policy {
    padding: 26px 0 64px;
}

.policy section {
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 24px;
}

.policy h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
    line-height: 1.25;
}

.policy h3 {
    margin: 24px 0 4px;
    font-size: 1rem;
}

.policy p,
.policy ul {
    margin-top: 0;
}

.policy ul {
    padding-left: 1.35rem;
}

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

address {
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    font-style: normal;
}

.notice {
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent-soft);
    color: #4c202a;
}

footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.875rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #1b1819;
        --surface: #231f20;
        --text: #f2eaeb;
        --muted: #cfc2c5;
        --accent: #e4a3b0;
        --accent-soft: #502a34;
        --border: #493f42;
    }

    .notice {
        color: #ffedf1;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .document-label {
        display: none;
    }

    .intro {
        padding-top: 54px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        padding-block: 16px;
    }
}

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