/* Shared styles for 404 + legal pages (kept out of inline <style> because the
   production CSP is `style-src 'self'`). Same tokens as styles.css. */
@font-face {
  font-family: "Onest Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations"), url("../assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../assets/fonts/onest-latin-wght-normal.woff2") format("woff2-variations"), url("../assets/fonts/onest-latin-wght-normal.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;
}
:root {
  --ink: #10141b; --ink-2: #363e4d; --ink-3: #586070; --line: #e4e7ec; --soft: #f5f6f8;
  --brand: #ff6a1f; --brand-hi: #ff7f3f; --brand-ink: #c2410c;
  --font: "Onest Variable", "Onest", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

/* legal documents */
.wrap { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; margin-bottom: 28px; min-height: 44px; }
.wrap h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.12; letter-spacing: -.03em; font-weight: 750; margin-bottom: 8px; }
.muted { color: var(--ink-3); font-size: 14px; margin-bottom: 32px; }
.wrap h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -.01em; font-weight: 700; }
.wrap p, .wrap li { margin-top: 10px; }
.wrap ul { padding-left: 22px; }
.note { margin-top: 40px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); color: var(--ink-3); font-size: 14px; }

/* 404 */
body.notfound { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--soft); text-align: center; }
.box { max-width: 460px; }
.code { font-size: clamp(72px, 20vw, 132px); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(160deg, #ffc233, var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.box h1 { font-size: clamp(22px, 4vw, 28px); margin: 10px 0 12px; letter-spacing: -.02em; font-weight: 750; }
.box p { color: var(--ink-3); margin-bottom: 26px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; background: var(--brand); color: var(--ink); font-weight: 650; text-decoration: none; padding: 14px 30px; border-radius: 999px; box-shadow: 0 10px 26px -8px rgba(255,106,31,.6); transition: transform .16s var(--ease-out), background-color .2s var(--ease-out); }
a.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { a.btn:hover { background: var(--brand-hi); } }
a.tel { display: block; margin-top: 18px; font-weight: 650; color: var(--ink); text-decoration: none; padding-block: 6px; }
