/* ===================================
   ENHANCED STYLES - EXPIRY ALERT PRO
   Material 3 Design System
   =================================== */

:root {
    /* Light Theme Colors */
    --primary: #0061a4;
    --primary-dark: #004a7f;
    --primary-light: #4d9fd9;
    --surface: #fdfcff;
    --surface-variant: #f5f5f5;
    --on-surface: #1a1c1e;
    --on-surface-variant: #666;
    --success: #2e7d32;
    --warning: #f57c00;
    --danger: #d32f2f;
    --border: rgba(0, 0, 0, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
body.dark-theme {
    --surface: #1a1c1e;
    --surface-variant: #2d3436;
    --on-surface: #e8eaed;
    --on-surface-variant: #aaa;
    --border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--surface);
    color: var(--on-surface);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ===================================
   GLASSMORPHISM NAVIGATION
   =================================== */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.2rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 97, 164, 0.1);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

body.dark-theme nav {
    background: rgba(26, 28, 30, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

nav.scrolled {
    padding: 0.9rem 6%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.logo i {
    font-size: 1.6rem;
    animation: bellRing 3s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    padding: 10px 24px;
    color: var(--on-surface);
    transition: var(--transition);
    font-size: 1rem;
    border-radius: 12px;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(0, 97, 164, 0.08);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: white;
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 97, 164, 0.3);
}

.theme-btn {
    background: var(--surface-variant);
    border: 2px solid var(--border);
    color: var(--on-surface);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
    margin-left: 8px;
}

.theme-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@keyframes bellRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    5%, 15% {
        transform: rotate(-15deg);
    }
    10%, 20% {
        transform: rotate(15deg);
    }
    25% {
        transform: rotate(0deg);
    }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    padding: 140px 8% 100px;
    display: flex;
    align-items: center;
    gap: 80px;
    min-height: 90vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.dark-theme .hero {
    background: linear-gradient(135deg, #1a1c1e 0%, #2d3436 100%);
}

.hero-text {
    flex: 1;
}

.badge {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 97, 164, 0.2);
}

.hero-text h1 {
    font-family: 'Plus Jakarta Sans';
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--on-surface);
    margin-bottom: 36px;
    max-width: 600px;
    line-height: 1.8;
    font-weight: 500;
}

.btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 97, 164, 0.35);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 3px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
}

