/* Shared styles for privacy, terms and 404 pages */

:root {
    color-scheme: dark;
    --background: #0b0c0f;
    --surface: #14161b;
    --text-primary: #f0eee8;
    --text-secondary: #aaa9af;
    --text-muted: #8c8c94;
    --border: #2b2e36;
    --accent: #ad97ff;
    --accent-hover: #c1b2ff;
    --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background);
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--background);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: var(--accent);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.page {
    width: min(720px, 100% - 32px);
    margin: 0 auto;
    padding: 40px 0 64px;
}

.page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.page-top a {
    color: var(--text-primary);
    text-decoration: none;
}

.page-top a:hover {
    color: var(--accent);
}

.lang-switch a {
    color: var(--text-secondary);
    text-decoration: underline;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 560;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h2 {
    margin: 40px 0 8px;
    font-size: 1.15rem;
    font-weight: 600;
}

p,
li {
    color: var(--text-secondary);
}

ul {
    padding-left: 22px;
}

li {
    margin: 4px 0;
}

strong {
    color: var(--text-primary);
}

.updated {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.lang-section + .lang-section {
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.page-foot {
    margin-top: 64px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notfound {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.notfound-frame {
    width: min(560px, 100%);
    padding-left: 32px;
    border-left: 2px solid var(--accent);
}

.notfound-code {
    margin: 0;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notfound-path {
    margin: 16px 0 24px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.notfound-home {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--background);
    font-weight: 600;
    text-decoration: none;
}

.notfound-home:hover {
    background: var(--accent-hover);
    color: var(--background);
}
