﻿:root {
    --primary: #1B3F8F;
    --secondary: #8CC63F;
    --success: #6fa82e;
    --bg: #F6FAF1;
    --bg2: #EEF7E6;
    --panel: #ffffff;
    --text: #16241A;
    --muted: #5C6B5E;
    --border: rgba(20,40,15,0.10);
    --shadow: 0 20px 50px -30px rgba(20,50,15,0.3);
}

html[data-theme="dark"] {
    --bg: #070b12;
    --bg2: #0b1120;
    --panel: #0d1424;
    --text: #eef1f8;
    --muted: #8b93a7;
    --border: rgba(255,255,255,0.09);
    --shadow: 0 20px 50px -25px rgba(0,0,0,0.7);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter',sans-serif;
    transition: background .3s,color .3s;
}

h1, h2, h3, h4, .brand {
    font-family: 'Sora',sans-serif;
}

a {
    color: inherit;
}

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- progress bar ---------- */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg,var(--primary),var(--secondary));
    width: 0%;
    z-index: 1000;
}

/* ---------- header ---------- */
header.topbar {
    position: sticky;
    top: 0;
    z-index: 500;
    padding: 16px 0;
    background: rgba(248,250,252,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

html[data-theme="dark"] header.topbar {
    background: rgba(10,15,28,0.85);
}

.brandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.roof {
    width: 22px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
}

    .roof::before, .roof::after {
        content: "";
        position: absolute;
        bottom: 0;
        width: 14px;
        height: 4px;
        border-radius: 2px;
    }

    .roof::before {
        left: 0;
        background: var(--success);
        transform: rotate(28deg);
        transform-origin: bottom left;
    }

    .roof::after {
        right: 0;
        background: var(--primary);
        transform: rotate(-28deg);
        transform-origin: bottom right;
    }

.brand {
    font-weight: 800;
    font-size: 17px;
}

    .brand span {
        color: var(--primary);
    }

    .brand small {
        display: block;
        font-family: 'Inter',sans-serif;
        font-weight: 600;
        font-size: 9px;
        color: var(--muted);
        letter-spacing: 2px;
    }

.head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 13px;
}

    .icon-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

.pill-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
}

    .pill-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

@media (max-width:800px) {
    .pill-btn span.lbl {
        display: none;
    }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 70px;
    background: radial-gradient(ellipse 900px 600px at 18% -10%, rgba(140,198,63,0.18), transparent 60%), radial-gradient(ellipse 900px 700px at 85% 6%, rgba(27,63,143,0.12), transparent 55%), var(--bg);
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

    .hero .particles {
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

    .hero .particle {
        position: absolute;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--secondary);
        opacity: .45;
    }

.breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 22px;
}

    .breadcrumb i {
        font-size: 9px;
        opacity: .7;
    }

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.hbadge {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--primary);
    box-shadow: var(--shadow);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 12px;
    max-width: 640px;
    line-height: 1.15;
    color: var(--text);
}

.hero p.sub {
    font-size: 16px;
    opacity: .85;
    max-width: 560px;
    margin: 0;
    line-height: 1.6;
    color: var(--muted);
}

.shield-wrap {
    position: relative;
    width: 170px;
    height: 170px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .shield-wrap .ring {
        position: absolute;
        inset: 0;
        border: 1.5px solid rgba(27,63,143,.2);
        border-radius: 50%;
        animation: spin 14s linear infinite;
    }

    .shield-wrap .ring2 {
        position: absolute;
        inset: 18px;
        border: 1.5px dashed rgba(140,198,63,.35);
        border-radius: 50%;
        animation: spin 10s linear infinite reverse;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.shield-wrap i {
    font-size: 56px;
    background: linear-gradient(135deg,var(--primary),var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 10px 20px rgba(20,50,15,.15));
}



.breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12.5px;
    opacity: .85;
    margin-bottom: 22px;
}

    .breadcrumb i {
        font-size: 9px;
        opacity: .7;
    }

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.hbadge {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 12px;
    max-width: 640px;
    line-height: 1.15;
}

.hero p.sub {
    font-size: 16px;
    opacity: .9;
    max-width: 560px;
    margin: 0;
    line-height: 1.6;
}

.shield-wrap {
    position: relative;
    width: 170px;
    height: 170px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .shield-wrap .ring {
        position: absolute;
        inset: 0;
        border: 1.5px solid rgba(255,255,255,.25);
        border-radius: 50%;
        animation: spin 14s linear infinite;
    }

    .shield-wrap .ring2 {
        position: absolute;
        inset: 18px;
        border: 1.5px dashed rgba(255,255,255,.3);
        border-radius: 50%;
        animation: spin 10s linear infinite reverse;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.shield-wrap i {
    font-size: 56px;
    color: #fff;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.25));
}

/* ---------- summary cards ---------- */
.summary-strip {
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

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

@media (max-width:1000px) {
    .summary-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width:560px) {
    .summary-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

.sum-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .2s,box-shadow .2s;
}

    .sum-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 24px 50px -20px rgba(0,82,204,.25);
    }

    .sum-card i {
        font-size: 20px;
        color: var(--primary);
        margin-bottom: 8px;
        display: block;
    }

    .sum-card span {
        font-size: 11.5px;
        font-weight: 700;
    }

/* ---------- reading meta ---------- */
.meta-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    margin: 34px 0 10px;
    font-size: 12.5px;
    color: var(--muted);
}

    .meta-row .badge {
        display: flex;
        align-items: center;
        gap: 6px;
        background: var(--bg2);
        border-radius: 20px;
        padding: 6px 12px;
    }

        .meta-row .badge.success {
            color: var(--success);
        }

/* ---------- layout ---------- */
.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 20px 0 90px;
    align-items: start;
}

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

/* ---------- sidebar ---------- */
.sidebar {
    position: sticky;
    top: 90px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}

    .sidebar h5 {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--muted);
        margin: 0 0 14px;
    }

    .sidebar ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .sidebar a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--muted);
        transition: background .15s,color .15s;
    }

        .sidebar a i {
            width: 16px;
            text-align: center;
            font-size: 13px;
        }

        .sidebar a:hover {
            background: var(--bg2);
            color: var(--text);
        }

        .sidebar a.active {
            background: linear-gradient(90deg,rgba(0,82,204,.1),transparent);
            color: var(--primary);
        }

