:root {
    --primary: #D8A45A;
    --bg: #030303;
}

/* --- Trail Spotlight --- */
.cur-glow {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 9998;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(216, 164, 90, 0.38), rgba(216, 164, 90, 0.04) 42%, transparent 68%);
    mix-blend-mode: screen;
    transition: opacity 0.6s, width 0.5s ease, height 0.5s ease;
}

.cur-glow.on {
    opacity: 1;
}

.cur-glow.hot {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(216, 164, 90, 0.25), rgba(216, 164, 90, 0.06) 42%, transparent 68%);
}

body {
    background-color: var(--bg);
    color: white;
    cursor: none;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Disable custom cursor and glow on touch devices */
@media (pointer: coarse) {
    body {
        cursor: auto;
    }

    #cursor-dot,
    #cursor-outline,
    .cur-glow {
        display: none !important;
    }
}

/* --- Lenis Smooth Scroll --- */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* --- Custom Physics Cursor --- */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

#cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(216, 164, 90, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
}

.cursor-hover #cursor-outline {
    width: 80px;
    height: 80px;
    background: rgba(216, 164, 90, 0.1);
    border-color: transparent;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-mask {
    position: absolute;
    inset: 0;
    background: #000;
    transform-origin: bottom;
    z-index: -1;
}

.loader-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(216, 164, 90, 0.5);
    letter-spacing: 0.3em;
}

/* --- WebGL Background --- */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.8;
}

/* --- Typography & Utilities --- */
.split-text .char {
    transform: translateY(100%) rotateX(-90deg);
    transform-origin: bottom center;
    opacity: 0;
}

::-webkit-scrollbar {
    display: none;
}

.text-gold {
    background: linear-gradient(135deg, #D8A45A, #FF8A1D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Header --- */
.glass2 {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Policy Document (V1) --- */
#toc .toc-link {
    border-left: 1px solid rgba(216, 164, 90, 0);
    padding-left: 0;
    transition: color 0.3s, padding-left 0.4s cubic-bezier(0.19, 1, 0.22, 1), border-left-color 0.4s ease;
}

#toc .toc-link.active {
    color: var(--primary);
    border-left-color: rgba(216, 164, 90, 0.8);
    padding-left: 14px;
}

.section-num {
    opacity: 0.85;
    letter-spacing: 0.15em;
}

.policy-body {
    color: #8A8A8A;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.9;
    letter-spacing: 0.02em;
}

.policy-section:first-of-type {
    border-top: none;
}

@media (max-width: 1023px) {
    article .policy-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}
