:root {
    --bg-color: #0b0d17;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.5);
    
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: rgba(255, 255, 255, 0.08);
    
    --sidebar-width: 300px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animations */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6, #1d4ed8);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8b5cf6, #4c1d95);
    bottom: -200px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Header */
.site-header {
    background: rgba(11, 13, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px 0 var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.6);
}

/* Page Layout */
.page-wrapper {
    display: flex;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
    position: relative;
    align-items: flex-start;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: 6rem;
    height: calc(100vh - 8rem);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.sidebar-inner {
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.sidebar h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: white;
}

.toc {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    transition: all 0.2s;
}

.toc a:hover {
    color: white;
    border-left-color: var(--accent-color);
}

.toc a.active {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    font-weight: 500;
}

/* Document Content */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.policy-document {
    flex-grow: 1;
    padding: 3rem;
    min-width: 0; /* Prevents overflow issues */
}

.document-header {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.document-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

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

.document-body section {
    margin-bottom: 3rem;
    scroll-margin-top: 6rem; /* for anchor links */
}

.document-body h2 {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.document-body h3 {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.document-body p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.document-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.document-body li {
    margin-bottom: 0.5rem;
}

.document-body strong {
    color: #e2e8f0;
}

/* Footer */
.site-footer {
    background: rgba(11, 13, 23, 0.95);
    border-top: 1px solid var(--card-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-col nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-col nav a:hover {
    color: var(--accent-hover);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .page-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        margin-bottom: 2rem;
    }
    
    .sidebar-inner {
        max-height: 300px;
        overflow-y: auto;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .policy-document {
        padding: 1.5rem;
    }

    .document-header h1 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