.mobile-toc-toggle {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 16px;
}

@media (max-width:900px) {
    .sidebar {
        position: static;
        display: none;
    }

        .sidebar.open {
            display: block;
        }

    .mobile-toc-toggle {
        display: flex;
    }
}

/* ---------- content ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease,transform .6s ease;
}

    .reveal.in {
        opacity: 1;
        transform: translateY(0);
    }

.policy-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 34px;
    margin-bottom: 26px;
    box-shadow: var(--shadow);
    scroll-margin-top: 90px;
    position: relative;
}

    .policy-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 22px;
        bottom: 22px;
        width: 3px;
        border-radius: 3px;
        background: linear-gradient(180deg,var(--primary),var(--secondary));
    }

.policy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 6px;
}

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

    .policy-title .pi {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: linear-gradient(135deg,var(--primary),var(--secondary));
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 17px;
        flex-shrink: 0;
    }

    .policy-title h2 {
        font-size: 21px;
        margin: 0;
    }

.copy-link {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 12px;
    flex-shrink: 0;
}

    .copy-link:hover {
        color: var(--primary);
        border-color: var(--primary);
    }

    .copy-link.copied {
        color: var(--success);
        border-color: var(--success);
    }

.policy-sub {
    font-size: 13px;
    color: var(--muted);
    margin: 2px 0 20px;
    padding-left: 54px;
}

.subsection {
    margin-bottom: 18px;
}

    .subsection:last-child {
        margin-bottom: 0;
    }

    .subsection h4 {
        font-size: 14.5px;
        margin: 0 0 10px;
        color: var(--primary);
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .subsection h4 i {
            font-size: 12px;
        }

.point-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .point-list li {
        display: flex;
        gap: 12px;
        font-size: 13.8px;
        line-height: 1.75;
        color: var(--text);
        padding-bottom: 12px;
        border-bottom: 1px dashed var(--border);
    }

        .point-list li:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

.point-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--bg2);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* ---------- timeline ---------- */
.proc-timeline {
    display: flex;
    justify-content: space-between;
    gap: 0;
    position: relative;
    padding: 10px 0;
    overflow-x: auto;
}

.proc-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    position: relative;
    padding: 0 8px;
}

    .proc-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 24px;
        left: 60%;
        width: 100%;
        height: 2px;
        background: repeating-linear-gradient(90deg,var(--border) 0 6px,transparent 6px 12px);
    }

.proc-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg2);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 17px;
    position: relative;
    z-index: 1;
    background: var(--panel);
}

.proc-step span {
    font-size: 12.5px;
    font-weight: 700;
}

/* ---------- faq ---------- */
.faq-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

    .faq-q i {
        color: var(--primary);
        transition: transform .3s;
    }

.faq-item.open .faq-q i {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

    .faq-a p {
        margin: 0;
        padding: 0 20px 18px;
        font-size: 13.5px;
        color: var(--muted);
        line-height: 1.7;
    }

/* ---------- CTA ---------- */
.legal-cta {
    background: linear-gradient(135deg,var(--primary),#003a99);
    border-radius: 22px;
    padding: 44px 36px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

    .legal-cta h3 {
        font-size: 23px;
        margin: 0 0 6px;
    }

    .legal-cta p {
        margin: 0;
        opacity: .85;
        font-size: 14px;
    }

.cta-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 13px 22px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s;
}

    .btn:hover {
        transform: translateY(-2px);
    }

    .btn.on-dark {
        background: #fff;
        color: var(--primary);
    }

    .btn.ghost-dark {
        background: rgba(255,255,255,.12);
        border: 1.5px solid rgba(255,255,255,.35);
        color: #fff;
    }

/* ---------- footer note ---------- */
.legal-foot {
    text-align: center;
    padding: 36px 0 60px;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- back to top ---------- */
#backtotop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 30px -10px rgba(0,82,204,.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s,transform .2s;
    z-index: 400;
}

    #backtotop.show {
        opacity: 1;
        pointer-events: auto;
    }

    #backtotop:hover {
        transform: translateY(-3px);
    }

/* ---------- print ---------- */
@media print {
    header, .sidebar, .mobile-toc-toggle, .summary-strip, .meta-row, #progress, #backtotop, .legal-cta, .copy-link {
        display: none !important;
    }

    .legal-layout {
        display: block;
        padding: 0;
    }

    .policy-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    body {
        background: #fff;
        color: #000;
    }
}
