/* --- Variables & Reset --- */
:root {
    --color-bg: #0a0e17;          /* Дуже темний синій, майже чорний */
    --color-bg-secondary: #111625; /* Трохи світліший для блоків */
    --color-primary: #6c63ff;     /* Основний акцент (фіолетовий) */
    --color-accent: #00f0ff;      /* Неоновий блакитний */
    --color-text-main: #e0e6ed;   /* Світло-сірий для тексту */
    --color-text-muted: #94a3b8;  /* Приглушений текст */
    --color-white: #ffffff;
    
    --font-main: 'Inter', sans-serif;
    --font-head: 'Montserrat', sans-serif;
    
    --container-width: 1200px;
    --header-height: 70px;
    --radius: 8px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-bg);
    background: var(--color-accent);
    border-radius: var(--radius);
    border: 2px solid var(--color-accent);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: transparent;
    color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.header__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--color-white), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header__nav {
    display: none; /* Mobile first: hidden by default */
}

.header__burger {
    display: block;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}

/* Desktop Header */
@media (min-width: 992px) {
    .header__burger {
        display: none;
    }

    .header__nav {
        display: block;
    }

    .header__list {
        display: flex;
        gap: 30px;
    }

    .header__link {
        font-family: var(--font-head);
        font-size: 14px;
        font-weight: 500;
        color: var(--color-text-main);
        position: relative;
    }

    .header__link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--color-accent);
        transition: var(--transition);
    }

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

    .header__link:hover::after {
        width: 100%;
    }
}

/* --- Footer --- */
.footer {
    background-color: var(--color-bg-secondary);
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto; /* Push to bottom if content is short */
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__col--brand {
    max-width: 300px;
}

.footer__logo {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    display: block;
    margin-bottom: 16px;
}

.footer__desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer__title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    font-size: 14px;
    color: var(--color-text-muted);
}

