/* Global variables and design tokens */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(18, 18, 18, 0.7);
    --bg-header: rgba(0, 0, 0, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(74, 246, 38, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #a0aec0;
    --text-muted: #64748b;
    
    --accent-color: #4AF626;
    --accent-gradient: linear-gradient(135deg, #4AF626 0%, #10b981 100%);
    --accent-glow: rgba(74, 246, 38, 0.12);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: rgba(241, 245, 249, 0.85);
    --bg-header: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(74, 246, 38, 0.6);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --accent-glow: rgba(74, 246, 38, 0.06);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Cosmic Background Glows */
.glow-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(74, 246, 38, 0) 70%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.glow-bg-secondary {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(16, 185, 129, 0) 70%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    transition: var(--transition-smooth);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Brand styling */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: var(--transition-smooth);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-wrapper {
    background: #000000 !important; /* Logo background is always black */
    padding: 4px;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(74, 246, 38, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: var(--transition-smooth);
}

.logo-wrapper:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 4px 30px rgba(74, 246, 38, 0.35);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(1) hue-rotate(180deg) brightness(1.25); /* Inverts white bg to black, keeps green color */
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Header Controls Wrapper */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    color: var(--accent-color);
    background: rgba(74, 246, 38, 0.08);
    border-color: var(--border-hover);
    box-shadow: 0 0 10px rgba(74, 246, 38, 0.2);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    transition: var(--transition-smooth);
}

body.light-theme .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.04);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.lang-btn.active {
    background: var(--accent-gradient);
    color: #000000;
    box-shadow: 0 4px 12px rgba(74, 246, 38, 0.25);
}

/* Main Content Area */
.content-container {
    padding-top: 48px;
    padding-bottom: 80px;
}

/* Article visibility handle */
.policy-article {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.policy-article.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 48px;
}

.policy-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.effective-date {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.hero-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 0 auto 24px auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(74, 246, 38, 0.3);
}

.policy-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Policy Cards Grid */
.policy-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.policy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    gap: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.policy-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 40px -10px rgba(74, 246, 38, 0.08), 
                0 0 1px 1px rgba(74, 246, 38, 0.1) inset;
}

.card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(74, 246, 38, 0.1);
    border: 1px solid rgba(74, 246, 38, 0.2);
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(74, 246, 38, 0.05);
}

.card-content {
    flex-grow: 1;
}

.card-content h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 12px;
}

.card-content p:last-child {
    margin-bottom: 0;
}

.section-intro {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px !important;
}

/* Custom Data List styling */
.data-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.data-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

.data-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Specific Contact Styling */
.contact-box {
    margin-top: 20px !important;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    display: inline-block;
}

.email-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    border-bottom: 1px dashed var(--accent-color);
}

.email-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Footer styling */
.app-footer-bottom {
    background: rgba(7, 10, 17, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
}

.footer-container p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations and Responsive adaptations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-article.active {
    animation: fadeIn 0.4s ease forwards;
}

/* Responsive constraints */
@media (max-width: 768px) {
    .policy-title {
        font-size: 2.2rem;
    }
    
    .policy-card {
        padding: 24px;
        flex-direction: column;
        gap: 16px;
    }
    
    .card-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .content-container {
        padding-top: 32px;
        padding-bottom: 48px;
    }
}
