html {
    scroll-behavior: smooth; /* Ye browser ko batata hai ki dheere se scroll karna hai */
}

:root {
    --bg: #030407;
    --card-bg: rgba(15, 18, 25, 0.4);
    --primary: #2563eb;
    --accent: #60a5fa;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.05);
    --glow: rgba(37, 99, 235, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

/* 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;
}

.container { max-width: 1200px; margin: 0 auto; padding: 100px 20px; }

/* Header Styling */
.privacy-header { text-align: center; margin-bottom: 100px; }
.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-family: 'Sora', sans-serif; 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: 60px; align-items: flex-start; }

/* Sidebar - Glass Nav */
.sidebar { width: 280px; position: sticky; top: 100px; }
.glass-nav {
    background: rgba(10, 12, 18, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px 20px;
}
.glass-nav ul { list-style: none; }
.glass-nav li { margin-bottom: 10px; }
.glass-nav li:last-child { margin-bottom: 0; }

.nav-link {
    text-decoration: none; color: var(--text-dim); font-size: 1.05rem;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-link i { font-size: 1.1rem; opacity: 0.5; transition: 0.4s; }

.nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    transform: translateX(5px);
}
.nav-link.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-weight: 500;
    box-shadow: inset 0 0 20px rgba(37, 99, 235, 0.05);
}
.nav-link.active i { opacity: 1; color: var(--primary); }

/* Ultimate Content Cards */
.content-area { flex: 1; }

.policy-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 50px; border-radius: 32px; margin-bottom: 40px;
    position: relative; overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy smooth transition */
    
    /* Scroll Reveal Initial State */
    opacity: 0;
    transform: translateY(40px);
}

.policy-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card Inner Glow */
.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;
}

/* Hover Effects on Card */
.policy-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 
                0 0 30px rgba(37, 99, 235, 0.15),
                inset 0 0 20px rgba(37, 99, 235, 0.05);
    transform: translateY(-8px) scale(1.01);
}
.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;
}

/* Icon Pop on Hover */
.policy-card:hover .section-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

.policy-card h2 { font-family: 'Sora', sans-serif; font-size: 1.8rem; margin-bottom: 20px; position: relative; z-index: 1; }
.policy-card p { color: var(--text-dim); line-height: 1.8; font-size: 1.05rem; position: relative; z-index: 1; }

.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: 30px; font-weight: 300; line-height: 1.7;
}
.policy-list li::before {
    content: '\f00c'; /* FontAwesome Checkmark */
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 2px;
    color: var(--primary); font-size: 0.9rem;
    background: rgba(37, 99, 235, 0.1); padding: 2px; border-radius: 50%;
}

@media (max-width: 992px) {
    .privacy-wrapper { flex-direction: column; }
    .sidebar { position: static; width: 100%; margin-bottom: 40px; }
    .glass-nav ul { display: flex; overflow-x: auto; padding-bottom: 10px; gap: 10px; }
    .nav-link { white-space: nowrap; }
}
@media (max-width: 768px) {
    .privacy-header h1 { font-size: 2.5rem; }
    .policy-card { padding: 35px 25px; }
}

/* Content area ke niche extra space taaki last section top par aa sake */
.content-area { 
    flex: 1; 
    padding-bottom: 60vh; /* Ye screen ki 60% height jitna gap niche add kar dega */
}

/* Ensure sections have enough height for detection */
section {
    min-height: 300px;
    margin-bottom: 40px;
}