:root {
    /* Color Palette */
    --color-bg-dark: #0a0c10;
    --color-card-dark: #121620;
    --color-text-light: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-primary: #ffaa00; /* Gold */
    --color-secondary: #ff2a5f; /* Neon Red/Pink */
    --color-cream-bg: #f9f6f0;
    --color-cream-text: #1a1a1a;
    --color-cream-muted: #5a5a5a;
    --color-accent: #00ffcc; /* Neon Teal */
    --border-glow: 0 0 15px rgba(255, 170, 0, 0.4);
    --neon-text-glow: 0 0 10px rgba(255, 42, 95, 0.6);

    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

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

.text-center { text-align: center; }
.text-light { color: var(--color-text-light) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.text-accent { color: var(--color-primary) !important; }
.mt-30 { margin-top: 30px; }
.hidden { display: none !important; }

/* Neon Marquee */
.neon-marquee {
    background: #000;
    border-bottom: 2px solid var(--color-primary);
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(255, 170, 0, 0.2);
    z-index: 100;
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-content span {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary);
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.5);
    padding-right: 50px;
}

@keyframes marquee-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Header & Navigation */
.main-header {
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-star {
    color: var(--color-primary);
    text-shadow: var(--border-glow);
    animation: pulse 2s infinite alternate;
}

.nav-menu {
    display: none; /* Mobile first hidden */
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 8px 16px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

/* Hamburger Menu Toggle */
.mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-light);
    transition: all var(--transition-speed) ease;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: radial-gradient(circle at top right, rgba(255, 42, 95, 0.08), transparent 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.badge-vegas {
    display: inline-block;
    background: var(--color-secondary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: var(--neon-text-glow);
}

.hero-title {
    font-size: 2.8rem;
    font-style: italic;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 550px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
    border: 2px solid var(--color-primary);
    box-shadow: var(--border-glow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--color-text-light);
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Vegas Sign Visual */
.hero-visual {
    display: flex;
    justify-content: center;
}

.vegas-sign {
    background: #111;
    border: 6px double var(--color-primary);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: var(--border-glow), inset 0 0 20px rgba(0,0,0,0.8);
}

.sign-border-dots {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed var(--color-secondary);
    border-radius: 16px;
    pointer-events: none;
    opacity: 0.7;
    animation: blink-dots 1.5s infinite;
}

.sign-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sign-tagline {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--color-text-muted);
}

.sign-main-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    text-shadow: 0 0 10px var(--color-secondary), 0 0 20px var(--color-secondary);
}

.sign-glow-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 2px;
    text-shadow: 0 0 8px var(--color-accent);
}

.sign-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.sign-stat-item {
    display: flex;
    flex-direction: column;
}

.sign-stat-item .num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.sign-stat-item .lbl {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-dark {
    background-color: #06080c;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.tag-light {
    color: var(--color-accent);
    text-shadow: 0 0 5px rgba(0,255,204,0.3);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Contenders Grid & Cards */
.contenders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contender-card {
    background-color: var(--color-card-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 24px;
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.contender-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 170, 0, 0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.contender-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.contender-rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    font-style: italic;
}

.contender-name {
    font-size: 1.3rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.group-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    color: var(--color-text-muted);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: var(--color-text-muted);
}

.stat-value {
    font-weight: 600;
}

/* Host Nations Spotlight */
.hosts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.host-card {
    background: linear-gradient(135deg, #11141d 0%, #0c0e14 100%);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.host-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-secondary);
}

.host-flag-glow {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    opacity: 0.15;
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-family: var(--font-heading);
}

.host-card h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.host-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.host-stat {
    display: flex;
    flex-direction: column;
}

.host-stat .num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent);
}

.host-stat .lbl {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Editorial Callout Section */
.bg-cream {
    background-color: var(--color-cream-bg);
    color: var(--color-cream-text);
}

.editorial-box {
    max-width: 800px;
    text-align: center;
    padding: 40px 20px;
}

.star-accent {
    color: var(--color-primary);
    font-size: 1.4rem;
    display: block;
    margin-bottom: 15px;
}

.editorial-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.editorial-content p {
    color: var(--color-cream-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Footer styling */
.main-footer {
    background-color: #050608;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

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

.footer-info .logo {
    margin-bottom: 20px;
}

.footer-text {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.address-box {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    border-left: 2px solid var(--color-primary);
    padding-left: 12px;
}

.footer-links h4, .footer-legal h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 12px;
}

.footer-links a, .footer-legal a {
    color: var(--color-text-muted);
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: #11141c;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 20px;
    z-index: 1000;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.cookie-container a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.1); opacity: 1; }
}

@keyframes blink-dots {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Responsive Breakpoints (Tablet & Desktop) */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        gap: 10px;
    }

    .mobile-nav-toggle {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 50px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-ctas {
        flex-direction: row;
    }

    .contenders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .hosts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .cookie-banner {
        left: auto;
        right: 24px;
        width: 380px;
    }
}

@media (min-width: 1024px) {
    .contenders-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* --- ADDED PAGE SPECIFIC STYLES --- */

/* Mobile Navigation Drawer Fix */
@media (max-width: 767px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(10, 12, 16, 0.98);
        border-bottom: 2px solid var(--color-primary);
        padding: 20px;
        gap: 15px;
        z-index: 200;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    }
    
    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Data Tables styling */
.table-wrapper {
    overflow-x: auto;
    background: var(--color-card-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    min-width: 900px;
}

.rankings-table th {
    background-color: rgba(255, 170, 0, 0.05);
    color: var(--color-primary);
    font-weight: 700;
    padding: 16px;
    border-bottom: 2px solid rgba(255, 170, 0, 0.2);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.rankings-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.rankings-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.rankings-table tbody tr:last-child td {
    border-bottom: none;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.flag-placeholder {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: #1b2130;
    object-fit: cover;
}

/* Search and Filters */
.filter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 20px;
    background: #0d111a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.2);
}

.filter-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-muted);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
    box-shadow: var(--border-glow);
}

/* Country Cards Grid */
.country-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.country-card {
    background-color: var(--color-card-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-speed) ease;
}

.country-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.country-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.country-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-title h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
}

.confed-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.confed-uefa { background: rgba(0, 150, 255, 0.15); color: #33b3ff; }
.confed-conmebol { background: rgba(255, 170, 0, 0.15); color: var(--color-primary); }
.confed-concacaf { background: rgba(0, 255, 204, 0.15); color: var(--color-accent); }
.confed-caf { background: rgba(255, 42, 95, 0.15); color: var(--color-secondary); }
.confed-afc { background: rgba(180, 80, 255, 0.15); color: #c07fff; }
.confed-ofc { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }

.country-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.country-stat-box {
    display: flex;
    flex-direction: column;
}

.country-stat-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.country-stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.difficulty-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.diff-tough { background: rgba(255, 42, 95, 0.15); color: var(--color-secondary); }
.diff-mod { background: rgba(255, 170, 0, 0.15); color: var(--color-primary); }
.diff-fav { background: rgba(0, 255, 204, 0.15); color: var(--color-accent); }

/* Group Cards Grid */
.group-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.group-card-wrapper {
    background-color: var(--color-card-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.group-card-wrapper:hover {
    border-color: rgba(255, 170, 0, 0.25);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.group-card-wrapper.group-of-death {
    border: 1px solid rgba(255, 42, 95, 0.3);
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.15);
}

.group-card-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-of-death .group-card-header {
    background: rgba(255, 42, 95, 0.04);
}

.group-letter {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.group-tagline {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.death-tag {
    color: var(--color-secondary);
    text-shadow: 0 0 5px rgba(255, 42, 95, 0.4);
}

.group-teams-list {
    padding: 10px 20px;
}

.group-team-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.group-team-item:last-child {
    border-bottom: none;
}

.group-team-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.group-team-stats {
    display: flex;
    gap: 20px;
    text-align: right;
}

.group-team-stat {
    display: flex;
    flex-direction: column;
}

.group-team-stat .val {
    font-size: 0.9rem;
    font-weight: 700;
}

.group-team-stat .lbl {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* Editorial & Methodology Elements */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.methodology-article {
    background: var(--color-card-dark);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 30px;
}

.methodology-article h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.methodology-article p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.formula-card {
    background: #090b11;
    border-left: 4px solid var(--color-accent);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}

.formula-text {
    font-family: monospace;
    color: var(--color-accent);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}

.step-list {
    list-style: none;
    margin: 25px 0;
}

.step-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
}

.step-num {
    position: absolute;
    left: 0;
    top: 2px;
    background: var(--color-primary);
    color: #000;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

/* Legal text formatting */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.legal-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.legal-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.legal-section p, .legal-section ul {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-section ul {
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 8px;
}

/* Responsive Overrides */
@media (min-width: 768px) {
    .filter-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .search-wrapper {
        width: 350px;
    }
    .country-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .group-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .editorial-grid {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 1024px) {
    .country-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .group-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}