.status-badge {
    margin-top: 40px;
    color: var(--success);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(46, 125, 50, 0.15);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

/* ===================================
   INTERACTIVE PRODUCT SIMULATOR
   =================================== */
.simulator-section {
    padding: 100px 8%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.dark-theme .simulator-section {
    background: linear-gradient(135deg, #1a1c1e 0%, #2d3436 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Plus Jakarta Sans';
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--on-surface-variant);
    font-size: 1.15rem;
    font-weight: 500;
}

.simulator-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.simulator-controls {
    background: white;
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    transition: var(--transition);
}

body.dark-theme .simulator-controls {
    background: #2d3436;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.simulator-controls:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 50px rgba(0, 97, 164, 0.15);
}

.simulator-controls h3 {
    font-family: 'Plus Jakarta Sans';
    margin-bottom: 28px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-form input {
    padding: 16px 20px;
    border: 3px solid var(--border);
    border-radius: 16px;
    font-size: 1.05rem;
    font-family: 'Inter';
    background: var(--surface);
    color: var(--on-surface);
    transition: var(--transition);
    font-weight: 600;
}

.product-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 97, 164, 0.1);
}

.simulator-display {
    background: white;
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-theme .simulator-display {
    background: #2d3436;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.product-card {
    width: 100%;
    padding: 32px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 24px;
    border: 4px solid var(--success);
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.2);
}

.product-card.hidden {
    display: none;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-header h4 {
    font-family: 'Plus Jakarta Sans';
    font-size: 1.5rem;
    font-weight: 800;
}

.status-safe {
    background: var(--success);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.product-details {
    margin-bottom: 20px;
}

.product-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #2e7d32;
    font-weight: 600;
    font-size: 1.05rem;
}

.btn-small {
    padding: 10px 20px;
    background: white;
    border: 3px solid var(--danger);
    color: var(--danger);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-small:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    color: var(--on-surface-variant);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

/* ===================================
   INVENTORY DASHBOARD MOCKUP
   =================================== */
.dashboard-section {
    padding: 100px 8%;
    background: white;
}

body.dark-theme .dashboard-section {
    background: #1a1c1e;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-card {
    padding: 50px;
    border-radius: 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid transparent;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.dashboard-card.active {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: var(--primary);
}

.dashboard-card.consumed {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: var(--success);
}

.dashboard-card.discarded {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: var(--danger);
}

.dashboard-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.dashboard-card.active .card-icon {
    color: var(--primary);
}

.dashboard-card.consumed .card-icon {
    color: var(--success);
}

.dashboard-card.discarded .card-icon {
    color: var(--danger);
}

.dashboard-card h3 {
    font-family: 'Plus Jakarta Sans';
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.dashboard-card .count {
    font-family: 'Plus Jakarta Sans';
    font-size: 4rem;
    font-weight: 900;
    margin: 16px 0;
}

.dashboard-card .description {
    color: var(--on-surface-variant);
    font-size: 1rem;
    font-weight: 600;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-section {
    padding: 100px 8%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.dark-theme .features-section {
    background: linear-gradient(135deg, #1a1c1e 0%, #2d3436 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 50px;
    border-radius: 32px;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

body.dark-theme .feature-card {
    background: #2d3436;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 97, 164, 0.15);
    border-color: var(--primary);
}

.feature-card i {
    font-size: 3.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: block;
}

.feature-card h3 {
    font-family: 'Plus Jakarta Sans';
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.feature-card p {
    color: var(--on-surface-variant);
    line-height: 1.8;
    font-size: 1.05rem;
    font-weight: 500;
}

/* ===================================
   PRIVACY POLICY LAYOUT - ULTRA PRO MAX
   =================================== */
.privacy-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    padding-top: 85px;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.dark-theme .privacy-container {
    background: linear-gradient(135deg, #1a1c1e 0%, #2d3436 100%);
}

.toc-sidebar {
    position: sticky;
    top: 85px;
    height: calc(100vh - 85px);
    max-height: calc(100vh - 85px);
    overflow-y: auto;
    background: white;
    backdrop-filter: blur(20px);
    padding: 45px 25px;
    border-right: none;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.08);
}

body.dark-theme .toc-sidebar {
    background: #2d3436;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.3);
}

.toc-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: none;
    position: relative;
}

.toc-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 4px;
}

.toc-header h3 {
    font-family: 'Plus Jakarta Sans';
    font-size: 0.85rem;
    color: var(--on-surface-variant);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-link {
    padding: 20px 20px;
    color: var(--on-surface);
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.98rem;
    font-weight: 600;
    border-left: 4px solid transparent;
    display: block;
    position: relative;
    background: transparent;
    line-height: 1.7;
}

.toc-link:hover {
    background: linear-gradient(135deg, rgba(0, 97, 164, 0.08) 0%, rgba(77, 159, 217, 0.08) 100%);
    color: var(--primary);
    transform: translateX(4px);
    border-left-color: var(--primary);
}

.toc-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 800;
    border-left-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(0, 97, 164, 0.35);
    transform: translateX(4px);
}

.privacy-content {
    padding: 50px 100px 120px 80px;
    background: transparent;
}

.search-container {
    position: sticky;
    top: 85px;
    z-index: 100;
    background: linear-gradient(180deg, rgba(248,249,250,1) 0%, rgba(248,249,250,0) 100%);
    padding: 0 0 50px;
    margin-bottom: 30px;
}

body.dark-theme .search-container {
    background: linear-gradient(180deg, rgba(26,28,30,1) 0%, rgba(26,28,30,0) 100%);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 32px;
    background: white;
    border-radius: 24px;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

body.dark-theme .search-wrapper {
    background: #2d3436;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 15px 50px rgba(0, 97, 164, 0.25);
    transform: translateY(-4px);
}

.search-wrapper i {
    color: var(--primary);
    font-size: 1.4rem;
}

#policy-search {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-family: 'Inter';
    color: var(--on-surface);
    outline: none;
    font-weight: 600;
}

#policy-search::placeholder {
    color: var(--on-surface-variant);
    font-weight: 500;
}

#search-results-count {
    font-size: 0.9rem;
    color: white;
    font-weight: 800;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 97, 164, 0.3);
}

.legal-document {
    animation: fadeInScale 1s ease;
}

.legal-document h1 {
    font-family: 'Plus Jakarta Sans';
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

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

.effective-date {
    color: var(--on-surface);
    font-size: 1.1rem;
    margin-bottom: 60px;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(0, 97, 164, 0.12) 0%, rgba(77, 159, 217, 0.12) 100%);
    border-radius: 20px;
    border-left: 6px solid var(--primary);
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 97, 164, 0.1);
}

body.dark-theme .effective-date {
    background: linear-gradient(135deg, rgba(0, 97, 164, 0.25) 0%, rgba(77, 159, 217, 0.25) 100%);
}

.policy-section {
    margin-bottom: 60px;
    scroll-margin-top: 180px;
    padding: 50px;
    background: white;
    border-radius: 32px;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

body.dark-theme .policy-section {
    background: #2d3436;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.policy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: var(--transition);
}

.policy-section:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 97, 164, 0.15);
    transform: translateY(-5px);
}

.policy-section:hover::before {
    opacity: 1;
}

.policy-section h2 {
    font-family: 'Plus Jakarta Sans';
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.policy-section h2::before {
    content: '';
    width: 8px;
    height: 42px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 97, 164, 0.3);
}

.policy-section p {
    margin-bottom: 22px;
    line-height: 2;
    font-size: 1.08rem;
    color: var(--on-surface);
    font-weight: 500;
}

.policy-section p:last-of-type {
    margin-bottom: 0;
}

.policy-section ul {
    margin: 32px 0 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.policy-section li {
    line-height: 2;
    padding-left: 20px;
    position: relative;
    color: var(--on-surface);
    font-size: 1.05rem;
    font-weight: 500;
}

.policy-section li::marker {
    color: var(--primary);
    font-weight: 900;
    font-size: 1.3em;
}

.contact-info {
    padding: 32px;
    background: linear-gradient(135deg, rgba(0, 97, 164, 0.15) 0%, rgba(77, 159, 217, 0.15) 100%);
    border-radius: 24px;
    border: 4px solid var(--primary);
    margin-top: 28px;
    box-shadow: 0 10px 30px rgba(0, 97, 164, 0.2);
}

body.dark-theme .contact-info {
    background: linear-gradient(135deg, rgba(0, 97, 164, 0.3) 0%, rgba(77, 159, 217, 0.3) 100%);
}

.contact-info i {
    color: var(--primary);
    margin-right: 12px;
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
    font-size: 1.1rem;
}

.contact-info a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
    transform: scale(1.05);
    display: inline-block;
}

.policy-footer {
    margin-top: 80px;
    padding: 40px;
    background: linear-gradient(135deg, white 0%, var(--surface-variant) 100%);
    border-radius: 24px;
    color: var(--on-surface-variant);
    font-size: 1.05rem;
    text-align: center;
    border: 3px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.dark-theme .policy-footer {
    background: linear-gradient(135deg, #2d3436 0%, #1a1c1e 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.policy-footer p {
    margin-bottom: 12px;
    font-weight: 600;
}

mark {
    background: linear-gradient(135deg, #ffeb3b 0%, #fdd835 100%);
    color: #000;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(255, 235, 59, 0.4);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background: linear-gradient(135deg, #1a1c1e 0%, #2d3436 100%);
    color: white;
    padding: 80px 8% 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-family: 'Plus Jakarta Sans';
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: #aaa;
    line-height: 1.8;
    font-size: 1.05rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    transform: translateX(8px);
}

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 1rem;
    font-weight: 600;
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 97, 164, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 97, 164, 0.5);
}

/* ===================================
   SCROLL REVEAL ANIMATIONS
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .privacy-container {
        grid-template-columns: 1fr;
        padding-top: 85px;
    }
    
    .toc-sidebar {
        position: relative;
        top: 0;
        height: auto;
        max-height: none;
        border-right: none;
        border-bottom: 3px solid var(--border);
        padding: 30px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .toc-header {
        margin-bottom: 20px;
    }
    
    .toc-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .toc-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .privacy-content {
        padding: 40px 50px 80px;
    }
    
    .search-container {
        top: 0;
        position: relative;
        padding: 0 0 30px;
    }
    
    .legal-document h1 {
        font-size: 3rem;
    }
    
    .policy-section {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }
    
    nav.scrolled {
        padding: 0.8rem 5%;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.3rem;
    }
    
    .nav-links a {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .theme-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .privacy-container {
        background: var(--surface);
    }
    
    .toc-sidebar {
        padding: 25px 20px;
    }
    
    .toc-header h3 {
        font-size: 0.8rem;
    }
    
    .toc-nav {
        gap: 8px;
    }
    
    .toc-link {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .privacy-content {
        padding: 30px 20px 60px;
    }
    
    .search-wrapper {
        padding: 16px 20px;
        gap: 12px;
    }
    
    .search-wrapper i {
        font-size: 1.1rem;
    }
    
    #policy-search {
        font-size: 0.95rem;
    }
    
    #search-results-count {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    
    .legal-document h1 {
        font-size: 2.2rem;
    }
    
    .effective-date {
        font-size: 0.95rem;
        padding: 18px 20px;
        margin-bottom: 40px;
    }
    
    .policy-section {
        padding: 25px;
        margin-bottom: 40px;
    }
    
    .policy-section h2 {
        font-size: 1.6rem;
        gap: 12px;
    }
    
    .policy-section h2::before {
        width: 6px;
        height: 32px;
    }
    
    .policy-section p {
        font-size: 0.98rem;
        line-height: 1.8;
    }
    
    .policy-section ul {
        margin: 20px 0 20px 16px;
        gap: 12px;
    }
    
    .policy-section li {
        font-size: 0.95rem;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .contact-info a {
        font-size: 0.95rem;
    }
    
    .policy-footer {
        padding: 25px;
        margin-top: 50px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 5% 60px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .simulator-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .toc-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .privacy-content {
        padding: 20px 15px 50px;
    }
    
    .legal-document h1 {
        font-size: 1.8rem;
    }
    
    .policy-section {
        padding: 20px;
    }
    
    .policy-section h2 {
        font-size: 1.4rem;
    }
    
    .search-wrapper {
        padding: 14px 16px;
    }
}
