﻿
/* --- FIXED LEGAL STYLES & MOBILE OVERRIDES --- */
:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-primary: #00ff9d;
    --accent-secondary: #ff00ff; /* PINK ACCENT RESTORED */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Desktop Container */
.legal-page {
    max-width: 800px;
    margin: 80px auto 4rem auto;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 12px;
}

/* Nav Desktop */
.legal-nav {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}
.legal-nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.legal-nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* RESTORED PILL LINK STYLES */
.legal-pill-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.legal-pill-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Base styles for h tags */
/* Base styles for h tags */
h1 { 
    color: var(--accent-primary); 
    font-family: var(--font-heading);
    border-bottom: 2px solid var(--accent-secondary);
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: block; /* Full width separator */
}

h2 { 
    color: #fff; 
    font-family: var(--font-heading);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: block; /* Full width separator */
}

h3 { color: #fff; font-family: var(--font-heading); }

/* Text colors */
p, li { 
    color: var(--text-secondary); /* Gray */
    font-family: var(--font-body);
}

a { color: var(--accent-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* REPAIRED MOBILE OVERRIDES */
@media screen and (max-width: 768px) {
    .legal-page {
        width: 96% !important;
        max-width: 96% !important;
        margin: 60px auto 10px auto !important; 
        padding: 1.5rem 1rem !important;
        box-sizing: border-box; 
    }

    .legal-nav-main {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
    }

    .legal-nav-links {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px; /* Slightly more space for touch scroll */
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
    }
    
    .legal-pill-link {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; margin-top: 1rem; }
}

/* LANGUAGE SWITCHER BUTTONS */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05); 
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-opt {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.lang-opt:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-opt.active {
    color: #000;
    background: var(--accent-primary);
    box-shadow: 0 2px 5px rgba(0, 255, 157, 0.3);
}

.lang-separator { display: none; }
