@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&family=Exo:wght@300;400;500&display=swap');

:root {
    --vs-accent: rgba(126, 245, 220, 0.35);
    --vs-accent-hover: rgba(126, 245, 220, 0.55);
    --vs-accent-text: rgba(126, 245, 209, 0.92);
    --vs-accent-muted: rgba(126, 200, 220, 0.65);
    --vs-scrollbar-size: 6px;
    --legal-bg: #121416;
    --legal-bg-gradient: linear-gradient(135deg, #121416 0%, #1a1c20 100%);
    --legal-text: rgba(232, 236, 239, 0.88);
    --legal-text-muted: rgba(232, 236, 239, 0.58);
    --legal-glass-bg: linear-gradient(
        180deg,
        rgba(14, 16, 18, 0.94) 0%,
        rgba(8, 10, 12, 0.96) 100%
    ),
    rgba(10, 12, 14, 0.92);
    --legal-border: rgba(126, 200, 220, 0.12);
    --legal-shadow:
        0 16px 42px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(126, 200, 220, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body.legal-page {
    margin: 0;
    min-height: 100%;
    font-family: 'Exo', 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--legal-text);
    background: var(--legal-bg);
    overflow-x: hidden;
    overflow-y: auto;
}

body.legal-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: var(--legal-bg-gradient);
}

#starfield {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: transparent;
}

.particle {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(200, 202, 206, 0.18) 50%, transparent 100%);
    opacity: 0.15;
    filter: blur(3px);
    animation: legalParticleFloat 8s infinite ease-in-out;
}

.particle:nth-child(odd) {
    background: radial-gradient(circle, rgba(235, 236, 238, 0.35) 0%, rgba(180, 182, 186, 0.12) 50%, transparent 100%);
    animation-duration: 12s;
}

.particle:nth-child(3n) {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(200, 202, 206, 0.1) 50%, transparent 100%);
    animation-duration: 15s;
}

@keyframes legalParticleFloat {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    25% { transform: translateY(-20px) translateX(10px) scale(1.1); }
    50% { transform: translateY(-10px) translateX(-15px) scale(0.9); }
    75% { transform: translateY(-30px) translateX(5px) scale(1.2); }
}

.legal-shell {
    position: relative;
    z-index: 1;
    width: min(860px, calc(100% - 2rem));
    margin: 2.5rem auto 3rem;
    padding: 2.25rem 2.75rem 2.75rem;
    border-radius: 16px;
    background: var(--legal-glass-bg);
    border: 1px solid var(--legal-border);
    box-shadow: var(--legal-shadow);
    backdrop-filter: blur(16px) saturate(1.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.legal-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.75rem;
    padding: 0.45rem 0.95rem;
    font-family: 'Orbitron', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(232, 236, 239, 0.82);
    background: rgba(10, 14, 18, 0.45);
    border: 1px solid rgba(126, 245, 220, 0.32);
    border-radius: 8px;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.32),
        0 0 12px rgba(126, 245, 220, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.legal-page__back:hover {
    text-decoration: none;
    color: rgba(232, 236, 239, 0.96);
    background: rgba(126, 245, 220, 0.08);
    border-color: rgba(126, 245, 220, 0.5);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.36),
        0 0 18px rgba(126, 245, 220, 0.1);
}

.legal-page__eyebrow {
    margin: 0 0 0.65rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--vs-accent-muted);
    text-shadow: 0 0 10px rgba(126, 245, 220, 0.12);
}

.legal-page__title {
    margin: 0 0 0.75rem;
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--vs-accent-text);
    text-shadow:
        0 0 6px rgba(126, 245, 209, 0.35),
        0 0 14px rgba(126, 245, 209, 0.12);
}

.legal-page__updated {
    margin: 0 0 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
    color: var(--legal-text-muted);
    font-style: normal;
}

.legal-page__content h2 {
    margin: 2rem 0 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(126, 245, 220, 0.12);
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(158, 251, 231, 0.88);
    text-shadow: 0 0 8px rgba(126, 245, 220, 0.08);
}

.legal-page__content p {
    margin: 0 0 1.1rem;
}

.legal-page__content strong {
    color: rgba(200, 248, 236, 0.92);
    font-weight: 600;
}

.legal-page__content ul {
    margin: 0 0 1.1rem 1.35rem;
    padding: 0;
}

.legal-page__content li {
    margin-bottom: 0.55rem;
}

.legal-page__content a {
    color: var(--vs-accent-muted);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.legal-page__content a:hover {
    color: var(--vs-accent-text);
    text-shadow: 0 0 8px rgba(126, 245, 220, 0.25);
    text-decoration: underline;
}

.legal-page__contact {
    margin: 1.75rem 0;
    padding: 1.25rem 1.35rem;
    border-radius: 10px;
    border: 1px solid rgba(126, 245, 220, 0.1);
    border-left: 3px solid rgba(126, 245, 220, 0.35);
    background: rgba(126, 245, 220, 0.03);
}

.legal-page__contact p {
    margin-bottom: 0.45rem;
}

.legal-page__footer-note {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
    color: var(--legal-text-muted);
}

.legal-page__footer-note--muted {
    margin-top: 0.75rem;
    padding-top: 0;
    border-top: none;
    font-size: 0.82rem;
    font-style: italic;
}

body.legal-page.vs-scrollbar,
.legal-shell.vs-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--vs-accent) transparent;
}

body.legal-page.vs-scrollbar::-webkit-scrollbar,
.legal-shell.vs-scrollbar::-webkit-scrollbar {
    width: var(--vs-scrollbar-size);
    height: var(--vs-scrollbar-size);
}

body.legal-page.vs-scrollbar::-webkit-scrollbar-track,
.legal-shell.vs-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

body.legal-page.vs-scrollbar::-webkit-scrollbar-thumb,
.legal-shell.vs-scrollbar::-webkit-scrollbar-thumb {
    background: var(--vs-accent);
    border-radius: 10px;
}

body.legal-page.vs-scrollbar::-webkit-scrollbar-thumb:hover,
.legal-shell.vs-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--vs-accent-hover);
}

@media (max-width: 768px) {
    .legal-shell {
        width: calc(100% - 1.25rem);
        margin: 1.25rem auto 2rem;
        padding: 1.5rem 1.25rem 2rem;
    }

    .legal-page__title {
        letter-spacing: 0.04em;
    }

    .legal-page__content h2 {
        font-size: 0.95rem;
    }
}
