@import url('https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400&family=Nunito:wght@300;400;600;700&display=swap');

:root {
    --bg: #07060f;
    --bg-card: #0e0c1c;
    --violet: #7c3aed;
    --violet-light: #a78bfa;
    --violet-dim: #4c1d95;
    --cyan: #22d3ee;
    --cyan-dim: rgba(34,211,238,0.15);
    --pink: #e879f9;
    --text: #e8e4f8;
    --text-dim: #8b80b8;
    --glass: rgba(124, 58, 237, 0.05);
    --glass-border: rgba(167, 139, 250, 0.15);
    --glow-v: rgba(124,58,237,0.3);
    --glow-c: rgba(34,211,238,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── NEBULA BACKGROUND ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 10%, rgba(124,58,237,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 30%, rgba(34,211,238,0.07) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 50% 80%, rgba(232,121,249,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(7,6,15,0.95) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle particle dots */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(167,139,250,0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ── LANG BAR ── */
.lang-bar {
    position: fixed;
    top: 1.2rem; right: 1.5rem;
    z-index: 100;
    display: flex; gap: 0.4rem;
}

.lang-btn {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    background: rgba(7,6,15,0.92);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-family: 'Nunito', sans-serif;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; border-radius: 8px;
    transition: all 0.25s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.lang-btn:hover {
    border-color: var(--violet-light);
    color: var(--violet-light);
    box-shadow: 0 0 12px var(--glow-v);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(34,211,238,0.08));
    border-color: var(--violet-light);
    color: var(--violet-light);
    box-shadow: 0 0 18px var(--glow-v);
}

.lang-flag { font-size: 0.95rem; }

/* ── LAYOUT ── */
.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ── HEADER ── */
.site-header {
    text-align: center;
    padding: 60px 0 48px;
    animation: fadeDown 0.7s ease both;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 28px;
}

/* Rotating orbital ring */
.logo-wrap::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 1px solid rgba(167,139,250,0.2);
    animation: orbit-rotate 12s linear infinite;
}

.logo-wrap::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(124,58,237,0.25) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes orbit-rotate {
    from { transform: rotate(0deg); box-shadow: 4px 0 8px var(--violet); }
    to   { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 1; transform: scale(1.08); }
}

.logo-wrap img {
    width: 168px;
    height: 168px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(167,139,250,0.3);
    box-shadow:
        0 0 40px rgba(124,58,237,0.4),
        0 0 80px rgba(124,58,237,0.15),
        inset 0 0 20px rgba(34,211,238,0.05);
    position: relative;
    z-index: 1;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.site-header h1 {
    font-family: 'Philosopher', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--violet-light) 45%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.site-header .subtitle {
    font-family: 'Philosopher', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.8;
}

.badge-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.badge-date svg { color: var(--violet-light); }

/* ── DIVIDER ── */
.divider {
    display: flex; align-items: center; gap: 14px;
    margin: 0 0 40px;
}

.divider-line {
    flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
}

.divider-gem {
    width: 8px; height: 8px;
    background: var(--violet-light);
    transform: rotate(45deg);
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--violet), 0 0 24px rgba(124,58,237,0.4);
    animation: gem-pulse 2.5s ease-in-out infinite;
}

@keyframes gem-pulse {
    0%, 100% { box-shadow: 0 0 8px var(--violet); }
    50%       { box-shadow: 0 0 20px var(--violet), 0 0 40px rgba(124,58,237,0.4); }
}

/* ── TOC ── */
.toc {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.6s ease both 0.1s;
}

.toc::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--cyan), var(--pink), transparent);
}

.toc h3 {
    font-family: 'Philosopher', serif;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--violet-light);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}

.toc ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
}

.toc ul li a {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 5px 0;
    transition: color 0.2s;
}

.toc ul li a:hover { color: var(--violet-light); }

.toc-num {
    color: var(--violet-light);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 22px;
    opacity: 0.8;
}

/* ── SECTIONS (accordion) ── */
.policy-section {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
    animation: fadeUp 0.55s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.policy-section:hover {
    border-color: rgba(167,139,250,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.1);
}

.policy-section:nth-child(1) { animation-delay: 0.05s; }
.policy-section:nth-child(2) { animation-delay: 0.10s; }
.policy-section:nth-child(3) { animation-delay: 0.15s; }
.policy-section:nth-child(4) { animation-delay: 0.20s; }
.policy-section:nth-child(5) { animation-delay: 0.25s; }
.policy-section:nth-child(6) { animation-delay: 0.30s; }

/* left gradient bar */
.policy-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--violet-light), var(--cyan), transparent);
    pointer-events: none;
}

