/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Reset and Core Variables */
:root {
    /* Color Tokens - Light Theme (ZoomInData Inspired Teal & Green) */
    --bg-primary: hsl(165, 15%, 97%);
    --bg-secondary: hsl(165, 12%, 92%);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(255, 255, 255, 0.6);
    --border-subtle: rgba(6, 78, 67, 0.08);
    --text-primary: hsl(171, 85%, 12%);
    --text-secondary: hsl(171, 30%, 28%);
    --text-muted: hsl(171, 15%, 48%);
    --accent: hsl(150, 80%, 38%);
    --accent-light: hsl(150, 45%, 92%);
    --accent-gradient: linear-gradient(135deg, hsl(171, 85%, 15%), hsl(150, 80%, 38%));
    --accent-glow: rgba(6, 78, 67, 0.15);
    --card-bg: rgba(255, 255, 255, 0.75);
    --shadow-sm: 0 4px 6px -1px rgba(6, 78, 67, 0.03), 0 2px 4px -1px rgba(6, 78, 67, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(6, 78, 67, 0.04), 0 4px 6px -2px rgba(6, 78, 67, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(6, 78, 67, 0.06), 0 10px 10px -5px rgba(6, 78, 67, 0.03);
    
    --success: hsl(142, 70%, 45%);
    --warning: hsl(42, 75%, 55%);
    --danger: hsl(350, 80%, 55%);

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --header-height: 76px;
    --sidebar-width: 320px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Animations */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables - Sleek Forest Night */
[data-theme="dark"] {
    --bg-primary: hsl(171, 35%, 6%);
    --bg-secondary: hsl(171, 30%, 10%);
    --bg-glass: rgba(6, 40, 35, 0.6);
    --border-glass: rgba(255, 255, 255, 0.04);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --text-primary: hsl(160, 60%, 97%);
    --text-secondary: hsl(171, 15%, 76%);
    --text-muted: hsl(171, 12%, 52%);
    --accent: hsl(150, 80%, 44%);
    --accent-light: hsl(170, 50%, 12%);
    --accent-gradient: linear-gradient(135deg, hsl(171, 80%, 15%), hsl(150, 80%, 44%));
    --accent-glow: rgba(46, 204, 113, 0.2);
    --card-bg: rgba(6, 24, 21, 0.55);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    
    --success: hsl(142, 75%, 60%);
    --warning: hsl(42, 85%, 60%);
    --danger: hsl(350, 85%, 65%);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 30px);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    position: relative;
    overflow-x: hidden;
}

/* Background Gradients/Glow Effects */
body::before, body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    transition: opacity var(--transition-smooth);
}

body::before {
    top: -100px;
    left: -100px;
    background: var(--accent-gradient);
}

body::after {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

[data-theme="dark"]::before, [data-theme="dark"]::after {
    opacity: 0.08;
}

/* Typography Rules */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    transition: color var(--transition-smooth);
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.85rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Header & Progress Indicator */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: hsl(171, 85%, 11%); /* ZoomInData Deep Forest Teal */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    transition: width 0.1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent); /* Lime green background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
    font-size: 1.15rem;
    transform: rotate(-6deg);
    transition: transform var(--transition-fast);
}

.logo-container:hover .logo-icon {
    transform: rotate(0deg) scale(1.05);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff; /* White logo text */
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--accent); /* Lime green Data suffix */
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box input {
    width: 100%;
    height: 42px;
    padding: 0 1rem 0 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08); /* White transparent input */
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.25);
}

.search-box svg {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    width: 16px;
    height: 16px;
    transition: color var(--transition-fast);
}

.search-box input:focus + svg {
    color: var(--accent);
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    outline: none;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.25);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.theme-toggle-btn .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.2);
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.2);
}

/* Page Layout */
.app-container {
    max-width: 1440px;
    margin: var(--header-height) auto 0 auto;
    padding: 3rem 4rem;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 4rem;
    position: relative;
}

