/* Privacy Policy Page - Glass Morphism with Navy & Teal Theme */
    :root {
        /* Light theme - Navy & Teal */
        --bg-primary: #f1f5f9;
        --bg-secondary: #ffffff;
        --bg-card: #ffffff;
        --text-primary: #1e293b;
        --text-secondary: #475569;
        --text-muted: #64748b;
        --border-color: #e2e8f0;
        --shadow-light: 0 1px 3px 0 rgba(30, 41, 59, 0.1), 0 1px 2px 0 rgba(30, 41, 59, 0.06);
        --shadow-medium: 0 4px 6px -1px rgba(30, 41, 59, 0.1), 0 2px 4px -1px rgba(30, 41, 59, 0.06);
        --shadow-large: 0 20px 25px -5px rgba(30, 41, 59, 0.1), 0 10px 10px -5px rgba(30, 41, 59, 0.04);
        --accent-primary: #1e3a8a;
        --accent-secondary: #0d9488;
        --accent-danger: #dc2626;
        --accent-warning: #d97706;
        --accent-success: #059669;
        --glass-bg: rgba(255, 255, 255, 0.25);
        --glass-border: rgba(30, 58, 138, 0.18);
        --toc-bg: rgba(255, 255, 255, 0.8);
        --section-bg: rgba(255, 255, 255, 0.6);
    }

    [data-theme="dark"] {
        /* Dark theme - Navy & Teal */
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-card: #334155;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-color: #475569;
        --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
        --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
        --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
        --accent-primary: #3b82f6;
        --accent-secondary: #14b8a6;
        --glass-bg: rgba(51, 65, 85, 0.25);
        --glass-border: rgba(59, 130, 246, 0.18);
        --toc-bg: rgba(30, 41, 59, 0.8);
        --section-bg: rgba(30, 41, 59, 0.6);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
        scroll-padding-top: 120px; /* Adjusted for fixed navbar */
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background: var(--bg-primary);
        color: var(--text-primary);
        min-height: 100vh;
        padding-top: 120px; /* Adjusted for navbar */
        padding-bottom: 3rem;
        line-height: 1.6;
        transition: background-color 0.3s ease, color 0.3s ease;
        position: relative;
    }

    /* Animated Background */
    .animated-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -2;
        background: linear-gradient(-45deg, #1e3a8a, #0d9488, #1e40af, #0891b2);
        background-size: 400% 400%;
        animation: gradientShift 15s ease infinite;
        opacity: 0.1;
    }

    /* Ensure dark mode background works properly */
    [data-theme="dark"] .animated-bg {
        opacity: 0.05;
        background: linear-gradient(-45deg, #3b82f6, #14b8a6, #60a5fa, #2dd4bf);
    }

    /* Add an overlay for dark mode to ensure contrast */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -3;
        background-color: var(--bg-primary);
        transition: background-color 0.3s ease;
    }

    @keyframes gradientShift {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    /* Floating Orbs */
    .orb {
        position: fixed;
        border-radius: 50%;
        filter: blur(40px);
        opacity: 0.5;
        animation: float 20s infinite ease-in-out;
        z-index: -1;
    }

    .orb1 {
        width: 400px;
        height: 400px;
        background: var(--accent-primary);
        top: -200px;
        left: -200px;
        animation-delay: 0s;
    }

    .orb2 {
        width: 300px;
        height: 300px;
        background: var(--accent-secondary);
        bottom: -150px;
        right: -150px;
        animation-delay: 5s;
    }

    .orb3 {
        width: 350px;
        height: 350px;
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        top: 50%;
        left: 70%;
        transform: translate(-50%, -50%);
        animation-delay: 10s;
    }

    [data-theme="dark"] .orb1,
    [data-theme="dark"] .orb2,
    [data-theme="dark"] .orb3 {
        opacity: 0.3;
    }

    @keyframes float {
        0%, 100% { transform: translate(0, 0) scale(1); }
        33% { transform: translate(30px, -30px) scale(1.1); }
        66% { transform: translate(-20px, 20px) scale(0.9); }
    }

    /* Main Content */
    .privacy-container {
        display: flex;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1.5rem;
        gap: 2rem;
    }

    /* Table of Contents */
    .toc {
        position: sticky;
        top: 120px; /* Adjusted for navbar */
        height: calc(100vh - 160px); /* Adjusted for navbar */
        width: 300px;
        background: var(--toc-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 2rem;
        box-shadow: var(--shadow-medium);
        flex-shrink: 0;
        animation: fadeInLeft 1s ease;
        overflow-y: auto;
        z-index: 5; /* Ensure proper stacking */
    }

    .toc h3 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        color: var(--accent-primary);
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.75rem;
    }

    .toc-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .toc-list li {
        margin-bottom: 0.75rem;
    }

    .toc-list a {
        display: block;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        color: var(--text-secondary);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .toc-list a:hover {
        background: var(--glass-bg);
        color: var(--accent-primary);
        transform: translateX(5px);
    }

    .toc-list a.active {
        background: var(--glass-bg);
        color: var(--accent-primary);
        border-left: 3px solid var(--accent-secondary);
    }

    /* Content Area */
    .privacy-content {
        flex-grow: 1;
        animation: fadeInUp 1s ease;
    }

    .privacy-card {
        background: var(--section-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        padding: 2.5rem;
        box-shadow: var(--shadow-large);
    }

    .privacy-card h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
        font-weight: 700;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .effective-date {
        color: var(--text-muted);
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .privacy-section {
        margin-bottom: 2.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .privacy-section.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .privacy-section h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--accent-primary);
        margin-bottom: 1.25rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .privacy-section p {
        margin-bottom: 1rem;
        color: var(--text-secondary);
    }

    .privacy-section strong {
        color: var(--text-primary);
        font-weight: 600;
    }

    .privacy-section a {
        color: var(--accent-secondary);
        text-decoration: none;
        border-bottom: 1px dotted var(--accent-secondary);
        transition: all 0.3s ease;
    }

    .privacy-section a:hover {
        color: var(--accent-primary);
        border-bottom: 1px solid var(--accent-primary);
    }

    /* Lists in privacy sections */
    .privacy-section ul {
        margin-bottom: 1.5rem;
        padding-left: 1.5rem;
        list-style-type: none;
    }

    .privacy-section ul li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.75rem;
        color: var(--text-secondary);
    }

    .privacy-section ul li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: var(--accent-secondary);
        font-weight: bold;
    }

    /* Animation classes */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Responsive design */
    @media (max-width: 992px) {
        .privacy-container {
            flex-direction: column;
        }

        .toc {
            width: 100%;
            height: auto;
            position: relative;
            top: 0;
            margin-bottom: 2rem;
            max-height: 300px;
        }
    }

    @media (max-width: 768px) {
        body {
            padding-top: 100px; /* Adjusted for mobile navbar */
        }

        .privacy-card {
            padding: 1.5rem;
        }

        .orb1, .orb2, .orb3 {
            opacity: 0.2;
        }
        
        /* Adjust for mobile navbar */
        .toc {
            top: 0;
            margin-top: 1rem;
        }
    }

    @media (max-width: 480px) {
        body {
            padding-top: 80px; /* Further adjusted for smaller devices */
        }

        .privacy-card {
            padding: 1.25rem;
        }

        .privacy-card h1 {
            font-size: 1.75rem;
        }

        .privacy-section h2 {
            font-size: 1.25rem;
        }
        
        /* Ensure content is readable on small screens */
        .privacy-section p, 
        .privacy-section li {
            font-size: 0.95rem;
        }
    }

    /* Scroll progress indicator */
    .progress-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: transparent;
        z-index: 9999;
    }

    .progress-bar {
        height: 100%;
        background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
        width: 0%;
        transition: width 0.3s ease;
    }

    /* Section highlight on scroll */
    .privacy-section:target {
        animation: highlight 2s ease;
    }

    @keyframes highlight {
        0% { background: var(--glass-bg); }
        50% { background: var(--glass-bg); }
        100% { background: transparent; }
    }
    
    /* Z-index fixes for navbar */
    .glass-navbar {
        z-index: 1050 !important; 
    }
    
    /* Fix for webkit backdrop filter */
    @supports (-webkit-backdrop-filter: none) {
        .toc, .privacy-card {
            background-color: rgba(255, 255, 255, 0.85);
        }
        
        [data-theme="dark"] .toc,
        [data-theme="dark"] .privacy-card {
            background-color: rgba(30, 41, 59, 0.85);
        }
    }