:root {
    color-scheme: light;
    --background: #f5f5f7;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-muted: #ededf0;
    --text: #1d1d1f;
    --secondary: #5f6368;
    --border: #d8d8dc;
    --accent: #3a3a3c;
    --success: #2f6d4f;
    --radius: 22px;
    --shadow: 0 18px 50px rgba(20, 20, 24, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 40rem),
        var(--background);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    overflow-wrap: anywhere;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(216, 216, 220, 0.78);
    background: rgba(245, 245, 247, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner,
.page-shell,
.footer-inner {
    width: calc(100% - 36px);
    max-width: 980px;
    margin: 0 auto;
}

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

.brand {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.header-nav {
    display: flex;
    gap: 18px;
    color: var(--secondary);
    font-size: 14px;
}

.header-nav a[aria-current="page"] {
    color: var(--text);
    font-weight: 650;
}

.page-shell {
    padding: 72px 0 96px;
}

.hero {
    margin-bottom: 28px;
    padding: clamp(30px, 6vw, 64px);
    border: 1px solid rgba(216, 216, 220, 0.8);
    border-radius: calc(var(--radius) + 8px);
    background: linear-gradient(145deg, #ffffff, #eeeeF1);
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(34px, 7vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.hero-copy {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--secondary);
    font-size: clamp(16px, 2.5vw, 19px);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.meta span {
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--secondary);
    font-size: 13px;
    overflow-wrap: anywhere;
}

code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notice,
.section-card {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.notice {
    padding: 20px 24px;
    border-left: 4px solid var(--success);
}

.notice strong {
    display: block;
    margin-bottom: 4px;
}

.section-card {
    padding: clamp(24px, 5vw, 42px);
}

.section-card h2 {
    margin: 0 0 14px;
    font-size: clamp(22px, 3.5vw, 30px);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.section-card h3 {
    margin: 26px 0 8px;
    font-size: 18px;
}

.section-card p,
.section-card ul,
.section-card ol {
    margin-top: 10px;
    margin-bottom: 10px;
}

.section-card ul,
.section-card ol {
    padding-left: 1.35em;
}

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

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 14px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 680;
    text-decoration: none;
}

.button.secondary {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
}

.step-list {
    counter-reset: legal-step;
    list-style: none;
    padding: 0 !important;
}

.step-list li {
    position: relative;
    min-height: 48px;
    padding-left: 58px;
}

.step-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-muted);
    color: var(--text);
    content: counter(legal-step);
    counter-increment: legal-step;
    font-weight: 750;
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--secondary);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 0 44px;
    font-size: 13px;
}

@media (max-width: 640px) {
    .header-inner {
        min-height: 58px;
    }

    .header-nav {
        gap: 12px;
        font-size: 13px;
    }

    .page-shell {
        padding-top: 34px;
    }

    .hero {
        padding: 30px 24px;
    }

    .footer-inner {
        flex-direction: column;
    }
}

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