/* --- RESET & VARS --- */
:root {
    --bg-dark: #030014;
    --text-main: #cbd5e1;
    --text-head: #ffffff;
    --primary: #8b5cf6;
    --accent: #38bdf8;
    --glass-surface: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --sidebar-width: 280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: 'Outfit', sans-serif; line-height: 1.7; overflow-x: hidden; }

/* AMBIENT BG */
.ambient-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.25; }
.b1 { top: -10%; left: -10%; width: 600px; height: 600px; background: var(--primary); }
.b2 { bottom: -10%; right: -10%; width: 500px; height: 500px; background: var(--accent); }

/* HEADER */
.doc-header { position: fixed; top: 0; left: 0; width: 100%; height: 70px; background: rgba(3, 0, 20, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); z-index: 1000; display: flex; align-items: center; padding: 0 5%; }
.header-inner { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem; color: #fff; }
.badge { font-size: 0.7rem; background: rgba(139, 92, 246, 0.15); color: var(--primary); padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(139, 92, 246, 0.3); font-weight: 600; letter-spacing: 0.5px; }
.btn-close { text-decoration: none; color: var(--text-main); display: flex; align-items: center; gap: 8px; font-size: 0.9rem; padding: 6px 14px; border-radius: 6px; transition: 0.2s; }
.btn-close:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* LAYOUT GRID */
.layout-grid { display: grid; grid-template-columns: var(--sidebar-width) 1fr; max-width: 1200px; margin: 70px auto 0; min-height: 80vh; }

/* SIDEBAR */
.sidebar { border-right: 1px solid var(--glass-border); background: rgba(3, 0, 20, 0.4); }
.sidebar-sticky { position: sticky; top: 90px; padding: 20px; height: calc(100vh - 90px); overflow-y: auto; }
.search-box { position: relative; margin-bottom: 30px; }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-main); font-size: 0.9rem; }
#searchInput { width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border); padding: 10px 10px 10px 35px; border-radius: 8px; color: #fff; font-family: 'Outfit', sans-serif; font-size: 0.9rem; transition: 0.3s; }
#searchInput:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.05); }
.toc-label { font-size: 0.75rem; color: var(--text-main); opacity: 0.6; letter-spacing: 1px; margin-bottom: 15px; font-weight: 600; }
.table-of-contents ul { list-style: none; }
.toc-link { display: block; padding: 8px 12px; color: var(--text-main); text-decoration: none; font-size: 0.9rem; border-radius: 6px; margin-bottom: 4px; transition: 0.2s; border-left: 2px solid transparent; }
.toc-link:hover { color: #fff; background: rgba(255,255,255,0.02); }
.toc-link.active { color: var(--primary); background: rgba(139, 92, 246, 0.1); border-left-color: var(--primary); font-weight: 500; }

/* MAIN CONTENT */
.content-area { padding: 40px 60px 80px; }
.doc-meta { margin-bottom: 60px; padding-bottom: 30px; border-bottom: 1px solid var(--glass-border); }
.doc-meta h1 { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; color: #fff; margin-bottom: 10px; }
.doc-meta p { color: var(--text-main); opacity: 0.7; }
.policy-section { margin-bottom: 60px; scroll-margin-top: 100px; }
.policy-section h2 { font-family: 'Space Grotesk', sans-serif; color: #fff; font-size: 1.8rem; margin-bottom: 20px; }
.text-block p, .text-block ul { margin-bottom: 16px; font-size: 1.05rem; }
.text-block ul { padding-left: 20px; margin-left: 10px; }
.text-block li { margin-bottom: 8px; }
strong { color: #fff; font-weight: 600; }
.contact-box { display: inline-flex; align-items: center; gap: 10px; background: var(--glass-surface); padding: 15px 25px; border-radius: 12px; border: 1px solid var(--glass-border); margin-top: 10px; }
.contact-box a { color: var(--primary); text-decoration: none; font-weight: 500; }
.contact-box a:hover { text-decoration: underline; }
mark.highlight { background-color: rgba(250, 204, 21, 0.3); color: #facc15; padding: 0 2px; border-radius: 2px; }
.no-results { text-align: center; padding: 60px; background: var(--glass-surface); border-radius: 12px; border: 1px dashed var(--glass-border); }
.no-results i { font-size: 2rem; margin-bottom: 10px; opacity: 0.5; }

/* GRAND FOOTER STYLES (Included here for consistency) */
.grand-footer { position: relative; background: linear-gradient(to top, #050510, #030014); padding: 100px 5% 30px; border-top: 1px solid rgba(255,255,255,0.05); overflow: hidden; width: 100%; margin-top: 0; }
.footer-glow { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 60%; height: 500px; background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%); z-index: 0; pointer-events: none; }
.footer-cta-container { text-align: center; position: relative; z-index: 1; margin-bottom: 80px; }
.footer-cta-title { font-family: 'Space Grotesk', sans-serif; font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 20px; color: #fff; }
.gradient-text { background: linear-gradient(to right, #818cf8, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-cta-desc { font-size: 1.1rem; color: var(--text-main); max-width: 600px; margin: 0 auto 40px; }
.btn-primary { padding: 14px 35px; background: #fff; color: #000; border-radius: 8px; font-weight: 600; text-decoration: none; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,255,255,0.2); }
.footer-separator { height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent); margin-bottom: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 25px; color: #fff; font-weight: 600; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.footer-links a { text-decoration: none; color: var(--text-main); transition: 0.3s; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-link { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.social-link:hover { background: var(--primary); transform: translateY(-3px); }
.newsletter-form { display: flex; margin-top: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; padding: 5px; }
.newsletter-form input { background: transparent; border: none; padding: 10px 20px; color: #fff; width: 100%; outline: none; font-family: 'Outfit', sans-serif; }
.newsletter-form button { background: var(--primary); border: none; width: 40px; height: 40px; border-radius: 50%; color: #fff; cursor: pointer; transition: 0.3s; }
.newsletter-form button:hover { transform: scale(1.1); }
.footer-bottom { max-width: 1200px; margin: 60px auto 0; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; font-size: 0.9rem; color: var(--text-main); opacity: 0.7; position: relative; z-index: 1; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .content-area { padding: 30px 5%; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .social-icons, .newsletter-form { justify-content: center; }
    .newsletter-form { max-width: 400px; margin: 20px auto; }
}