:root {
    --bg-dark: #0a0812;
    --bg-medium: #120f1f;
    --accent-orange: #ff8c00;
    --accent-yellow: #ffcc00;
    --primary-blue: #0099ff;
    --neon-green: #39ff14;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --text-main: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #a0a0c0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation & Logo */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 2rem;
    background: rgba(10, 8, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav--back {
    padding-inline: 10%;
}

.nav__mobile-toggle {
    display: block;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    z-index: 2001;
    padding: 0.5rem;
    margin-inline-end: -0.5rem;
}

.nav__links {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 18, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav__links--open {
    opacity: 1;
    pointer-events: auto;
}

.nav__link {
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    font-size: 2rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--accent-orange);
}

@media (min-width: 1025px) {
    .nav__mobile-toggle {
        display: none;
    }

    .nav__links {
        position: static;
        background: transparent;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
        opacity: 1;
        pointer-events: auto;
        backdrop-filter: none;
    }

    .nav__link {
        margin-inline-start: 2rem;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: none;
        color: var(--text-muted);
    }

    .nav__link:hover {
        color: var(--white);
    }
}

.logo {
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: -2px;
    background: linear-gradient(180deg, var(--accent-yellow), var(--accent-orange), #ff4500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s;
    text-decoration: none;
    display: inline-block;
}

.logo:hover {
    transform: scale(1.05);
}

.nav__back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav__back-link:hover {
    color: var(--white);
}

/* Common Buttons */
.btn-primary {
    display: inline-block;
    padding-block: 1.4rem;
    padding-inline: 4rem;
    background: linear-gradient(135deg, var(--accent-orange), #ff4d00);
    color: var(--white);
    text-decoration: none;
    font-weight: 900;
    border-radius: 24px;
    font-size: 1.6rem;
    text-transform: uppercase;
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.4);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.6);
}

.btn-outline {
    display: inline-block;
    padding-block: 1.2rem;
    padding-inline: 3rem;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    border-radius: 24px;
    font-size: 1rem;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal Pages Styling (Privacy & Terms) */
.policy {
    max-width: 900px;
    margin-block: 6rem;
    margin-inline: auto;
    padding-inline: 5%;
}

.policy__title {
    font-size: 2.5rem; /* Mobile first */
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    line-height: 1.1;
}

.policy__meta {
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 4rem;
    display: block;
}

.policy__section {
    margin-bottom: 5rem;
    animation: fadeInUp 0.8s ease-out both;
}

.policy__heading {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.policy__text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.policy__list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.policy__list-item {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-inline-start: 1.5rem;
    position: relative;
}

.policy__list-item::before {
    content: '•';
    position: absolute;
    inset-inline-start: 0;
    color: var(--accent-orange);
    font-weight: 900;
}

.policy__highlight {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 32px;
    margin-block: 2rem;
}

.policy__contact-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--accent-orange);
    transition: opacity 0.3s;
}

.policy__contact-link:hover {
    opacity: 0.7;
}

/* Footer Styling */
.footer {
    background: #05050a;
    padding-block-start: 8rem;
    padding-block-end: 4rem;
    padding-inline: 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-block-start: 10rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 2rem;
    text-align: left;
    margin-bottom: 4rem;
}

.footer__widget-list--inline {
    display: flex;
    gap: 1.5rem;
}

.footer__brand-text {
    color: var(--text-muted);
    max-width: 300px;
    margin-block-start: 1.5rem;
}

.footer__widget-title {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--white);
}

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

.footer__widget-item {
    margin-bottom: 1rem;
}

.footer__widget-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer__widget-link:hover {
    color: var(--accent-orange);
}

.footer__bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-block-start: 4rem;
    display: flex;
    justify-content: space-between;
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

@media (min-width: 769px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

/* Desktop Media Queries */
@media (min-width: 1025px) {
    .policy__title {
        font-size: 4rem;
    }
}

/* Accessibility Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--neon-green) !important;
    outline-offset: 4px !important;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero__brain {
        animation: none !important;
    }
}