/* Юр-страницы (offer.html / privacy.html) — self-hosted стили и шрифты.
   Без внешних CDN (ранее: Google Fonts + cdn.tailwindcss.com): IP посетителей
   не уходит зарубежным третьим лицам — страницы сами заявляют отсутствие
   трансграничной передачи ПДн. Шрифты — копии из @fontsource-variable/geist. */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  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 {
  color-scheme: light;
  --legal-canvas: #f6f5f2;
  --legal-surface: #fcfbf9;
  --legal-content-strong: #25252d;
  --legal-content: #34343e;
  --legal-content-secondary: #5b5b67;
  --legal-content-muted: #6d6d78;
  --legal-line: #deddd8;
  --legal-line-subtle: #e8e7e2;
  --legal-action: #4b46c8;
  --legal-action-hover: #3f3ab2;
  --legal-action-subtle: #ecebfc;
  --legal-focus: #9a9cf7;
  --legal-glow: rgb(89 84 216 / 0.055);
  --legal-chrome: rgb(246 245 242 / 0.92);
  --legal-raised: rgb(252 251 249 / 0.92);
  --legal-shadow: rgb(37 37 45 / 0.38);
}

html.dark {
  color-scheme: dark;
  --legal-canvas: #1a1b26;
  --legal-surface: #242531;
  --legal-content-strong: #f4f3f8;
  --legal-content: #e0dfe7;
  --legal-content-secondary: #bbb9c7;
  --legal-content-muted: #a8a6b5;
  --legal-line: #515263;
  --legal-line-subtle: #3b3c4c;
  --legal-action: #bbbaff;
  --legal-action-hover: #d0cfff;
  --legal-action-subtle: #353554;
  --legal-focus: #bbbaff;
  --legal-glow: rgb(126 124 238 / 0.09);
  --legal-chrome: rgb(26 27 38 / 0.92);
  --legal-raised: rgb(36 37 49 / 0.94);
  --legal-shadow: rgb(0 0 0 / 0.62);
}

* {
  box-sizing: border-box;
}
body {
  min-width: 320px;
  margin: 0;
  font-family:
    "Geist Variable",
    "Geist",
    system-ui,
    -apple-system,
    sans-serif;
  background:
    radial-gradient(circle at 8% -8%, var(--legal-glow), transparent 30rem),
    var(--legal-canvas);
  color: var(--legal-content-strong);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-padding-top: 88px;
}

.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px) {
  .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--legal-line-subtle);
  background: var(--legal-chrome);
  box-shadow: 0 12px 30px -28px var(--legal-shadow);
  backdrop-filter: blur(18px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 10px;
}
.brand-logo-dark {
  display: none;
}
html.dark .brand-logo-light {
  display: none;
}
html.dark .brand-logo-dark {
  display: block;
}
.back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 8px;
  padding: 0 6px;
  font-size: 14px;
  color: var(--legal-content-secondary);
  text-decoration: none;
}
.back:hover {
  color: var(--legal-content-strong);
}

main.wrap {
  padding-top: 40px;
  padding-bottom: 64px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--legal-action);
  color: var(--legal-surface);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}

.brand-axis {
  height: 2px;
  max-width: 8rem;
  margin-bottom: 28px;
  background: #c2410c;
  border-radius: 999px;
}

.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.doc h2 {
  margin: 48px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--legal-line-subtle);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.doc h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 600;
}
.doc p,
.doc li {
  font-size: 16px;
  color: var(--legal-content);
}
.doc ul,
.doc ol {
  padding-left: 24px;
}
.doc li {
  margin: 6px 0;
}
.doc a {
  color: var(--legal-action);
  text-decoration-color: var(--legal-focus);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.doc a:hover {
  text-decoration: underline;
}
.doc strong {
  color: var(--legal-content-strong);
}
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--legal-action-subtle);
  border-radius: 5px;
  padding: 1px 5px;
}
.doc-meta {
  font-size: 13px;
  color: var(--legal-content-muted);
  margin-bottom: 28px;
}
.doc-toc {
  margin: 28px 0 36px;
  border: 1px solid var(--legal-line);
  border-radius: 12px;
  background: var(--legal-surface);
}
.doc-toc summary {
  display: flex;
  min-height: 48px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: var(--legal-content-strong);
  font-weight: 650;
}
.doc-toc summary::after {
  content: "+";
  color: var(--legal-content-secondary);
  font-size: 20px;
}
.doc-toc[open] summary::after {
  content: "−";
}
.doc-toc ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 18px 18px 38px;
}
.doc-toc a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--legal-content-secondary);
}
.small {
  font-size: 13px;
  color: var(--legal-content-secondary);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--legal-focus);
  outline-offset: 3px;
}

::selection {
  background: var(--legal-action-subtle);
  color: var(--legal-content-strong);
}

@media (min-width: 640px) {
  main.wrap {
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .doc {
    margin-inline: -24px;
    padding: 40px;
    border: 1px solid var(--legal-line);
    border-radius: 18px;
    background: var(--legal-raised);
    box-shadow:
      0 1px 2px rgb(37 37 45 / 0.035),
      0 28px 72px -52px var(--legal-shadow);
  }
}
