@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    padding: 40px 20px;
    color: #e0e0e0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, rgba(0, 255, 157, 0.03) 0px, transparent 1px, transparent 2px, rgba(0, 255, 157, 0.03) 3px),
        repeating-linear-gradient(90deg, rgba(0, 255, 157, 0.03) 0px, transparent 1px, transparent 2px, rgba(0, 255, 157, 0.03) 3px);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.6s ease;
    position: relative;
}

.header h1 {
    color: #00ff9d;
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.8em;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5), 0 0 40px rgba(0, 255, 157, 0.3);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1em;
    font-weight: 400;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.lang-switcher {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang-group {
    display: flex;
    gap: 8px;
    background: rgba(15, 15, 35, 0.8);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 157, 0.2);
    backdrop-filter: blur(10px);
}

.home-btn {
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 1px solid #00d4ff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.85em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.home-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.lang-btn {
    padding: 8px 16px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85em;
    text-decoration: none;
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.lang-btn.active {
    background: rgba(0, 255, 157, 0.15);
    color: #00ff9d;
    border-color: #00ff9d;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 157, 0.2);
    border-top: 3px solid #00ff9d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: #00ff9d;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 20px;
    letter-spacing: 2px;
    font-family: 'JetBrains Mono', monospace;
}

.footer {
    text-align: center;
    padding: 40px 20px 20px;
    margin-top: 80px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    border-top: 1px solid rgba(0, 255, 157, 0.2);
    font-family: 'JetBrains Mono', monospace;
}

.footer p {
    margin: 5px 0;
}

.copyright {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 30px;
    padding: 12px 28px;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 1px solid #00d4ff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9em;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .header h1 { font-size: 1.8em; }
    body { padding: 20px 12px; }
    .lang-switcher {
        position: relative;
        margin: 0 auto 20px;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .lang-group {
        margin-bottom: 10px;
    }
    
    .back-btn {
        padding: 10px 20px;
        font-size: 0.85em;
    }
}
.legal-side-nav {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.legal-side-btn {
    display: inline-block;
    background: rgba(15, 15, 35, 0.8);
    color: #00d4ff;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(0, 212, 255, 0.35);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    min-width: 96px;
}

.legal-side-btn:hover,
.legal-side-btn.active {
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
    border-color: #00d4ff;
    background: rgba(15, 15, 35, 0.95);
}

@media (max-width: 1024px) {
    .legal-side-nav {
        left: 12px;
    }

    .legal-side-btn {
        min-width: 86px;
        padding: 10px 12px;
    }
}
