:root {
    --bg: #000000;
    --fg: #f5f5f5;
    --muted: rgba(255, 255, 255, 0.72);
    --panel: #111111;
    --panel-edge: rgba(255, 255, 255, 0.08);
    --font-body: "Inter", "Avenir Next", "Segoe UI", Arial, sans-serif;
    --font-display: "Plus Jakarta Sans", "Inter", "Avenir Next", "Segoe UI", Arial, sans-serif;
    --edge-space: clamp(20px, 4vw, 48px);
    --site-header-height: clamp(92px, 12vh, 118px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--panel-edge);
}

.site-header-inner {
    width: min(1120px, calc(100% - (2 * var(--edge-space))));
    min-height: var(--site-header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(2px, 0.8vw, 8px);
    color: var(--fg);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: clamp(17px, 2.25vw, 30px);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
}

.site-header-logo {
    width: clamp(30px, 4vw, 44px);
    height: auto;
    display: block;
}

.language-switcher {
    position: fixed;
    top: clamp(16px, 2.5vw, 24px);
    right: var(--edge-space);
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
}

.language-option {
    min-width: 40px;
    padding: 9px 11px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease;
}

.language-option:hover,
.language-option:focus-visible {
    color: var(--fg);
}

.language-option[aria-current="page"] {
    background: var(--fg);
    color: var(--bg);
}

.page {
    flex: 1;
    width: min(760px, calc(100% - (2 * var(--edge-space))));
    margin: 0 auto;
    padding: calc(var(--site-header-height) + clamp(48px, 9vw, 104px)) 0 clamp(64px, 9vw, 112px);
}

.legal-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 72px);
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: clamp(28px, 5vw, 48px);
}

.legal-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: clamp(36px, 6vw, 56px);
    margin-bottom: 12px;
}

.legal-copy p,
.legal-copy li {
    color: var(--muted);
    font-size: clamp(16px, 1.7vw, 18px);
    line-height: 1.7;
}

.legal-copy p + p {
    margin-top: 14px;
}

.legal-copy ul {
    margin: 14px 0 0 1.25em;
}

.legal-copy li + li {
    margin-top: 8px;
}

.legal-copy a {
    color: var(--fg);
    text-underline-offset: 4px;
}

.legal-copy a:hover {
    text-decoration-thickness: 2px;
}

.note {
    padding: 16px 18px;
    border-left: 3px solid var(--fg);
    background: var(--panel);
    border-radius: 0 12px 12px 0;
}

.fill {
    color: var(--fg);
    background: rgba(255, 193, 7, 0.14);
    border-radius: 3px;
    padding: 0 0.2rem;
}

.block-fill {
    display: block;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 10px;
}

.legal-meta {
    margin-top: clamp(44px, 7vw, 64px);
    padding-top: 20px;
    border-top: 1px solid var(--panel-edge);
}

.legal-meta p {
    font-size: 14px;
}

.site-footer {
    border-top: 1px solid var(--panel-edge);
    padding: 28px var(--edge-space) 40px;
    background: var(--bg);
}

.footer-nav {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 4vw, 40px);
    flex-wrap: wrap;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 780px) {
    .footer-nav {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .language-option {
        transition: none;
    }
}
