/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #d97706;
    --primary-dark: #b45309;
    --primary-light: #fef3c7;
    --accent: #1e293b;
    --bg: #fafaf9;
    --bg-alt: #f5f5f4;
    --surface: #ffffff;
    --text: #1c1917;
    --text-muted: #57534e;
    --text-light: #78716c;
    --border: #e7e5e4;
    --border-light: #f5f5f4;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #ea580c 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
}

.brand-tag {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.3px;
}

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

.nav-link {
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-link:hover { background: var(--bg-alt); color: var(--text); }

.nav-cta {
    background: var(--text);
    color: #fff;
}
.nav-cta:hover { background: var(--primary); color: #fff; }

/* ===== Hero ===== */
.hero {
    padding: 70px 32px 50px;
    background:
        radial-gradient(ellipse at top left, rgba(251, 191, 36, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #fffbf5 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border-light);
}

.hero-container {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(217, 119, 6, 0.1);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(217, 119, 6, 0.2);
    margin-bottom: 22px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(16px, 1.6vw, 18px);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 36px;
}

.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 16px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.meta-item > i {
    width: 38px;
    height: 38px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.meta-item > div { display: flex; flex-direction: column; }
.meta-label { font-size: 11px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.6px; }
.meta-value { font-size: 14px; font-weight: 600; color: var(--text); }

.meta-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ===== Layout ===== */
.layout-wrapper {
    padding: 50px 32px 80px;
}

.layout-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

/* ===== Sidebar ===== */
.sidebar {
    position: sticky;
    top: 88px;
}

.sidebar-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.toc-header i {
    width: 30px;
    height: 30px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.toc-header h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
    border-left: 2px solid transparent;
    line-height: 1.4;
}

.toc-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    background: var(--bg-alt);
    padding: 3px 7px;
    border-radius: 5px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.toc-link:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.toc-link.active {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.08) 0%, transparent 100%);
    color: var(--primary-dark);
    border-left-color: var(--primary);
    font-weight: 600;
}

.toc-link.active .toc-num {
    background: var(--primary);
    color: #fff;
}

.toc-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.progress-wrap {
    height: 5px;
    background: var(--bg-alt);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #ea580c 100%);
    border-radius: 999px;
    width: 0%;
    transition: width 0.2s;
}

.progress-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Content ===== */
.content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.intro-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid rgba(217, 119, 6, 0.15);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.intro-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.intro-text {
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.75;
}

.policy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, transform 0.3s;
    scroll-margin-top: 100px;
}

.policy-card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: var(--icon-bg);
    color: var(--icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.card-number {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--text-muted);
    font-size: 15.5px;
}

.card-body p { line-height: 1.75; }

.info-group {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    border-left: 3px solid var(--primary);
}

.info-group-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-group-title i {
    color: var(--primary);
    font-size: 13px;
}

.clean-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 4px;
}

.clean-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.clean-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.callout {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    align-items: flex-start;
    font-size: 15px;
}

.callout i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.callout p { line-height: 1.6; }

.callout-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.callout-success i { color: #10b981; }

.callout-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.callout-warning i { color: #ef4444; }

.accent-note {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--primary-dark);
    font-weight: 500;
}

/* Contact card specifics */
.contact-card {
    background: linear-gradient(135deg, var(--surface) 0%, #fffbf5 100%);
    border-color: rgba(217, 119, 6, 0.2);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

a.contact-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-item > div { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-size: 11px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.6px; }
.contact-value { font-size: 14px; font-weight: 600; color: var(--text); word-break: break-word; }

/* ===== Footer ===== */
.site-footer {
    background: var(--accent);
    color: #cbd5e1;
    padding: 50px 32px 24px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand h4 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.footer-brand p {
    font-size: 13px;
    color: #94a3b8;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-email:hover { color: #fbbf24; }

.footer-updated {
    font-size: 12.5px;
    color: #94a3b8;
}

.footer-bottom {
    max-width: 1280px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 12.5px;
    color: #94a3b8;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all 0.3s;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .layout-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .sidebar {
        position: static;
    }
    .sidebar-inner {
        padding: 18px;
    }
    .toc {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 4px;
    }
    .toc-footer { display: none; }
}

@media (max-width: 720px) {
    .header-container { padding: 12px 18px; }
    .brand-tag { display: none; }
    .nav-link span { display: none; }
    .nav-link { padding: 9px 12px; }

    .hero { padding: 50px 20px 40px; }
    .hero-meta { flex-direction: column; gap: 14px; padding: 18px; width: 100%; }
    .meta-divider { display: none; }
    .meta-item { width: 100%; }

    .layout-wrapper { padding: 36px 20px 60px; }
    .policy-card { padding: 24px 20px; }
    .intro-card { padding: 22px; flex-direction: column; gap: 14px; }
    .card-header { gap: 12px; }
    .card-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 11px; }
    .card-title { font-size: 19px; }

    .footer-container { flex-direction: column; text-align: center; }
    .footer-info { align-items: center; }
    .site-footer { padding: 40px 20px 20px; }

    .back-to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; }

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

@media (max-width: 480px) {
    .header-nav .nav-link:not(.nav-cta) { display: none; }
    .hero-title { font-size: 34px; }
}
