/* Юридические страницы aispektr.ru: оформление как у документов «Вари»
 * (aivarya.ru/consent): белый лист, «Назад» сверху, колонка 720 px,
 * заголовок по центру, внизу ссылки на остальные документы. Цвета — сайта.
 * Страницы собирает scripts/legal-pages.py из docs/legal/*.md. */

@font-face { font-family: "Geologica"; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geologica-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geologica-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; }

:root {
  --ink: #0b1730;
  --text: #2a3550;
  --muted: #5d6b86;
  --line: #e3e9f4;
  --step: #f3f6fc;
  --accent: #1f5fd6;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: calc(100vh / var(--z, 1)); background: #fff; color: var(--text); font: 300 15.5px/1.75 "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }

.lg-head { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding-top: env(safe-area-inset-top); }
.lg-head-in { max-width: 768px; height: 56px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; }
.lg-back { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-left: -12px; padding: 0 12px; border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .2s; }
.lg-back:hover { background: var(--step); }
.lg-back svg { width: 16px; height: 16px; }

.lg-main { max-width: 768px; margin: 0 auto; padding: 40px 20px 64px; }
.lg-main h1 { margin: 0; text-align: center; color: var(--ink); font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.lg-date { margin: 8px 0 0; text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted); }
.lg-sub { margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.lg-body { margin-top: 32px; }
.lg-body p { margin: 0 0 16px; overflow-wrap: anywhere; }
.lg-body strong { font-weight: 600; color: var(--ink); }
.lg-body h2 { margin: 36px 0 12px; color: var(--ink); font-size: 19px; font-weight: 600; line-height: 1.35; scroll-margin-top: calc(88px + env(safe-area-inset-top)); }
.lg-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(31, 95, 214, .3); text-underline-offset: 2px; }
.lg-body a:hover { text-decoration-color: var(--accent); }

.lg-table { margin: 4px 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.lg-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.lg-table th, .lg-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lg-table tr:last-child td { border-bottom: 0; }
.lg-table th { background: var(--step); color: var(--ink); font-weight: 600; }

.lg-foot { max-width: 768px; margin: 0 auto; padding: 0 20px 40px; }
.lg-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; }
.lg-foot a { color: var(--muted); text-decoration: none; }
.lg-foot a:hover { color: var(--ink); }
.lg-foot a[aria-current] { color: var(--ink); font-weight: 600; }

.lg-back:focus-visible, .lg-body a:focus-visible, .lg-foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 639px) {
  body { font-size: 16px; }
  .lg-date, .lg-sub, .lg-back { font-size: 15px; }
  .lg-table table { font-size: 15px; }
  .lg-foot nav { gap: 0 20px; font-size: 15px; }
  .lg-foot a { display: inline-block; padding: 10px 0; }
}

@media (min-width: 640px) {
  .lg-head-in, .lg-main, .lg-foot { padding-left: 24px; padding-right: 24px; }
  .lg-main { padding-top: 56px; }
  .lg-main h1 { font-size: 34px; }
}

/* Большие экраны: документ увеличивается целиком, как на / (лестница из rd.css). */
@media screen and (min-width: 1584px) and (min-height: 869px) { html { --z: 1.1; zoom: 1.1; } }
@media screen and (min-width: 1728px) and (min-height: 948px) { html { --z: 1.2; zoom: 1.2; } }
@media screen and (min-width: 1872px) and (min-height: 1027px) { html { --z: 1.3; zoom: 1.3; } }
@media screen and (min-width: 2016px) and (min-height: 1106px) { html { --z: 1.4; zoom: 1.4; } }
@media screen and (min-width: 2160px) and (min-height: 1185px) { html { --z: 1.5; zoom: 1.5; } }
@media screen and (min-width: 2304px) and (min-height: 1264px) { html { --z: 1.6; zoom: 1.6; } }
@media screen and (min-width: 2448px) and (min-height: 1343px) { html { --z: 1.7; zoom: 1.7; } }
@media screen and (min-width: 2592px) and (min-height: 1422px) { html { --z: 1.8; zoom: 1.8; } }
@media screen and (min-width: 2736px) and (min-height: 1501px) { html { --z: 1.9; zoom: 1.9; } }
@media screen and (min-width: 2880px) and (min-height: 1580px) { html { --z: 2; zoom: 2; } }
@media screen and (min-width: 3024px) and (min-height: 1659px) { html { --z: 2.1; zoom: 2.1; } }
@media screen and (min-width: 3168px) and (min-height: 1738px) { html { --z: 2.2; zoom: 2.2; } }
@media screen and (min-width: 3312px) and (min-height: 1817px) { html { --z: 2.3; zoom: 2.3; } }
@media screen and (min-width: 3456px) and (min-height: 1896px) { html { --z: 2.4; zoom: 2.4; } }
@media screen and (min-width: 3600px) and (min-height: 1975px) { html { --z: 2.5; zoom: 2.5; } }
@media screen and (min-width: 3744px) and (min-height: 2054px) { html { --z: 2.6; zoom: 2.6; } }
@media screen and (min-width: 3888px) and (min-height: 2133px) { html { --z: 2.7; zoom: 2.7; } }
@media screen and (min-width: 4032px) and (min-height: 2212px) { html { --z: 2.8; zoom: 2.8; } }
@media screen and (min-width: 4176px) and (min-height: 2291px) { html { --z: 2.9; zoom: 2.9; } }
@media screen and (min-width: 4320px) and (min-height: 2370px) { html { --z: 3; zoom: 3; } }
@media screen and (min-width: 4464px) and (min-height: 2449px) { html { --z: 3.1; zoom: 3.1; } }
@media screen and (min-width: 4608px) and (min-height: 2528px) { html { --z: 3.2; zoom: 3.2; } }
@media screen and (min-width: 4752px) and (min-height: 2607px) { html { --z: 3.3; zoom: 3.3; } }
@media screen and (min-width: 4896px) and (min-height: 2686px) { html { --z: 3.4; zoom: 3.4; } }
@media screen and (min-width: 5040px) and (min-height: 2765px) { html { --z: 3.5; zoom: 3.5; } }