.section-header {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.section-header:hover { background: rgba(124,58,237,0.04); }

.section-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(167,139,250,0.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
    box-shadow: 0 0 12px rgba(124,58,237,0.15);
}

.section-meta { flex: 1; }

.section-num {
    font-size: 0.68rem;
    color: var(--violet-light);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 3px;
}

.section-title-text {
    font-family: 'Philosopher', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
}

.section-chevron {
    color: var(--violet-light);
    font-size: 0.62rem;
    flex-shrink: 0;
    opacity: 0.55;
    transition: transform 0.35s ease, opacity 0.2s;
}

.policy-section.open .section-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Accordion body */
.section-body {
    padding: 0 24px 24px;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.45s ease, padding 0.35s ease, opacity 0.3s ease;
    opacity: 1;
    border-top: 1px solid rgba(167,139,250,0.07);
}

.section-body.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-top-color: transparent;
}

.section-body-inner { padding-top: 18px; }

.section-body p {
    color: var(--text-dim);
    font-weight: 400;
    line-height: 1.85;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.section-body p:last-child { margin-bottom: 0; }

.section-body ul {
    list-style: none;
    margin-bottom: 14px;
}

.section-body li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.75;
}

.section-body li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--violet-light);
    font-size: 0.45rem;
    top: 7px;
}

.section-body a {
    color: var(--violet-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(167,139,250,0.3);
    transition: color 0.2s, border-color 0.2s;
}

.section-body a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

/* Stat pills */
.stat-row {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 12px 0;
}

.stat-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: var(--violet-light);
    font-weight: 600;
}

/* Info boxes */
.info-box {
    border-radius: 12px;
    padding: 14px 18px;
    margin: 14px 0;
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 0.86rem;
}

.info-box.safe {
    background: rgba(34,211,238,0.05);
    border: 1px solid rgba(34,211,238,0.2);
}

.info-box.notice {
    background: rgba(124,58,237,0.07);
    border: 1px solid rgba(167,139,250,0.2);
}

.info-box.warn {
    background: rgba(232,121,249,0.05);
    border: 1px solid rgba(232,121,249,0.2);
}

.info-box-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }
.info-box p { margin: 0 !important; color: var(--text-dim); }

/* Contact card */
.contact-card {
    display: flex; align-items: center; gap: 16px;
    background: rgba(124,58,237,0.07);
    border: 1px solid rgba(167,139,250,0.22);
    border-radius: 14px;
    padding: 18px 22px;
    margin-top: 16px;
    transition: background 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    background: rgba(124,58,237,0.12);
    box-shadow: 0 0 20px rgba(124,58,237,0.2);
}

.contact-card .contact-icon { font-size: 1.8rem; }
.contact-card .contact-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-card a {
    color: var(--violet-light);
    font-size: 0.95rem;
    font-weight: 700;
    border: none !important;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-card a:hover { color: var(--cyan); }

/* ── FOOTER ── */
footer {
    margin-top: 56px;
    text-align: center;
    padding: 28px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-light), var(--cyan), var(--pink), transparent);
}

.footer-logo {
    font-family: 'Philosopher', serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--violet-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.footer-icons {
    display: flex; justify-content: center; gap: 10px;
    margin: 10px 0 14px;
    font-size: 1.1rem;
}

footer p { color: var(--text-dim); font-size: 0.8rem; line-height: 1.7; }
footer a { color: var(--violet-light); text-decoration: none; }
footer a:hover { color: var(--cyan); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet-light); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .lang-bar {
        top: auto; bottom: 1.2rem; right: 50%; transform: translateX(50%);
        background: rgba(7,6,15,0.96); padding: 0.4rem;
        border-radius: 10px; border: 1px solid var(--glass-border);
    }
    .page-wrapper { padding: 20px 16px 90px; }
    .logo-wrap img { width: 130px; height: 130px; }
    .section-header { padding: 14px 18px; }
    .section-body { padding: 0 18px 18px; }
    .toc ul { grid-template-columns: 1fr; }
    .contact-card { flex-direction: column; gap: 10px; }
}