.footer__link:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.footer__icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.footer__bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer__copyright {
    font-size: 13px;
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* Tablet & Desktop Footer */
@media (min-width: 768px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer__container {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Full screen height */
    display: flex;
    align-items: center;
    padding-top: var(--header-height); /* Offset for fixed header */
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind content */
    background: radial-gradient(circle at center, #1a2236 0%, var(--color-bg) 100%);
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 700px;
}

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 50px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 500;
}

.hero__badge-icon {
    width: 16px;
    height: 16px;
}

/* Typography */
.hero__title {
    font-family: var(--font-head);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-white);
}

.hero__title--gradient {
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block; /* New line effect handled visually */
}

.hero__desc {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero__desc strong {
    color: var(--color-text-main);
    font-weight: 600;
}

/* Actions */
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero__btn {
    padding: 14px 32px;
    font-size: 16px;
}

.btn__icon {
    margin-left: 8px;
    width: 20px;
    height: 20px;
}

.hero__btn--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.hero__btn--outline:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    color: var(--color-white);
}

/* Stats */
.hero__stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat-item {
    display: flex;
    flex-direction: column;
}

.hero__stat-num {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
}

.hero__stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 12px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.hero__scroll-icon {
    width: 20px;
    height: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* Responsive */
@media (min-width: 768px) {
    .hero__title {
        font-size: 56px;
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 32px;
    }
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    .hero__btn {
        width: 100%;
    }
}

/* --- Common Section Styles --- */
section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.text-accent {
    color: var(--color-accent);
}

/* --- Features Section --- */
.features {
    background-color: var(--color-bg);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

/* Feature Card */
.feature-card {
    background: var(--color-bg-secondary);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    group: hover; /* For referencing in animation if needed */
}

/* Hover Effect */
.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.1);
}

/* Gradient line on top */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card__icon-box {
    width: 60px;
    height: 60px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-card__icon-box {
    background: var(--color-primary);
    transform: rotate(5deg);
}

.feature-card__icon {
    width: 30px;
    height: 30px;
    color: var(--color-primary);
    transition: var(--transition);
}

.feature-card:hover .feature-card__icon {
    color: var(--color-white);
}

.feature-card__title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.feature-card__text {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.feature-card__text strong {
    color: var(--color-text-main);
}

/* Responsive Grid */
@media (min-width: 768px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .features__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Programs Section --- */
.programs {
    background-color: var(--color-bg-secondary); /* Darker background to contrast with features */
}

.programs__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* Card Styles */
.program-card {
    background-color: var(--color-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Image Area */
.program-card__image-wrapper {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.program-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

.program-card:hover .program-card__img {
    opacity: 1;
    transform: scale(1.05);
}

.program-card__tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Featured Badge */
.program-card--featured {
    border-color: rgba(108, 99, 255, 0.5);
    position: relative;
}

.program-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

/* Content Area */
.program-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-card__title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.program-card__desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    flex-grow: 1; /* Pushes specs/button down */
}

/* Specs List */
.program-card__specs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.program-card__specs li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-main);
}

.program-card__specs i {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.program-card__btn {
    width: 100%;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.program-card__btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
}

/* Featured Button Style */
.program-card--featured .program-card__btn {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.program-card--featured .program-card__btn:hover {
    background: transparent;
    color: var(--color-primary);
}

/* Footer Link */
.programs__footer {
    text-align: center;
    color: var(--color-text-muted);
}

.programs__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    font-weight: 600;
    margin-top: 8px;
    position: relative;
}

.programs__link i {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.programs__link:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (min-width: 768px) {
    .programs__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .programs__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Make featured card slightly larger on desktop */
    .program-card--featured {
        transform: scale(1.05);
        z-index: 2;
    }
    
    .program-card--featured:hover {
        transform: scale(1.08);
    }
}

/* --- Career Section --- */
.career {
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* Background element (decorative glow) */
.career::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    filter: blur(150px);
    opacity: 0.1;
    z-index: 0;
    transform: translateY(-50%);
}

.career__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Left Content */
.career__content {
    max-width: 500px;
}

.career__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(90deg, #FFD700, #FFA500); /* Gold gradient */
    color: #000;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.career__badge i {
    width: 16px;
    height: 16px;
}

.career__desc {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: 16px;
}

.career__desc strong {
    color: var(--color-white);
}

.career__cta-box {
    margin-top: 40px;
    padding: 24px;
    border: 1px dashed rgba(108, 99, 255, 0.4);
    border-radius: 12px;
    background: rgba(108, 99, 255, 0.05);
}

.career__cta-text {
    font-size: 14px;
    color: var(--color-accent);
    margin-bottom: 16px;
    font-weight: 600;
}

/* Roadmap (Right Side) */
.career__roadmap {
    position: relative;
    padding-left: 20px;
}

/* Timeline Line */
.career__roadmap::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 45px; /* Aligns with center of marker */
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), rgba(108, 99, 255, 0.1));
}

.roadmap__item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.roadmap__item:last-child {
    margin-bottom: 0;
}

.roadmap__marker {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-primary);
    z-index: 2; /* On top of line */
    box-shadow: 0 0 0 8px var(--color-bg); /* Gap effect */
    transition: var(--transition);
}

.roadmap__item:hover .roadmap__marker {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 0 15px var(--color-primary);
}

.roadmap__info {
    padding-top: 10px;
}

.roadmap__title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 6px;
}

.roadmap__text {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Responsive */
@media (min-width: 992px) {
    .career__container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .career__roadmap::before {
        left: 25px;
    }
    .roadmap__marker {
        width: 40px;
        height: 40px;
        font-size: 16px;
        box-shadow: 0 0 0 5px var(--color-bg);
    }
    .roadmap__item {
        gap: 20px;
    }
}

/* --- FAQ Section --- */
.faq {
    background-color: var(--color-bg-secondary);
}

.faq__container {
    max-width: 800px; /* Make content narrower for better readability */
}

.faq__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq__item {
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq__item:hover {
    border-color: rgba(108, 99, 255, 0.3);
}

/* Active State (controlled by JS) */
.faq__item.active {
    border-color: var(--color-primary);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
}

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

.faq__icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq__item.active .faq__icon {
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
    background: rgba(108, 99, 255, 0.02);
}

.faq__answer p {
    padding-bottom: 24px;
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.faq__answer strong {
    color: var(--color-text-main);
}

/* --- Contact Section --- */
.contact {
    background-color: var(--color-bg);
    padding-bottom: 100px;
}

.contact__container {
    max-width: 600px; /* Focus on the form */
}

.contact__wrapper {
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px 12px 48px; /* Space for icon */
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--color-white);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(108, 99, 255, 0.05);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--color-primary);
}

/* Captcha specifics */
.captcha-group .form-label span {
    color: var(--color-accent);
    font-weight: 700;
}

.error-text {
    display: none;
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 6px;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.form-check-label {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.form-check-label a {
    color: var(--color-text-main);
    text-decoration: underline;
}

.form-check-label a:hover {
    color: var(--color-accent);
}

/* Button & Result */
.contact__btn {
    width: 100%;
    padding: 16px;
}

.contact__result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none; /* Hidden by default */
}

.contact__result.success {
    display: block;
    background: rgba(0, 255, 128, 0.1);
    color: #00ff80;
    border: 1px solid rgba(0, 255, 128, 0.2);
}

.contact__result.error {
    display: block;
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

/* Responsive */
@media (max-width: 576px) {
    .contact__wrapper {
        padding: 24px;
    }
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Allows clicking through empty space if we used full width */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-popup__content {
    background: rgba(17, 22, 37, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.3);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    max-width: 600px;
}

.cookie-popup__text {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.cookie-popup__text a {
    color: var(--color-white);
    text-decoration: underline;
}

.cookie-popup__btn {
    padding: 8px 20px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .cookie-popup__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .cookie-popup__btn {
        width: 100%;
    }
}

/* --- Legal Pages Styling --- */
/* Structure: main > section.pages > .container > Content */

.pages {
    padding-top: 140px; /* Space for fixed header */
    padding-bottom: 80px;
    min-height: 60vh;
}

.pages .container {
    max-width: 800px; /* Better readability width */
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pages h1 {
    font-family: var(--font-head);
    font-size: 32px;
    color: var(--color-white);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pages h2 {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--color-white);
    margin-top: 40px;
    margin-bottom: 16px;
}

.pages p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.pages ul {
    list-style: none;
    margin-bottom: 24px;
    padding-left: 10px;
}

.pages li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--color-text-muted);
    font-size: 15px;
}

.pages li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
}

.pages a {
    color: var(--color-accent);
    text-decoration: underline;
}

.pages a:hover {
    text-decoration: none;
}