* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

html,
body {
    background: #f5f6f7;
    color: #17191b;
}

.topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 24px;
    background: #fff;
    border-bottom: 1px solid #e1e4e7;
}

.brand-logo {
    display: block;
    width: 145px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav a {
    color: #17191b;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.nav a:hover {
    color: #d71920;
}

.theme-toggle {
    min-width: 68px;
    height: 34px;
    padding: 0 13px;
    border: 1px solid #cfd3d7;
    border-radius: 999px;
    background: #fff;
    color: #17191b;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.legal-shell {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 72px;
}

.kicker {
    margin-bottom: 7px;
    color: #d71920;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.effective {
    margin-bottom: 34px;
    color: #70777e;
    font-size: 14px;
}

.intro,
.notice,
.contact-box {
    margin-bottom: 30px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e1e4e7;
    border-radius: 16px;
    color: #4f565c;
    font-size: 15px;
    line-height: 1.7;
}

.notice {
    border-left: 4px solid #d71920;
}

section {
    margin-bottom: 32px;
}

section h2 {
    margin: 0 0 10px;
    font-size: 21px;
}

section p,
section li {
    color: #4f565c;
    font-size: 15px;
    line-height: 1.7;
}

section p {
    margin: 0 0 12px;
}

section ul {
    padding-left: 24px;
}

section li {
    margin: 6px 0;
}

.site-footer {
    padding: 42px 28px 24px;
    background: #fff;
    border-top: 1px solid #e0e3e6;
}

.footer-inner {
    width: min(980px, 100%);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns:
        minmax(240px, 2fr)
        repeat(3, minmax(120px, 1fr));
    gap: 36px;
}

.footer-brand img {
    width: 180px;
    max-width: 100%;
    height: auto;
}

.footer-brand p {
    color: #666d73;
    font-size: 14px;
}

.footer-column strong {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
}

.footer-column a,
.footer-column span {
    display: block;
    margin: 7px 0;
    color: #5b6268;
    font-size: 13px;
    text-decoration: none;
}

.footer-column a:hover {
    color: #d71920;
}

.footer-note {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e5e7e9;
    color: #737a80;
    font-size: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
    color: #777e84;
    font-size: 12px;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
    background: #111315;
    color: #f1f3f4;
    color-scheme: dark;
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .site-footer {
    background: #151719;
    border-color: #30353a;
}

html[data-theme="dark"] .nav a,
html[data-theme="dark"] h1,
html[data-theme="dark"] section h2 {
    color: #f1f3f4;
}

html[data-theme="dark"] .theme-toggle {
    background: #262a2e;
    color: #f5f6f7;
    border-color: #464c52;
}

html[data-theme="dark"] .effective {
    color: #9ea5ab;
}

html[data-theme="dark"] .intro,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .contact-box {
    background: #191c1f;
    border-color: #30353a;
    color: #c1c6ca;
}

html[data-theme="dark"] section p,
html[data-theme="dark"] section li,
html[data-theme="dark"] .footer-brand p,
html[data-theme="dark"] .footer-column a,
html[data-theme="dark"] .footer-column span {
    color: #b9bec3;
}

html[data-theme="dark"] .footer-note,
html[data-theme="dark"] .footer-bottom {
    color: #8f969d;
    border-color: #30353a;
}

@media (max-width: 700px) {
    .topbar {
        padding: 12px 16px;
    }

    .brand-logo {
        width: 120px;
    }

    .nav {
        gap: 12px;
    }

    .legal-shell {
        width: calc(100% - 30px);
        padding: 38px 0 52px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}
