@font-face {
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/dm-mono-latin-ext-400.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/dm-mono-latin-400.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(/fonts/dm-mono-latin-ext-500.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(/fonts/dm-mono-latin-500.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/fonts/inter-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/fonts/inter-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/fonts/inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    --bg: #0f0f0f;
    --text: #f0ede8;
    --accent: #D4A853;
    --live: #4ade80;
    --muted: rgba(240, 237, 232, 0.55);
    --rule: rgba(240, 237, 232, 0.12);
    --mono: 'DM Mono', monospace;
    --sans: 'Inter', sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Press feedback is instant; hover only exists where a pointer can hover */

a:active, button:active {
    opacity: 0.6;
    transition: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

.i18n-pending [data-i18n] {
    visibility: hidden;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 80px 0 64px;
}

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

.footer-text {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.back-link {
    font-family: var(--mono);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
    display: inline-block;
    padding: 12px 0;
    margin: -12px 0 36px;
}

.back-link:focus-visible {
    color: var(--text);
}

.page-title {
    font-family: var(--sans);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.page-meta {
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 12px;
    letter-spacing: 0.02em;
}

.content {
    padding: 64px 0;
}

.content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(240, 237, 232, 0.8);
    max-width: 700px;
    margin-bottom: 24px;
}

.section-label {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-top: 56px;
    margin-bottom: 20px;
}

.visuals {
    padding: 32px 0 64px;
}

.visuals-heading {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.page-links {
    padding: 0 0 64px;
    border-top: 1px solid var(--rule);
    padding-top: 40px;
}

.page-link {
    font-family: var(--mono);
    font-size: 0.875rem;
    color: var(--accent);
    transition: opacity 0.2s;
    display: block;
    padding: 6px 0;
}

.page-meta .status {
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.6875rem;
}

.section-title {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-top: 48px;
    margin-bottom: 16px;
}

.section-title:first-child {
    margin-top: 0;
}

.legal-doc .content ul {
    list-style: none;
    max-width: 700px;
    margin-bottom: 16px;
}

.legal-doc .content ul li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(240, 237, 232, 0.75);
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.legal-doc .content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(240, 237, 232, 0.25);
}

.legal-doc .content a {
    color: var(--accent);
    transition: opacity 0.2s;
}

.legal-doc .content strong {
    color: rgba(240, 237, 232, 0.9);
    font-weight: 500;
}

.not-collected {
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 12px;
    margin-bottom: 16px;
}

/* — Language toggle (created by i18n.js) — */

header {
    position: relative;
}

#lang-toggle {
    position: absolute;
    top: 76px;
    right: 0;
    min-width: 44px;
    min-height: 36px;
    padding: 6px 12px;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: 1px solid var(--rule);
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

@media (max-width: 640px) {
    header {
        padding: 48px 0 40px;
    }

    .content {
        padding: 48px 0;
    }

    .back-link {
        margin-bottom: 20px;
    }

    .section-label {
        margin-top: 40px;
    }

    .visuals {
        padding: 24px 0 48px;
    }

    .section-title {
        margin-top: 40px;
    }

    #lang-toggle {
        top: 44px;
    }
}

@media (hover: hover) {
    .back-link:hover {
        color: var(--text);
    }

    .page-link:hover, .legal-doc .content a:hover {
        opacity: 0.75;
    }

    #lang-toggle:hover {
        color: var(--text);
        border-color: var(--muted);
    }
}

@media (prefers-contrast: more) {
    :root {
        --muted: rgba(240, 237, 232, 0.8);
        --rule: rgba(240, 237, 232, 0.4);
    }
}
