@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@600;700;800&display=swap');

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

:root {
    --bg: #0d0f14;
    --surface: #13151c;
    --surface-2: #1a1d27;
    --border: rgba(255,255,255,0.07);
    --accent: #6c63ff;
    --accent-glow: rgba(108,99,255,0.15);
    --text: #e8eaf0;
    --text-muted: #7a7f99;
    --text-dim: #4a4f6a;
    --white: #ffffff;
    --success: #22c55e;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }

html, body {
    width: 100%;
    min-height: 100%;
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 64px;
    background: rgba(13,15,20,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.site-header .brand {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.site-header .back-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.site-header .back-link:hover { color: var(--accent); }

/* ── Page Layout ── */
.page-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

/* ── Doc Header ── */
.doc-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--accent-glow);
    border: 1px solid rgba(108,99,255,0.25);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.doc-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.doc-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 14px;
}

.doc-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.doc-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── TOC ── */
.toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 48px;
}

.toc-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.toc ol {
    list-style: none;
    counter-reset: toc-counter;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc ol li {
    counter-increment: toc-counter;
}

.toc ol li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 5px 0;
    transition: color 0.2s;
}
.toc ol li a::before {
    content: counter(toc-counter, decimal-leading-zero);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 22px;
}
.toc ol li a:hover { color: var(--accent); }

/* ── Sections ── */
.doc-section {
    margin-bottom: 48px;
}

.section-number {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.section-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.section-body p + p { margin-top: 12px; }

/* ── Lists ── */
.policy-list {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.policy-list li::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 7px;
}

/* ── Highlight Box ── */
.highlight-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin: 20px 0;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.7;
}

.highlight-box.warning {
    border-left-color: #f59e0b;
    background: rgba(245,158,11,0.05);
}

.highlight-box.success {
    border-left-color: var(--success);
    background: rgba(34,197,94,0.05);
}

/* ── Divider ── */
.section-divider {
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

/* ── Contact Card ── */
.contact-card {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-top: 12px;
}

.contact-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.contact-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s;
}
.contact-card a:hover { opacity: 0.75; }

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 32px;
    text-align: center;
}

.footer-text {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .site-header { padding: 0 20px; }
    .page-wrap { padding: 36px 16px 80px; }
    .doc-title { font-size: 1.8rem; }
    .toc { padding: 20px; }
}
