/* =============================================================================
   AI Judge — лендинг. Статика, без сборки и внешних зависимостей.

   Визуальная логика: аудитория — судьи и юристы, поэтому язык оформления взят
   не из мира стартапов, а из мира документа: тёплая бумага, засечный шрифт в
   заголовках, приглушённый судебный красный, много воздуха. Тёмная тема
   повторяет палитру самого приложения (#0e1117 / #262730 / красный акцент),
   чтобы сайт и продукт читались как одно целое.
   ========================================================================== */

/* ---------- 1. Токены ---------- */

:root {
  color-scheme: light;

  /* поверхности */
  --bg:          #fbfaf8;   /* тёплая бумага, а не стерильный белый */
  --bg-alt:      #f4f2ed;
  --surface:     #ffffff;
  --surface-2:   #f7f5f1;
  --dark:        #10141b;   /* секция «Проверяемость» и финальный CTA */
  --dark-2:      #171d27;

  /* текст */
  --ink:         #141821;
  --ink-soft:    #4b5563;
  --muted:       #6b7280;
  --on-dark:     #f4f5f7;
  --on-dark-mut: #a3adbd;

  /* линии */
  --line:        #e4e0d9;
  --line-2:      #d3cec5;
  --line-dark:   #262d3a;

  /* акценты */
  --accent:      #9e1c24;   /* судебный красный, приглушённый до институционального */
  --accent-2:    #7d151c;
  --accent-soft: #f6e9e8;
  /* Заливка кнопок отделена от текстового акцента намеренно: на тёмной теме акцент
     осветляется ради читаемости ТЕКСТА, но под белой надписью такая заливка даёт
     3.6:1 при норме 4.5:1. Поэтому у фона кнопки свой, всегда тёмный тон. */
  --btn-fill:      #9e1c24;
  --btn-fill-hover:#7d151c;
  --accent-on-dark: #ff6b6b;
  --ok:          #1f7a4c;
  --ok-soft:     #e6f2eb;
  /* Затемнён относительно «естественного» янтарного: на светлой подложке
     --warn-soft более светлый тон давал 4.34:1 при норме AA 4.5:1. */
  --warn:        #8a5208;
  --warn-soft:   #fbf0dd;

  /* шрифты */
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "PT Serif", Georgia, "Times New Roman", "Droid Serif", serif;
  --font-mono:  "Cascadia Mono", Consolas, "SF Mono", ui-monospace, "Courier New", monospace;

  /* геометрия */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(20, 24, 33, .05), 0 4px 14px rgba(20, 24, 33, .05);
  --shadow-2: 0 2px 6px rgba(20, 24, 33, .06), 0 18px 44px rgba(20, 24, 33, .10);

  /* Готовые смеси для браузеров без color-mix() — на рабочих местах в судах
     версии бывают старые, и «проваленный» в невидимость цвет там недопустим. */
  --accent-tint-07: #f7ecec;
  --accent-tint-16: #edd6d7;
  --accent-line-20: #e0c4c6;
  --accent-line-38: #cf9b9e;
  --accent-ring:    rgba(158, 28, 36, .16);
  --header-veil:    rgba(251, 250, 248, .85);
  --placeholder:    #97a0ad;

  --header-h: 68px;
  --pad-x: clamp(20px, 5vw, 48px);
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg:          #0e1117;
  --bg-alt:      #131822;
  --surface:     #171c26;
  --surface-2:   #1e2430;
  --dark:        #080b10;
  --dark-2:      #10151d;

  --ink:         #f3f5f8;
  --ink-soft:    #c2cad6;
  --muted:       #98a2b3;
  --on-dark:     #f3f5f8;
  --on-dark-mut: #9aa5b5;

  --line:        #262d3a;
  --line-2:      #333b4b;
  --line-dark:   #262d3a;

  --accent:      #e8555c;
  --accent-2:    #ff6b6b;
  --accent-soft: #2a181b;
  --btn-fill:      #c62828;   /* белый текст: 5.6:1 */
  --btn-fill-hover:#a91f1f;
  --ok:          #3dd56d;
  --ok-soft:     #13251a;
  --warn:        #e0a33a;
  --warn-soft:   #2a2415;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 44px rgba(0, 0, 0, .45);

  --accent-tint-07: #241a1d;
  --accent-tint-16: #3a2226;
  --accent-line-20: #45262a;
  --accent-line-38: #6b3237;
  --accent-ring:    rgba(232, 85, 92, .18);
  --header-veil:    rgba(14, 17, 23, .85);
  --placeholder:    #767f8d;
}

