/* Policy Pages Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    /* Theme colors - can be overridden per policy */
    --primary-color: #8b5cf6;
    --secondary-color: #a78bfa;
    --dark-color: #7c3aed;
    --light-color: #c4b5fd;
    --accent-color: #6366f1;
    
    /* Neutral colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --background-white: #ffffff;
    --background-gray: #f9fafb;
    --background-light: #f3f4f6;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    
    /* Semantic colors */
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --error-red: #ef4444;
    --info-blue: #3b82f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Theme Variations */
.theme-purple {
    --primary-color: #8b5cf6;
    --secondary-color: #a78bfa;
    --dark-color: #7c3aed;
    --light-color: #c4b5fd;
    --accent-color: #6366f1;
}

.theme-blue {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --dark-color: #2563eb;
    --light-color: #93c5fd;
    --accent-color: #1d4ed8;
}

.theme-green {
    --primary-color: #10b981;
    --secondary-color: #34d399;
    --dark-color: #059669;
    --light-color: #6ee7b7;
    --accent-color: #047857;
}

.theme-gold {
    --primary-color: #f59e0b;
    --secondary-color: #fbbf24;
    --dark-color: #d97706;
    --light-color: #fcd34d;
    --accent-color: #b45309;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
    font-size: 16px;
    overflow-x: hidden;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: var(--spacing-xl);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-brand i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: calc(64px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M30 30l-10-10v20l10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    animation: slideInFromTop 1s ease-out 0.3s both;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    animation: slideInFromTop 1s ease-out 0.5s both;
}

.hero-date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: slideInFromTop 1s ease-out 0.7s both;
}

/* Main Content Layout */
.main-content {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.content-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: sticky;
    top: calc(64px + var(--spacing-lg));
    background: var(--background-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: slideInFromLeft 0.8s ease-out 0.2s both;
}

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

.toc-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.toc-title i {
    color: var(--primary-color);
}

.toc-list {
    list-style: none;
}

.toc-item {
    margin-bottom: var(--spacing-xs);
}

.toc-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.toc-link:hover,
.toc-link.active {
    color: var(--primary-color);
    background: var(--background-light);
    transform: translateX(4px);
}

.toc-link::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: var(--spacing-xs);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toc-link:hover::before,
.toc-link.active::before {
    opacity: 1;
}

/* Content Sections */
.content-wrapper {
    animation: slideInFromRight 0.8s ease-out 0.4s both;
}

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

.content-section {
    background: var(--background-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.content-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.section-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--background-light);
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-header h2 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
}

.section-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
}

.section-content p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-content ul,
.section-content ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.section-content li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
    line-height: 1.6;
}

.section-content li::marker {
    color: var(--primary-color);
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, var(--light-color)20, var(--background-light));
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

.highlight-box.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), var(--background-light));
    border-left-color: var(--warning-orange);
}

.highlight-box.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), var(--background-light));
    border-left-color: var(--info-blue);
}

.highlight-box p {
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .toc-sidebar {
        position: static;
        order: -1;
        background: var(--background-light);
        border-radius: var(--radius-md);
        padding: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: calc(64px + var(--spacing-lg)) var(--spacing-sm) var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .content-section {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .content-section {
        padding: var(--spacing-lg);
    }
    
    .hero {
        padding: calc(64px + var(--spacing-lg)) var(--spacing-sm) var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .toc-sidebar {
        display: none;
    }
    
    .content-container {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        box-shadow: none;
        border: 1px solid var(--border-light);
        break-inside: avoid;
    }
    
    .hero {
        background: none;
        color: var(--text-primary);
    }
}

/* Bootstrap footer styling */
footer.bg-dark ul.list-unstyled {
    padding-left: 0 !important;
    list-style: none !important;
    margin-bottom: 0;
}

footer.bg-dark ul.list-unstyled li {
    margin-bottom: 0.5rem;
    display: block !important;
}

footer.bg-dark ul.list-unstyled li a {
    color: #6c757d !important;
    text-decoration: none;
    display: inline-block;
    line-height: 1.5;
}

footer.bg-dark ul.list-unstyled li a:hover {
    color: #adb5bd !important;
}

footer.bg-dark .text-muted {
    color: #6c757d !important;
}

footer.bg-dark .text-white {
    color: #fff !important;
}

footer.bg-dark .text-light {
    color: #f8f9fa !important;
}
