@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --card-bg: rgba(15, 15, 15, 0.6);
    --accent: #8b5cf6;
    --text-dim: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
}

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

html, body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === ФОНОВЫЕ ЭФФЕКТЫ (ЖЕСТКО ЗАФИКСИРОВАНЫ) === */
.bg-fixed {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1; /* Было -2, теперь над черным фоном */
    pointer-events: none;
}

.perspective-grid {
    position: fixed;
    left: 0; bottom: 0;
    width: 100vw; height: 65vh;
    background-image: url('/static/img/grid-texture.png');
    background-size: 100% 100%;
    background-position: bottom center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 2; /* Было -1, теперь над свечениями, но под текстом */
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
}
.blob-1 { top: -10vh; left: -10vw; width: 60vw; height: 60vw; background: #8b5cf6; }
.blob-2 { bottom: -10vh; right: -10vw; width: 60vw; height: 60vw; background: #1d4ed8; }

/* === КОНТЕЙНЕР ДЛЯ ТЕКСТА === */
.legal-container {
    max-width: 800px;
    margin: 60px auto 100px auto; /* 100px снизу убивает бесконечный скролл */
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    z-index: 10;
}

/* === ТИПОГРАФИКА === */
.legal-container h1 { font-size: 2.2rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; margin-bottom: 10px; }
.legal-container h2 { color: var(--accent); margin-top: 35px; font-size: 1.2rem; font-weight: 600; margin-bottom: 15px;}
.legal-container p, .legal-container ul { color: var(--text-dim); line-height: 1.6; margin-bottom: 15px; font-size: 0.95rem;}
.legal-container li { margin-bottom: 8px; margin-left: 20px; }
.legal-container b { color: #d1d5db; }
.last-updated { font-size: 0.85rem; color: #6b7280; display: block; margin-bottom: 30px; }

.back-btn { 
    color: var(--accent); text-decoration: none; display: inline-flex; 
    align-items: center; gap: 8px; margin-bottom: 30px; 
    font-weight: 600; transition: 0.2s; 
}
.back-btn:hover { color: #7c3aed; transform: translateX(-3px); }

.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lang-switch {
    font-weight: 600;
    color: var(--text-dim);
    user-select: none;
}

.lang-btn {
    cursor: pointer;
    transition: color 0.2s;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    color: var(--accent);
}