/* Design Tokens & Theme Variables */
:root {
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Theme Colors (Inspired by M3 Purple/Pink Palette) */
    --hue-primary: 256;
    --hue-secondary: 343;

    --bg-dark: hsl(var(--hue-primary), 20%, 7%);
    --bg-surface: hsla(var(--hue-primary), 20%, 12%, 0.6);
    --bg-card: hsla(var(--hue-primary), 20%, 15%, 0.45);
    
    --primary: hsl(var(--hue-primary), 70%, 70%);
    --primary-glow: hsla(var(--hue-primary), 70%, 70%, 0.15);
    --secondary: hsl(var(--hue-secondary), 75%, 80%);
    
    --text-main: hsl(var(--hue-primary), 20%, 94%);
    --text-muted: hsl(var(--hue-primary), 15%, 70%);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: hsla(var(--hue-primary), 70%, 70%, 0.3);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 24px hsla(var(--hue-primary), 70%, 70%, 0.2);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* Background Blobs (Premium Ambient Animation) */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
}

.blob-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, hsl(var(--hue-primary), 60%, 40%) 0%, transparent 70%);
    top: -10vw;
    left: -10vw;
    animation: float 25s infinite alternate ease-in-out;
}

.blob-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, hsl(var(--hue-secondary), 55%, 45%) 0%, transparent 70%);
    bottom: -5vw;
    right: -5vw;
    animation: float 20s infinite alternate-reverse ease-in-out;
}

.blob-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, hsl(var(--hue-primary), 50%, 30%) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-center 30s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5vw, 5vh) scale(1.1); }
}

@keyframes float-center {
    0% { transform: translate(-50%, -50%) rotate(0deg) translate(2vw) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translate(2vw) rotate(-360deg); }
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: hsla(var(--hue-primary), 20%, 7%, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-accent {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.language-switcher {
    display: flex;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: calc(var(--radius-sm) - 2px);
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text-main);
}

.lang-btn.active {
    background-color: var(--primary);
    color: hsl(var(--hue-primary), 20%, 7%);
    box-shadow: var(--shadow-sm);
}

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

/* Hero Section */
.hero-section {
    padding: 4rem 0 3rem 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    background: linear-gradient(to right, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.6;
}

/* Content Layout (Sidebar & Main Cards) */
.content-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

/* Sidebar Navigation */
.sidebar-nav {
    position: sticky;
    top: 100px;
    background-color: var(--bg-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-left: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-glow);
    border-left-color: var(--primary);
    font-weight: 600;
}

/* Cards (Policy Sections) */
.policy-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

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

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

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

.card li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-size: 1rem;
}

.card strong {
    color: #ffffff;
    font-weight: 600;
}

.card code {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Contact Info Styling */
.contact-info {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: inline-block;
}

.contact-info a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px dashed var(--secondary);
}

.contact-info a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    margin-top: 6rem;
    padding: 3rem 0 1.5rem 0;
    background-color: hsla(var(--hue-primary), 20%, 5%, 0.8);
    backdrop-filter: blur(10px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

footer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.8rem;
    color: hsl(var(--hue-primary), 10%, 45%);
    max-width: 600px;
    margin: 0.5rem auto 0 auto;
    line-height: 1.4;
}

/* Responsive Media Queries */
@media (max-width: 968px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar-nav {
        position: static;
        padding: 1rem;
    }

    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .nav-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary);
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }

    .header-container {
        padding: 1rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .card {
        padding: 1.75rem;
    }

    .nav-list {
        display: none; /* Hide sidebar shortcuts on tiny mobile screens for simpler reading layout */
    }
}
