:root {
    --bg: #f6f8fc;
    --bg-soft: #eef3ff;
    --surface: #ffffff;
    --surface-soft: #f9fbff;
    --text: #101828;
    --text-soft: #344054;
    --muted: #667085;
    --line: #e4e7ec;
    --line-strong: #cfd6e3;
    --primary: #1053ff;
    --primary-soft: rgba(16, 83, 255, 0.1);
    --primary-border: rgba(16, 83, 255, 0.22);
    --success: #00a86b;
    --warning-bg: #fff8e6;
    --warning-border: #ffe0a3;
    --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 18px 60px rgba(16, 24, 40, 0.1);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 14% -8%, rgba(31, 165, 255, 0.16), transparent 30%),
        radial-gradient(circle at 84% 0%, rgba(16, 83, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #fbfcff 0%, var(--bg) 48%, #f2f5fb 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page-shell {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    margin-bottom: 32px;
    border: none;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #1fa5ff, var(--primary));
    box-shadow: 0 10px 26px rgba(16, 83, 255, 0.28);
    font-size: 13px;
    font-weight: 900;
}

.brand-text {
    font-size: 16px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 650;
}

.site-nav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
    text-decoration: none;
}

.hero {
    overflow: hidden;
    position: relative;
    padding: clamp(34px, 6vw, 74px);
    border: none;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(16, 83, 255, 0.08), rgba(31, 165, 255, 0.05)),
        var(--surface);
    box-shadow: var(--shadow-md);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -90px -160px auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(16, 83, 255, 0.1);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px 10px;
    border: 1px solid var(--primary-border);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-lead {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--text-soft);
    font-size: clamp(17px, 2.2vw, 21px);
    line-height: 1.55;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.meta-grid div {
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.76);
}

.meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.meta-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.35;
}

.summary-card,
.policy-card {
    border: none;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.summary-card {
    margin-top: 22px;
    padding: clamp(22px, 4vw, 36px);
}

.summary-card h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3.2vw, 34px);
    letter-spacing: -0.04em;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.summary-grid article {
    min-height: 210px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 12px;
    font-weight: 900;
}

.summary-grid h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.summary-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.content-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 22px;
}

.toc {
    position: sticky;
    top: 102px;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.toc p {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.toc a {
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

.toc a:hover {
    color: var(--primary);
    background: var(--primary-soft);
    text-decoration: none;
}

.policy-card {
    overflow: hidden;
    padding: clamp(24px, 4vw, 44px);
}

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

.policy-section:first-child {
    padding-top: 0;
}

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

.policy-section h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.policy-section h3 {
    margin: 24px 0 8px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.policy-section p,
.policy-section li {
    color: var(--text-soft);
    font-size: 16px;
}

.policy-section p {
    margin: 0 0 14px;
}

.policy-section ul {
    margin: 14px 0 0;
    padding-left: 22px;
}

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

.accent-section {
    margin: 28px -18px;
    padding: 28px 18px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(16, 83, 255, 0.075), rgba(31, 165, 255, 0.04));
}

.notice {
    padding: 14px 16px;
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-sm);
    background: var(--warning-bg);
    color: #6f4d00 !important;
    font-weight: 650;
}

.code-like {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #1d2939;
    background: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
}

.table-wrap {
    overflow-x: auto;
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--text);
    background: #f5f7fb;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

td {
    color: var(--text-soft);
    font-size: 14px;
}

tr:last-child td {
    border-bottom: 0;
}

.policy-footer-note {
    margin-top: 30px;
    padding: 26px;
    border-radius: var(--radius-md);
    color: #ffffff;
    background: linear-gradient(135deg, #1053ff, #1fa5ff);
    box-shadow: 0 20px 44px rgba(16, 83, 255, 0.24);
}

.policy-footer-note h2 {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.policy-footer-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.policy-footer-note a {
    color: #ffffff;
    font-weight: 800;
}

@media (max-width: 980px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toc p {
        grid-column: 1 / -1;
    }

    .summary-grid,
    .meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .page-shell {
        padding: 14px;
    }

    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 16px;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .hero {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .hero h1 {
        letter-spacing: -0.055em;
    }

    .summary-grid,
    .meta-grid,
    .toc {
        grid-template-columns: 1fr;
    }

    .summary-grid article {
        min-height: auto;
    }

    .policy-card {
        padding: 20px;
        border-radius: 24px;
    }

    .accent-section {
        margin: 22px 0;
    }

    .policy-section h2 {
        letter-spacing: -0.035em;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
