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

:root {
    --color-bg: #09090b;
    --color-surface: #18181b;
    --color-surface-hover: #27272a;
    --color-border: #27272a;
    --color-text: #fafafa;
    --color-text-muted: #a1a1aa;
    --color-accent: #e11d48;
    --color-accent-light: #fb7185;
    --color-accent-glow: rgba(225, 29, 72, 0.15);
    --color-accent-glow-strong: rgba(225, 29, 72, 0.25);
    --radius: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(9, 9, 11, 0.7);
    border-bottom: 1px solid var(--color-border);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a,
.lang-current {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.lang-current:hover { color: var(--color-text); }

.lang-dropdown { position: relative; }

.lang-current {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-family: var(--font);
    padding: 0;
}

.lang-current svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.lang-dropdown:hover .lang-current svg,
.lang-dropdown:focus-within .lang-current svg { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 4px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 200;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: block;
    padding: 8px 12px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.lang-menu a:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.lang-menu a.active { color: var(--color-accent-light); }

.legal-hero {
    padding: 152px 0 48px;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.legal-hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.legal-hero p {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

.legal-layout {
    padding: 0 0 96px;
}

.legal-document {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.legal-document::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(225,29,72,0.4), transparent);
}

.legal-document h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 32px 0 10px;
}

.legal-document h2:first-child { margin-top: 0; }

.legal-document p,
.legal-document li {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.legal-document p { margin-bottom: 14px; }

.legal-document ul {
    margin: 0 0 18px 20px;
}

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

.legal-document a,
footer a {
    color: var(--color-accent-light);
    text-decoration: none;
}

.legal-document a:hover,
footer a:hover { color: var(--color-text); }

.effective-date {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    margin-bottom: 28px;
}

.note {
    background: var(--color-accent-glow);
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: 10px;
    padding: 16px 18px;
    margin: 24px 0;
}

footer {
    border-top: 1px solid var(--color-border);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.footer-brand img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.footer-text {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--color-text); }

.footer-company {
    width: 100%;
    text-align: center;
    padding-top: 24px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }

    .nav-links > li.nav-legal-link {
        display: none;
    }

    .legal-hero {
        padding-top: 128px;
    }

    .legal-document {
        padding: 28px 22px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
