/* Страницы документов: политика конфиденциальности и условия использования (общие стили).
   Редакция 2026-11-23 (владелец: «оформи красиво, в моём стиле, убери лишние надписи и цифры»): заголовок как на сайте —
   первое слово крупно прямым, остальное курсивом оранжевым; вступление крупным текстом; разделы без номеров —
   название слева, текст справа; внизу ссылка на второй документ и дата редакции.
   Две темы, как на сайте: тёмная по умолчанию и светлая белая «Гротеск» при html[data-mode="light"] (ставит legal.js).
   До 2026-12-05 светлая тема здесь оставалась бежевой «Газетой», хотя сайт уже был белым (владелец: «Делай всё»). */
:root {
  --bg: #0c0b0a; --fg: #f2ede4; --mute: rgba(242, 237, 228, .72); --faint: rgba(242, 237, 228, .5); --hair: rgba(242, 237, 228, .14);
  /* --or — заливки, знак, курсив заголовка; --or-text — мелкий оранжевый текст; --on-or — текст на оранжевой заливке. */
  --or: #ff4f00; --or-text: #ff4f00; --on-or: #0c0b0a; --line: var(--hair);
  --display: 'Oswald', 'Arial Narrow', sans-serif; --italic: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --wrap: 1120px;
  color-scheme: dark;
}
/* Белая «Гротеск», как светлая тема сайта (src/light-white.css): белый лист, нейтральные чернила без желтизны,
   заголовки и текст — Manrope, курсивный оранжевый акцент — Playfair Display.
   Мелкий оранжевый текст темнее яркого: яркий на белом читается слабо (3,3 при норме 4,5), этот — 5,0. */
:root[data-mode="light"] {
  --bg: #ffffff; --fg: #111111; --mute: rgba(17, 17, 17, .74); --faint: rgba(17, 17, 17, .6); --hair: rgba(17, 17, 17, .15);
  --or-text: #c23a00; --on-or: #111111;
  --display: Manrope, 'Helvetica Neue', Arial, sans-serif; --italic: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: Manrope, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.65 var(--body); padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

/* Верхняя строка: знак с именем ведёт на сайт, справа языки. Подпись «← на сайт» убрана — её роль играет знак. */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--wrap); margin: 0 auto; padding-block: 18px; background: var(--bg); }
.back { cursor: pointer; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 600 15px/1 var(--body); }
.back svg { width: 26px; height: 27px; fill: var(--or); transition: transform .3s cubic-bezier(.23, 1, .32, 1); }
.back:hover svg { transform: translateX(-3px); }
.back span { display: none; }
.langs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--hair); }
.langs button { min-height: 36px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 99px; background: none; color: var(--mute); font: 600 13px/1 var(--body); cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.langs button:hover { color: var(--fg); }
.langs button[aria-pressed="true"] { background: var(--or); color: var(--on-or); }

main { max-width: var(--wrap); margin: 0 auto; padding-block: clamp(48px, 11vh, 120px) clamp(56px, 10vh, 110px); }
/* Заголовок: «ПОЛИТИКА» прямым, «конфиденциальности.» курсивом оранжевым — как «Пара строк — и мы на связи». */
.side { margin-bottom: clamp(28px, 5vh, 48px); }
h1 { margin: 0; font: 600 clamp(44px, 8.4vw, 124px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.012em; }
h1 span, h1 em { display: block; }
h1 em { margin-top: .06em; font: italic 600 .86em/1 var(--italic); letter-spacing: -.01em; text-transform: none; color: var(--or); overflow-wrap: anywhere; }
.meta { display: none; }
/* Вступление — первый раздел, крупно и без заголовка. */
.lede { padding-bottom: clamp(36px, 7vh, 72px); margin-bottom: clamp(8px, 2vh, 16px); border-bottom: 1px solid var(--line); font-size: clamp(20px, 2vw, 25px); line-height: 1.45; }
/* Перебивает общие правила текста документа (.doc p) в обеих темах: вступление крупнее и ярче. */
.doc .lede p, :root[data-mode="light"] .doc .lede p { max-width: 30em; margin: 0; font-size: inherit; line-height: inherit; color: var(--fg); text-wrap: pretty; }
/* Разделы: название слева, текст справа; на узком экране — друг под другом. */
.doc section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 12px clamp(24px, 5vw, 80px); padding-block: clamp(24px, 4vh, 36px); border-bottom: 1px solid var(--hair); }
.doc h2 { margin: 0; font: 500 clamp(19px, 1.7vw, 23px)/1.2 var(--display); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.doc .text > :first-child { margin-top: 0; }
.doc p, .doc li { margin: 0 0 12px; max-width: 62ch; color: var(--mute); text-wrap: pretty; }
.doc .text > :last-child, .doc li:last-child { margin-bottom: 0; }
.doc ul { margin: 0 0 12px; padding-left: 1.1em; }
.doc li::marker { color: var(--or); }
.doc code { font: 500 .86em var(--mono); color: var(--fg); }
.doc a { text-decoration-line: underline; text-decoration-color: color-mix(in srgb, var(--or) 60%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; transition: color .2s ease, text-decoration-color .2s ease; }
.doc a:hover { color: var(--fg); text-decoration-color: var(--or); }
/* Внизу: второй документ крупной ссылкой и дата редакции. */
.end { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 32px; padding-top: clamp(32px, 6vh, 56px); }
.other { margin: 0; }
.other a { font: 600 clamp(24px, 3vw, 40px)/1 var(--display); text-transform: uppercase; letter-spacing: -.005em; text-decoration: none; color: var(--fg); transition: color .2s ease; }
.other a:hover { color: var(--or); }
.edition { margin: 0; color: var(--faint); font: 500 13px/1.4 var(--body); }

/* ———— Белая «Гротеск» ———— */
/* Заголовки гротеском без прописных: жирность 700 (у Manrope нет 900), плотный трекинг — как «Работы» на сайте. */
:root[data-mode="light"] h1 { font-weight: 700; font-size: clamp(42px, 7.6vw, 112px); line-height: .98; text-transform: none; letter-spacing: -.045em; }
:root[data-mode="light"] h1 em { margin-top: .04em; font: italic 800 .84em/1.08 var(--italic); letter-spacing: -.01em; }
:root[data-mode="light"] .doc h2 { font: 700 clamp(19px, 1.7vw, 23px)/1.2 var(--display); text-transform: none; letter-spacing: -.02em; }
:root[data-mode="light"] .other a { font: 700 clamp(24px, 3vw, 40px)/1.05 var(--display); text-transform: none; letter-spacing: -.04em; }

@media (max-width: 760px) {
  .doc section { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .end { flex-direction: column; }
  /* Светлая тема на телефоне: слово «конфиденциальности.» широким курсивом не помещалось в строку и рвалось посреди
     слова («конфиденциальн / ости.», аудит 2026-12-05). Заголовок чуть меньше — слово встаёт целиком. */
  :root[data-mode="light"] h1 { font-size: clamp(26px, 8.6vw, 56px); }
}
/* Самые узкие телефоны (320 px), тёмная тема: то же слово не помещалось и при 44 px. */
@media (max-width: 350px) { :root:not([data-mode="light"]) h1 { font-size: 12.2vw; } }
@media (prefers-reduced-motion: reduce) { .back svg, .langs button, .doc a, .other a { transition: none; } }
