/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --hover-color: #eff6ff;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--gradient-primary);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.logo span {
    color: #e0f2fe;
    font-size: 0.9rem;
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0f2fe;
}

/* Hero Section */
.hero-section {
    background: var(--background-white);
    padding: 3rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
}

/* Content Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    padding: 2rem 0;
    background: var(--background-white);
    margin-top: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

/* Table of Contents */
.table-of-contents {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 1rem;
    height: fit-content;
    position: sticky;
    top: 120px;
    border: 1px solid var(--border-color);
}

.table-of-contents h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 0.8rem;
}

.table-of-contents a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem;
    display: block;
    border-radius: 0.5rem;
    border-left: 3px solid transparent;
}

.table-of-contents a:hover {
    color: var(--primary-color);
    background-color: var(--hover-color);
    border-left-color: var(--accent-color);
    padding-left: 1rem;
}

/* Privacy Content */
.privacy-content {
    padding: 0 2rem;
    max-width: 800px;
}

.section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
}

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

.section h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.section p {
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
}

.section ul, .section ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.section li {
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.section a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact Info Styling */
.contact-info {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--accent-color);
    margin: 1.5rem 0;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.policy-updates {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.policy-updates h3 {
    color: #92400e;
    margin-bottom: 1rem;
}

.policy-updates p {
    color: #78350f;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0 2rem;
}

.footer-section h3, .footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover, .footer-section a.active {
    color: var(--accent-color);
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 1.5rem 0;
    text-align: center;
    color: #9ca3af;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.2);
}

.scroll-to-top span {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .table-of-contents {
        position: relative;
        top: auto;
        order: 2;
        padding: 1.5rem;
    }
    
    .privacy-content {
        padding: 0;
        order: 1;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .section h3 {
        font-size: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        padding: 2rem 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .content-wrapper {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .section {
        margin-bottom: 2rem;
    }
    
    .contact-info, .policy-updates {
        padding: 1.5rem;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Print Styles */
@media print {
    header, footer, .table-of-contents, .scroll-to-top {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        box-shadow: none;
    }
    
    .privacy-content {
        padding: 0;
    }
    
    .section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .section h2 {
        page-break-after: avoid;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}