/* Sticky Navigation Sidebar */
.sidebar-nav {
    position: sticky;
    top: calc(var(--header-height) + 30px);
    height: calc(100vh - var(--header-height) - 60px);
    overflow-y: auto;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 700;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.toc-link {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 2px solid transparent;
    transition: all var(--transition-fast);
}

.toc-link:hover {
    color: var(--accent);
    background: var(--bg-secondary);
    padding-left: 1.25rem;
}

.toc-link.active {
    color: var(--accent);
    background: var(--accent-light);
    border-left-color: var(--accent);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Content Area styling */
.content-area {
    min-width: 0; /* Prevents flex/grid blowouts */
}

.intro-card {
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 10px 30px var(--accent-glow);
    margin-bottom: 3.5rem;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.intro-card h1 {
    color: #fff;
}

.intro-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.intro-meta {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.intro-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.intro-meta-item svg {
    width: 18px;
    height: 18px;
}

/* Privacy Document Sections */
.policy-section {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), background-color var(--transition-smooth), opacity 0.3s ease;
}

.policy-section:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.policy-section.highlighted-search {
    animation: pulseHighlight 1.5s infinite alternate;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.section-number {
    display: none;
}

.divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 2rem 0;
}

/* Specific Section Layouts */
.info-collect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.info-collect-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.info-collect-card:hover {
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.info-collect-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.info-collect-card h3 svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.info-list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.925rem;
}

.info-list li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 0.15rem;
}

/* Bullet list components */
.standard-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.standard-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.bullet-icon svg {
    width: 12px;
    height: 12px;
    stroke-width: 3px;
}

/* Disclaimer Callout Box */
.disclaimer-box {
    background: linear-gradient(135deg, hsl(38, 92%, 50%, 0.05), hsl(38, 92%, 50%, 0.1));
    border-left: 4px solid var(--warning);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    margin-top: 1.5rem;
}

.disclaimer-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(38, 92%, 40%);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

[data-theme="dark"] .disclaimer-title {
    color: var(--warning);
}

.disclaimer-title svg {
    width: 24px;
    height: 24px;
}

.disclaimer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.disclaimer-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.disclaimer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: hsl(38, 92%, 50%, 0.15);
    color: var(--warning);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.disclaimer-icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 3px;
}

/* Grid of Grid - Rights */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.right-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.right-card:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.right-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.right-card-header .icon-container {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-card-header svg {
    width: 18px;
    height: 18px;
}

.right-card p {
    font-size: 0.875rem;
    margin: 0;
}

/* Contact Cards & Form Layout */
.contact-section-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.contact-details-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.contact-card-btn:hover {
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card-info {
    display: flex;
    flex-direction: column;
}

.contact-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.contact-card-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Interactive Form Widget */
.contact-form-widget {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.925rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.submit-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all var(--transition-fast);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Success State overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.form-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: hsl(142, 70%, 45%, 0.15);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: scaleUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

/* Floating Actions & Utility */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 99;
}

.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.float-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.float-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-3px);
}

/* Footer Section */
.footer-simple {
    margin-top: 5rem;
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Live Search Highlighting & Dynamic Search Filtering */
.policy-section.hidden-search {
    opacity: 0.08;
    transform: scale(0.97);
    pointer-events: none;
}

.text-highlight {
    background: hsl(42, 85%, 82%);
    color: hsl(42, 85%, 18%);
    padding: 0 2.5px;
    border-radius: 4px;
    font-weight: 600;
}

[data-theme="dark"] .text-highlight {
    background: hsl(42, 85%, 32%);
    color: hsl(42, 85%, 96%);
}

/* KEYFRAMES & ANIMATIONS */
@keyframes pulseHighlight {
    0% {
        box-shadow: 0 0 0 0px var(--accent-glow);
    }
    100% {
        box-shadow: 0 0 25px var(--accent-glow);
    }
}

@keyframes scaleUp {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Media Queries */
@media (max-width: 1200px) {
    .top-header {
        padding: 0 2rem;
    }
    .app-container {
        padding: 2rem;
        gap: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    .sidebar-nav {
        display: none; /* Hide sidebar table of contents, scroll is simpler on mobile */
    }
    .top-header {
        padding: 0 1.5rem;
    }
    .search-box {
        width: 200px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    .intro-card {
        padding: 2rem;
    }
    .intro-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    .policy-section {
        padding: 2rem 1.5rem;
    }
    .contact-section-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .search-box {
        display: none; /* Hide desktop search on small screens to save space */
    }
}

/* Interactive Consent Widget Styles */
.consent-widget {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    border: 1px solid var(--border-subtle);
    margin-top: 1.75rem;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.consent-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.consent-btn {
    flex: 1;
    min-width: 240px;
    height: 50px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    outline: none;
    transition: all var(--transition-fast);
}

.agree-btn {
    border: none;
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.agree-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.agree-btn.selected {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.disagree-btn {
    border: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.disagree-btn:hover {
    background: hsl(350, 80%, 55%, 0.08);
    border-color: var(--danger);
    color: var(--danger);
    transform: translateY(-2px);
}

.disagree-btn.selected {
    background: hsl(350, 80%, 55%, 0.12);
    border-color: var(--danger);
    color: var(--danger);
    outline: 3px solid var(--danger);
    outline-offset: 2px;
}

.consent-details-form {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.consent-details-form.active {
    max-height: 380px;
    opacity: 1;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}