/* ---------- 2. База ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; }
h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; }
p  { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; }

::selection { background: var(--btn-fill); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--btn-fill); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: var(--pad-x); }
.wrap-narrow { max-width: 840px; }

/* ---------- 3. Типовые элементы ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 13px/1 var(--font-sans);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.section { padding: clamp(64px, 8vw, 118px) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-lede { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 16px/1 var(--font-sans);
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--btn-fill); color: #fff; box-shadow: 0 6px 18px rgba(158, 28, 36, .22); }
.btn-primary:hover { background: var(--btn-fill-hover); box-shadow: 0 10px 26px rgba(158, 28, 36, .28); }

.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn-invert { background: #fff; color: #10141b; }
.btn-invert:hover { background: #f0eee9; }

.btn-ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.btn:hover .btn-ico { transform: translateX(3px); }

.tick-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.tick-list li {
  position: relative; padding-left: 30px;
  color: var(--ink-soft); font-size: 16px;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 16px; height: 10px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* ---------- 4. Шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--header-veil);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand-text { font-family: var(--font-serif); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  position: relative; white-space: nowrap;
  padding: 9px 13px; border-radius: var(--r-sm);
  font-size: 15.5px; color: var(--ink-soft);
  transition: color .16s ease, background .16s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a.is-current { color: var(--accent); }
.site-nav a.is-current::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ico-moon { display: none; }
html[data-theme="dark"] .ico-sun  { display: none; }
html[data-theme="dark"] .ico-moon { display: block; }

.burger { display: none; }

/* ---------- 5. Герой ---------- */

.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }

.hero-bg {
  /* края в 0, а не в минус: боковые выносы создавали горизонтальный вылет за viewport */
  position: absolute; inset: -20% 0 auto 0; height: 780px; z-index: 0;
  background:
    radial-gradient(46% 52% at 78% 8%, rgba(158, 28, 36, .13) 0%, transparent 68%),
    radial-gradient(40% 46% at 10% 4%, rgba(63, 92, 138, .12) 0%, transparent 66%);
  background:
    radial-gradient(46% 52% at 78% 8%,  color-mix(in srgb, var(--accent) 13%, transparent) 0%, transparent 68%),
    radial-gradient(40% 46% at 10% 4%,  color-mix(in srgb, #3f5c8a 12%, transparent) 0%, transparent 66%);
  pointer-events: none;
}
.hero::after {
  /* тонкая «линовка» бумаги — почти незаметная, но снимает ощущение пустого фона */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(to bottom, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px);
  background-size: 100% 34px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 60%, transparent 96%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 60%, transparent 96%);
  opacity: .5;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 5vw, 68px); align-items: center;
}

.hero-copy h1 .hl {
  color: var(--accent);
  /* подчёркивание «от руки»: мягкая полоса под строкой, как пометка маркером */
  background-image: linear-gradient(var(--accent-tint-16), var(--accent-tint-16));
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 16%, transparent));
  background-size: 100% .28em; background-position: 0 88%; background-repeat: no-repeat;
}

