/* Юридические страницы (terms / privacy / refund) — стиль нового вида (ребрендинг, этап E):
   всегда белый фон, чёрный текст и оттенки серого, заголовки — Unbounded, текст — Inter.
   Шрифты свои, по абсолютному пути /site/static/fonts/ (тот же каталог, что у Mini App);
   пока его нет — системные. Страницы отдаёт nginx статикой (location ~ ^/(terms|privacy|refund)). */
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/site/static/fonts/unbounded-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/site/static/fonts/unbounded-latin-600-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;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/site/static/fonts/inter-cyrillic-400-normal.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; font-display: swap;
  src: url('/site/static/fonts/inter-latin-400-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;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/site/static/fonts/inter-cyrillic-600-normal.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: 600; font-display: swap;
  src: url('/site/static/fonts/inter-latin-600-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 {
  --bg: #ffffff;
  --ink: #000000;
  --ink2: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --plate: #f4f4f4;
  --head: 'Unbounded', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }

nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding: 20px 0; margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { display: block; width: 120px; height: auto; }
.nav-back {
  color: var(--ink); font-size: 15px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px;
}
.nav-back:hover { color: var(--ink2); }

h1 {
  font-family: var(--head); font-weight: 600;
  font-size: clamp(24px, 5vw, 34px); line-height: 1.2;
  margin-bottom: 10px;
}
.updated { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.disclaimer {
  background: var(--plate); border-radius: 16px; padding: 16px 18px; margin: 24px 0 32px;
  color: var(--ink2); font-size: 14.5px;
}
h2 {
  font-family: var(--head); font-weight: 600;
  font-size: 18px; line-height: 1.35; margin: 36px 0 12px;
  scroll-margin-top: 16px;
}
h2 .n { color: var(--muted); margin-right: 8px; }
h3 {
  font-family: var(--text); font-weight: 600;
  font-size: 16px; margin: 24px 0 8px;
  scroll-margin-top: 16px;
}
p { color: var(--ink2); font-size: 15px; margin-bottom: 12px; }
ul { margin: 0 0 12px 22px; }
li { color: var(--ink2); font-size: 15px; margin-bottom: 7px; }
li[id], p[id] { scroll-margin-top: 16px; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink2); }
strong { color: var(--ink); font-weight: 600; }

footer {
  border-top: 1px solid var(--line); margin-top: 56px; padding-top: 28px;
  color: var(--muted); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 10px 24px; flex-wrap: wrap; }

@media (max-width: 480px) {
  .wrap { padding: 0 16px 64px; }
  .brand img { width: 104px; }
}
@media (max-width: 360px) {
  h1 { font-size: clamp(18px, 5.55vw, 20px); line-height: 1.3; }
}

/* Знак рубля из того же шрифта; отдельное подмножество U+20BD (OFL). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/site/static/fonts/inter-currency-400-normal.woff2') format('woff2'); unicode-range: U+20BD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/site/static/fonts/inter-currency-600-normal.woff2') format('woff2'); unicode-range: U+20BD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('/site/static/fonts/unbounded-currency-600-normal.woff2') format('woff2'); unicode-range: U+20BD; }
