html {
    scroll-behavior: smooth; 
}

:root {
    --bg: #030407;
    --card-bg: rgba(15, 18, 25, 0.6);
    --primary: #2563eb;
    --accent: #60a5fa;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glow: rgba(37, 99, 235, 0.3);
    --scale: 1; 

    --nav-bg: #0f172a;
    --nav-text: #ffffff;
    --footer-link: #2563eb;
}

/* Light Theme Variables - Theme switch hone par sidebar aur background badlega */
[data-theme="light"], body.light-mode {
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-dim: #475569;
    --border: rgba(0, 0, 0, 0.08);
    --glow: rgba(37, 99, 235, 0.15);
    --nav-bg: #ffffff;
    --nav-text: #0f172a;
}

[data-theme="dark"] {
    --bg: #030407;
    --card-bg: rgba(15, 18, 25, 0.6);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    -webkit-user-select: none; 
    -moz-user-select: none;    
    -ms-user-select: none;     
    user-select: none;         
    background-color: var(--bg);
    color: var(--text-main);
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden !important; 
    overflow-y: auto !important;
    zoom: var(--scale);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav .brand, .footer-brand .brand {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800;
}

/* Ambient Background Effect */
.ambient-glow {
    position: fixed;
    top: -20%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.policy-container { 
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 100px 20px; 
}

.container { width: 90%; max-width: 1100px; margin: auto; }

.privacy-header { text-align: center; margin-bottom: 80px; }

.badge {
    background: rgba(37, 99, 235, 0.1); color: var(--primary);
    padding: 8px 20px; border-radius: 100px; font-size: 0.85rem; font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.3);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.privacy-header h1 { font-weight: 800; font-size: 3.8rem; margin: 25px 0 15px; letter-spacing: -1px; }

.gradient-text {
    background: linear-gradient(135deg, #2563eb, #60a5fa, #93c5fd);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.subtitle { color: var(--text-dim); font-size: 1.2rem; max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* Layout */
.privacy-wrapper { display: flex; gap: 50px; align-items: flex-start; }

.sidebar {
    width: 280px;
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    flex-shrink: 0;
}

.glass-nav {
    max-height: 100%;
    overflow-y: auto;
    /* FIX: Dynamic card background jo theme ke hisaab se light/dark hoga */
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 25px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.glass-nav ul { list-style: none; padding: 0; margin: 0; }
.glass-nav li { margin-bottom: 8px; }
.glass-nav li:last-child { margin-bottom: 0; }

/* FIX: display: flex + gap 14px se icon aur text ke beech space aayega */
.nav-link {
    display: flex !important;
    align-items: center;
    gap: 14px; 
    padding: 12px 18px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    background: transparent;
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Sidebar Links Hover */
.nav-link:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    transform: translateX(6px);
}

.nav-link:hover i {
    opacity: 1;
    color: var(--primary);
}

/* Sidebar Active Link */
.nav-link.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.nav-link.active i {
    opacity: 1;
    color: #ffffff !important;
}

.content-area {
    flex: 1;
    padding-bottom: 20vh;
}

section {
    min-height: 300px;
    margin-bottom: 40px;
}

.policy-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 45px; 
    border-radius: 28px; 
    margin-bottom: 40px;
    position: relative; 
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, background 0.3s ease, border-color 0.3s ease; 
    opacity: 0;
    transform: translateY(40px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.policy-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(37, 99, 235, 0.06), transparent 40%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none; z-index: 0;
}

.policy-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2), 
                0 0 30px rgba(37, 99, 235, 0.15);
    transform: translateY(-6px);
}

.policy-card:hover .card-glow { opacity: 1; }

.section-icon {
    width: 55px; height: 55px; background: rgba(37, 99, 235, 0.08);
    color: var(--primary); border-radius: 14px; display: flex;
    align-items: center; justify-content: center; margin-bottom: 25px;
    font-size: 1.4rem; border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative; z-index: 1;
}

.policy-card:hover .section-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.policy-card h2 { 
    font-weight: 700; 
    font-size: 1.8rem; 
    margin-bottom: 20px; 
    position: relative; 
    z-index: 1; 
    color: var(--text-main);
}

.policy-card p { 
    color: var(--text-dim); 
    line-height: 1.8; 
    font-size: 1.05rem; 
    position: relative; 
    z-index: 1; 
}

/* =========================================
   LISTS & TYPOGRAPHY
========================================= */
.policy-list { margin-top: 25px; list-style: none; position: relative; z-index: 1; }
.policy-list li { 
    color: var(--text-dim); margin-bottom: 15px; position: relative; 
    padding-left: 32px; font-weight: 400; line-height: 1.7;
}

.policy-list li::before {
    content: '\f00c'; 
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    position: absolute; left: 0; top: 2px;
    color: var(--primary); font-size: 0.85rem;
    background: rgba(37, 99, 235, 0.1); 
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

#desktop-enforcer { display: none !important; }

/* =========================================
   SCROLLBAR STYLING
========================================= */
.glass-nav, .glass-nav ul {
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 128, 128, 0.2) transparent;
}

.glass-nav::-webkit-scrollbar,
.glass-nav ul::-webkit-scrollbar {
    width: 4px;
    height: 4px; 
}

.glass-nav::-webkit-scrollbar-track,
.glass-nav ul::-webkit-scrollbar-track {
    background: transparent;
}

.glass-nav::-webkit-scrollbar-thumb,
.glass-nav ul::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.2); 
    border-radius: 10px;
}

.glass-nav::-webkit-scrollbar-thumb:hover,
.glass-nav ul::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.4); 
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
    .privacy-wrapper { flex-direction: column; }
    .sidebar { position: static; width: 100%; height: auto; top: auto; margin-bottom: 40px; }
    .glass-nav ul { display: flex; overflow-x: auto; padding-bottom: 10px; gap: 10px; }
    .nav-link { white-space: nowrap; padding: 10px 16px; }
    .nav-link:hover { transform: translateY(-3px); }
}

@media (max-width: 768px) {
    .privacy-header h1 { font-size: 2.5rem; }
    .policy-card { padding: 35px 25px; }
}

.content-area h2 {
    font-family: 'Sora', sans-serif;
}

.content-area p {
    font-family: 'Outfit', sans-serif;
}