.lede { margin-top: 24px; font-size: clamp(17px, 1.55vw, 20px); line-height: 1.6; color: var(--ink-soft); max-width: 42em; }
.lede strong { color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-note {
  margin-top: 22px; padding-left: 15px;
  border-left: 3px solid var(--line-2);
  font-size: 15px; color: var(--muted); max-width: 38em;
}

/* Окно приложения */
.win {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.win-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.win-dots { display: inline-flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.win-title { font-size: 13.5px; color: var(--muted); font-family: var(--font-mono); }

.win-body { padding: 20px; display: grid; gap: 18px; }

.demo-files { display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft);
}
.file-chip svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.demo-pipe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pipe-step {
  font: 500 12.5px/1 var(--font-mono);
  padding: 6px 10px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.pipe-step.accent {
  color: var(--accent); background: var(--accent-soft);
  border-color: var(--accent-line-38);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.pipe-sep { flex: 1 1 12px; height: 1px; background: var(--line-2); min-width: 10px; }

.demo-label { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.cite-list { list-style: none; margin: -6px 0 0; padding: 0; display: grid; gap: 8px; }
.cite {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface-2);
  opacity: 0; transform: translateY(6px);
  animation: citeIn .5s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay: calc(.5s + var(--i) * .22s);
}
@keyframes citeIn { to { opacity: 1; transform: none; } }

.cite-status { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.cite-status svg { width: 14px; height: 14px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cite.ok   .cite-status { background: var(--ok-soft); }
.cite.ok   .cite-status svg { stroke: var(--ok); }
.cite.warn .cite-status { background: var(--warn-soft); }
.cite.warn .cite-status svg { stroke: var(--warn); }

.cite-text { font-size: 14.5px; color: var(--ink); }
.cite-tag { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cite.ok   .cite-tag { color: var(--ok); }
.cite.warn .cite-tag { color: var(--warn); font-weight: 600; }

.demo-out {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--accent-tint-07);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border: 1px dashed var(--accent-line-38);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}
.out-doc { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--accent); }
.out-doc svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.out-hint { font-size: 13px; color: var(--muted); }

/* Полоса фактов */
.stats {
  list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 30px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px);
}
.stats li { display: grid; gap: 6px; }
.stats b {
  font-family: var(--font-serif); font-size: clamp(30px, 3.4vw, 42px); line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stats span { font-size: 14.5px; color: var(--muted); line-height: 1.45; }

/* ---------- 6. Карточки проблемы ---------- */

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  position: relative;
  padding: 30px 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--line-2); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 16px; }

.card-num {
  display: block; margin-bottom: 18px;
  font: 600 13px/1 var(--font-mono); letter-spacing: .1em;
  color: var(--accent);
}

/* ---------- 7. Шаги ---------- */

.steps {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.steps-nav { display: grid; gap: 8px; }
.step-btn {
  display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 14px;
  width: 100%; text-align: left;
  padding: 16px 18px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r);
  color: var(--ink); font: inherit; cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.step-btn:hover { background: var(--surface); border-color: var(--line); }
.step-btn.is-active { background: var(--surface); border-color: var(--line-2); box-shadow: var(--shadow-1); }

.step-i {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  font: 600 14px/1 var(--font-mono); color: var(--muted);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.step-btn.is-active .step-i { background: var(--btn-fill); border-color: var(--btn-fill); color: #fff; }

.step-t { font-weight: 600; font-size: 17px; display: grid; gap: 3px; }
.step-t em { font-style: normal; font-weight: 400; font-size: 14.5px; color: var(--muted); }

.steps-panels {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 42px);
  box-shadow: var(--shadow-1);
  min-height: 320px;
}
.step-panel[hidden] { display: none; }
.step-panel { animation: panelIn .32s cubic-bezier(.2,.7,.3,1); }
.step-panel h3 { margin-bottom: 14px; }
.step-panel > p { color: var(--ink-soft); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 8. Проверяемость (тёмная секция) ---------- */

.section-dark {
  background: var(--dark);
  color: var(--on-dark);
  --line: var(--line-dark);
  --ink: var(--on-dark);
  --ink-soft: var(--on-dark-mut);
  --muted: var(--on-dark-mut);
  --accent: var(--accent-on-dark);
}
.section-dark .eyebrow { color: var(--accent-on-dark); }
.section-dark h2 { color: #fff; }

.proof-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}

.proof-points { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; }
.proof-points li {
  display: grid; gap: 6px;
  padding-left: 20px; border-left: 2px solid rgba(255, 107, 107, .55);
  color: var(--on-dark-mut); font-size: 16px;
}
.proof-points b { color: #fff; font-weight: 600; font-size: 17px; }

.proof-demo { margin: 0; }
.ver-card {
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.ver-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 16px;
}
.ver-title { font-weight: 600; font-size: 15px; color: #fff; }
.ver-count { font: 500 12.5px/1 var(--font-mono); color: var(--on-dark-mut); }

.ver-item {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
  padding: 14px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .028);
  border: 1px solid transparent;
}
.ver-item + .ver-item { margin-top: 6px; }
.ver-item b { display: block; font-weight: 600; font-size: 14.5px; color: #eef1f5; }
.ver-item span { font-size: 13px; color: var(--on-dark-mut); }
.ver-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.ver-mark svg { width: 14px; height: 14px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ver-item.ok   .ver-mark { background: rgba(61, 213, 109, .13); }
.ver-item.ok   .ver-mark svg { stroke: #3dd56d; }
.ver-item.warn { background: rgba(224, 163, 58, .09); border-color: rgba(224, 163, 58, .3); }
.ver-item.warn .ver-mark { background: rgba(224, 163, 58, .16); }
.ver-item.warn .ver-mark svg { stroke: #e0a33a; }

.proof-demo figcaption { margin-top: 16px; font-size: 14px; color: var(--on-dark-mut); }

/* ---------- 9. Возможности ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feature { background: var(--bg); padding: 30px 26px 32px; transition: background .2s ease; }
.feature:hover { background: var(--surface); }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { font-size: 15.5px; color: var(--ink-soft); }

.f-ico {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
}
.f-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 10. Для кого ---------- */

.audience { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.aud-card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: box-shadow .22s ease, transform .22s ease;
}
.aud-card:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); }
.aud-card header { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.aud-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.aud-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.aud-card .tick-list { margin-top: 22px; }

/* ---------- 11. Безопасность ---------- */

.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sec-card {
  padding: 30px 30px 32px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
}
.sec-card h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 20px; }
.sec-i { font: 600 13px/1 var(--font-mono); color: var(--accent); flex: none; }
.sec-card p { color: var(--ink-soft); font-size: 16px; }

.sec-foot {
  margin-top: 26px; padding: 20px 24px;
  border-radius: var(--r); background: var(--accent-soft);
  color: var(--ink-soft); font-size: 16px;
  border: 1px solid var(--accent-line-20);
}

/* ---------- 12. Доступ и форма ---------- */

.access-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(22px, 3vw, 40px); align-items: start; }
.plan-cards { display: grid; gap: 20px; }

.plan {
  position: relative;
  padding: 30px 30px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
/* Тихая карточка «чего пока нет». Намеренно без рамки-акцента и без кнопки:
   это снятие возражения, а не второе предложение — она не должна конкурировать
   за внимание с тарифом и формой. */
.plan-note-card {
  padding: 26px 30px 28px;
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}
.plan-note-card h3 { font-size: 19px; margin-bottom: 10px; }
.plan-note-card p { font-size: 15px; color: var(--ink-soft); }

.plan-badge {
  display: inline-block; margin-bottom: 16px;
  padding: 5px 12px; border-radius: 999px;
  font: 600 12px/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
  background: var(--btn-fill); color: #fff;
}
.plan h3 { margin-bottom: 12px; }
.plan-price { font-family: var(--font-serif); font-size: 34px; font-weight: 700; line-height: 1; }
.plan-price span { font-family: var(--font-sans); font-size: 16px; font-weight: 400; color: var(--muted); }
.plan-note { margin-top: 12px; font-size: 14.5px; color: var(--muted); }

/* Три тарифа в ряд. Плашка «Практика» сидит на верхней кромке карточки, а не над
   заголовком: так заголовки и цены во всех трёх карточках стоят на одной линии. */
.tariffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan-featured { border-color: var(--accent); box-shadow: var(--shadow-1); }
.plan-featured .plan-badge { position: absolute; top: 0; left: 30px; transform: translateY(-50%); margin: 0; }
.tariffs-foot { margin: 18px 0 clamp(36px, 5vw, 56px); font-size: 14.5px; color: var(--muted); max-width: 62em; }

/* «Как получить тестовый доступ» — те же шаги, но столбиком рядом с формой */
.access-how h3 { font-size: 21px; margin-bottom: 16px; }
.next-steps.next-steps-col { grid-template-columns: 1fr; margin-bottom: 0; }

.form-wrap { position: sticky; top: calc(var(--header-h) + 24px); }
.lead-form {
  padding: clamp(26px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  display: grid; gap: 16px;
}
.lead-form h3 { font-size: 24px; }
.form-lede { font-size: 15px; color: var(--muted); margin-top: -6px; }

.field { display: grid; gap: 7px; }
.field label { font-size: 14.5px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
  font: inherit; font-size: 16px;
  width: 100%; padding: 12px 14px;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }

/* Согласие на обработку ПДн: чекбокс обязателен, поэтому он не должен теряться
   среди полей — но и не должен выглядеть громче кнопки отправки. */
.field-check { margin-top: 2px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; cursor: pointer; }
.check input {
  width: 20px; height: 20px; margin: 1px 0 0; flex: none;
  accent-color: var(--btn-fill); cursor: pointer;
}
.check span { font-size: 14px; line-height: 1.5; color: var(--ink-soft); font-weight: 400; }
.check a { color: var(--accent); border-bottom: 1px solid var(--accent-line-38); }
.check a:hover { border-bottom-color: currentColor; }
.field-check.is-error .check input { outline: 2px solid var(--accent); outline-offset: 2px; }

.field.is-error input, .field.is-error select { border-color: var(--accent); }
.err { display: none; font-size: 13.5px; color: var(--accent); font-weight: 500; }
.field.is-error .err { display: block; }

.form-hint { font-size: 13.5px; color: var(--muted); }
.mail-link { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent-line-38); }
.mail-link:hover { border-bottom-color: currentColor; }

.copy-btn {
  margin-left: 8px; padding: 3px 10px;
  font: 500 12.5px/1.5 var(--font-sans);
  background: var(--surface-2); color: var(--ink-soft);
  border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.copy-btn:hover { background: var(--accent-soft); color: var(--accent); }
.copy-btn.is-done { color: var(--ok); border-color: var(--ok); }

.form-legal { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.form-done {
  display: grid; gap: 12px; place-items: start;
  padding: 8px 0;
}
.form-done .done-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ok-soft); }
.form-done .done-mark svg { width: 24px; height: 24px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form-done h3 { font-size: 22px; }
.form-done p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- 13. FAQ ---------- */

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-serif); font-weight: 700; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.35;
  cursor: pointer; list-style: none;
  transition: color .16s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.chev { position: relative; width: 18px; height: 18px; flex: none; }
.chev::before, .chev::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), opacity .22s ease;
}
.chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .chev::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.faq-body { padding: 0 4px 24px; max-width: 62em; }
.faq-body p { color: var(--ink-soft); font-size: 16.5px; }
.faq-item[open] .faq-body { animation: panelIn .28s ease; }

/* ---------- 14. Финальный CTA ---------- */

.cta-final {
  background: var(--dark); color: var(--on-dark);
  padding: clamp(64px, 8vw, 104px) 0;
  text-align: center;
}
.cta-final h2 { color: #fff; }
.cta-final p { max-width: 620px; margin: 20px auto 34px; color: var(--on-dark-mut); font-size: 18px; }

/* ---------- 15. Подвал ---------- */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: clamp(44px, 5vw, 68px) 0 28px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-brand p { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 34em; }
.foot-nav { display: grid; gap: 10px; align-content: start; }
.foot-nav a { font-size: 15.5px; color: var(--ink-soft); width: fit-content; }
.foot-nav a:hover { color: var(--accent); }
.foot-contact { display: grid; gap: 12px; align-content: start; justify-items: start; }
.foot-label { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 24px; }
.foot-bottom p { font-size: 13.5px; color: var(--muted); }
.disclaimer { max-width: 62ch; }

/* ---------- 16. Появление при прокрутке ---------- */

/* Прячем только когда скрипты живы (класс .js ставится инлайном в <head>) —
   иначе при отключённом JS сайт остался бы пустой страницей. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
html.js .reveal.is-in { opacity: 1; transform: none; }
.cards-3 .reveal:nth-child(2), .feature-grid .reveal:nth-child(2) { transition-delay: .07s; }
.cards-3 .reveal:nth-child(3), .feature-grid .reveal:nth-child(3) { transition-delay: .14s; }
.feature-grid .reveal:nth-child(4) { transition-delay: .21s; }

/* ---------- 15а. Секция «Документы» ---------- */

/* Две равные колонки — визуальный паритет позиций заявителя и суда.
   Ни одна карточка не выделена: перекос в оформлении читался бы как перекос
   в адресате продукта. */
.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.doc-card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.doc-card:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); border-color: var(--line-2); }
.doc-card header { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.doc-card h3 { font-size: clamp(23px, 2.2vw, 28px); margin: 12px 0 6px; }

.doc-tag {
  display: inline-block;
  font: 600 12px/1.4 var(--font-sans); letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent);
}
.doc-law { font: 500 14px/1 var(--font-mono); color: var(--muted); }
.doc-lede { font-size: 16.5px; color: var(--ink-soft); }
.doc-card .tick-list li b { color: var(--ink); font-weight: 600; }

/* Пример работы: три шага в ряд — цитата суда, найденная позиция, вывод.
   Цитаты — засечками, как в судебном тексте; вывод выделен рамкой-акцентом. */
.example-flow {
  list-style: none; margin: 0; padding: 0; counter-reset: ex;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.ex-step {
  counter-increment: ex;
  padding: 24px 24px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.ex-label { display: block; margin-bottom: 12px; font-size: 13.5px; color: var(--muted); }
.ex-label::before { content: counter(ex) ". "; font-family: var(--font-mono); color: var(--accent); }
.ex-quote { margin: 0; font-family: var(--font-serif); font-size: 16px; line-height: 1.6; color: var(--ink); }
.ex-cite { margin: 0 0 10px; font-weight: 600; font-size: 15px; color: var(--ink); }
.ex-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 13px; background: var(--ok-soft); color: var(--ok);
}
.ex-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ex-result { border-color: var(--accent); }
.ex-result p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }

/* Миссия — отдельная полоса-заявление по центру, без карточек и кнопок */
.section-mission .section-head { max-width: 860px; margin: 0 auto; text-align: center; }

/* ---------- 16а. Конверсионные блоки ---------- */

.stats-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* Повторный CTA в середине страницы: до формы отсюда ещё три экрана */
.mid-cta { margin-top: 44px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mid-cta p { font-size: 15px; color: var(--muted); max-width: 36em; }

/* «Что будет после заявки» — снимает неопределённость перед формой */
.next-steps {
  list-style: none; counter-reset: ns;
  margin: 0 0 clamp(28px, 4vw, 46px); padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.next-steps li {
  counter-increment: ns;
  position: relative;
  padding: 20px 22px 22px 58px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  display: grid; gap: 5px; align-content: start;
}
.next-steps li::before {
  content: counter(ns, decimal-leading-zero);
  position: absolute; left: 22px; top: 23px;
  font: 600 13px/1 var(--font-mono); color: var(--accent);
}
.next-steps b { font-size: 16.5px; }
.next-steps span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* Ловушка для спам-ботов */
.hp { display: none; }

.tg-link { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent-line-38); width: fit-content; }
.tg-link:hover { border-bottom-color: currentColor; }

/* Мобильная закреплённая кнопка. Существует только до 900px; появляется после
   первого экрана и прячется, когда секция заявки и так на экране. */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none;
  padding: 10px var(--pad-x) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--header-veil);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-cta.is-shown { transform: none; }

@media (max-width: 900px) {
  .sticky-cta { display: block; }
  body.cta-shown { padding-bottom: 78px; }
  .next-steps { grid-template-columns: 1fr; }
}

/* ---------- 17. Адаптив ---------- */

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-demo { max-width: 620px; }
  .proof-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps-panels { min-height: 0; }
  .access-grid { grid-template-columns: 1fr; }
  .form-wrap { position: static; }
}

/* Меню сворачивается в «бургер» раньше, чем остальная вёрстка перестраивается:
   шесть пунктов в одну строку помещаются только с ~1180px (замер 21.09.2026),
   а раньше двухсловные пункты переносились на две строки. Порог продублирован
   в app.js (закрытие меню при расширении окна). */
@media (max-width: 1200px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    display: grid; gap: 2px;
    padding: 14px var(--pad-x) 22px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 13px 12px; font-size: 17px; }
  .site-nav a.is-current::after { display: none; }
  .burger { display: inline-grid; }
  /* Меню ушло в «бургер» — кнопки справа прижимаются к краю сами */
  .header-actions { margin-left: auto; }
}

@media (max-width: 900px) {
  .header-cta { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .tariffs { grid-template-columns: 1fr; row-gap: 28px; }
  .example-flow { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .audience, .sec-grid, .docs-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 22px; }
  .stats li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
  .hero-cta .btn { width: 100%; }
  .cite { grid-template-columns: 24px 1fr; }
  .cite-tag { grid-column: 2; }
  .step-btn { padding: 14px; }
  .win-body { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cite { opacity: 1; transform: none; }
}

/* ---------- 17а. Правовые страницы ---------- */

/* Отдельный режим набора: узкая колонка, нумерация уровней, крупный интерлиньяж.
   Эти документы читают внимательно и иногда распечатывают — верстка подчинена
   разборчивости, а не выразительности. */

.legal-main { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }

.legal-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 44px); }
.legal-head h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; }
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--muted);
}
.legal-meta b { color: var(--ink); font-weight: 600; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 22px; font-size: 15px; color: var(--muted);
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.legal-body { max-width: 780px; font-size: 16.5px; }
.legal-body h2 {
  font-size: clamp(20px, 2vw, 25px); line-height: 1.25;
  margin: clamp(34px, 4vw, 48px) 0 14px;
  padding-top: 4px;
}
.legal-body h3 { font-size: 18.5px; margin: 26px 0 10px; }
.legal-body p { margin: 0 0 14px; color: var(--ink-soft); }
.legal-body strong { color: var(--ink); font-weight: 600; }

.legal-body ol, .legal-body ul { margin: 0 0 16px; padding-left: 26px; color: var(--ink-soft); }
.legal-body li { margin-bottom: 9px; }
.legal-body li::marker { color: var(--muted); }

/* Сквозная нумерация пунктов: «3.2», «3.2.1» — как принято в договорных текстах */
.legal-body ol.clauses { list-style: none; counter-reset: c1; padding-left: 0; }
.legal-body ol.clauses > li { counter-increment: c1; position: relative; padding-left: 42px; margin-bottom: 14px; }
.legal-body ol.clauses > li::before {
  content: var(--sec) "." counter(c1);
  position: absolute; left: 0; top: 0;
  font: 600 14px/1.7 var(--font-mono); color: var(--accent);
}

.legal-body table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15.5px; }
.legal-body th, .legal-body td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-body th { background: var(--surface-2); font-weight: 600; }
.legal-body td { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }

/* Место под реквизиты оператора — намеренно заметное, чтобы ни одно не забыли */
.fill {
  display: inline-block; padding: 1px 8px; border-radius: 4px;
  background: var(--warn-soft); border: 1px dashed var(--warn);
  color: var(--warn); font: 600 14px/1.5 var(--font-mono);
}

.callout {
  margin: 22px 0; padding: 18px 22px;
  background: var(--surface-2); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.callout p { margin: 0; font-size: 15.5px; }
.callout p + p { margin-top: 10px; }

.legal-toc {
  margin: 0 0 clamp(30px, 4vw, 44px); padding: 22px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.legal-toc h2 { font-size: 15px !important; margin: 0 0 12px !important; font-family: var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc li { margin-bottom: 7px; }
.legal-toc a { color: var(--ink-soft); }
.legal-toc a:hover { color: var(--accent); }

.legal-nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(40px, 5vw, 60px); padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal-nav a {
  padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14.5px; color: var(--ink-soft);
}
.legal-nav a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 18. Печать ---------- */

@media print {
  .site-header, .hero-bg, .cta-final, .form-wrap, .burger, .icon-btn, .sticky-cta { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .section { padding: 18pt 0; }
  .reveal { opacity: 1; transform: none; }
  .faq-body { display: block !important; }
  .legal-body { max-width: none; font-size: 11pt; }
  .legal-toc, .legal-nav, .back-link { display: none !important; }
  .legal-body h2 { page-break-after: avoid; }
  .legal-body li, .legal-body p { page-break-inside: avoid; }
  .fill { background: none; color: #000; }
}
