/* ════════════════════════════════════════════════════════════
   VORTEX · оформление правовых страниц
   Дополнение к style.css — использует те же переменные,
   ничего в основном файле не переопределяет.
   ════════════════════════════════════════════════════════════ */

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 22px 90px;
}

/* ── шапка ─────────────────────────────────────────────── */
.legal-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 26px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  transition: border-color .15s, color .15s;
}
.legal-back:hover { border-color: var(--accent); color: var(--accent); }
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  text-decoration: none;
  color: var(--text2);
  font-size: 14px;
}
.legal-brand .nb-orb {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
}

/* ── заголовок документа ───────────────────────────────── */
.legal-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 12px;
}
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(27px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.16;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.legal-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--text2);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.legal-meta b { color: var(--text); font-weight: 600; }

/* ── врезка «главное» ──────────────────────────────────── */
.legal-lead {
  margin: 26px 0 8px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: var(--accent-light);
  border: 1px solid var(--border);
}
.legal-lead h2 {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.legal-lead p { font-size: 14.5px; line-height: 1.72; color: var(--text); }
.legal-lead p + p { margin-top: 10px; }

/* ── оглавление ────────────────────────────────────────── */
.legal-toc {
  margin: 26px 0 34px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--card);
}
.legal-toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 12px;
}
.legal-toc ol { list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; margin-bottom: 7px; }
.legal-toc a {
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  transition: color .15s;
}
.legal-toc a::before {
  content: counter(toc) ".";
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--label);
  margin-right: 9px;
}
.legal-toc a:hover { color: var(--accent); }

/* ── разделы ───────────────────────────────────────────── */
.legal-sec { margin-top: 38px; scroll-margin-top: 20px; }
.legal-sec > h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.legal-sec h3 {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 22px 0 8px;
}
.legal-sec p {
  font-size: 15px;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 12px;
}
.legal-sec ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.legal-sec ul li {
  position: relative;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text);
  padding-left: 20px;
  margin-bottom: 9px;
}
.legal-sec ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}
.legal-sec a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-light); }
.legal-sec a:hover { border-bottom-color: var(--accent); }
.legal-sec strong { font-weight: 600; color: var(--ink); }

/* ── акцентная плашка внутри раздела ───────────────────── */
.legal-note {
  margin: 16px 0 18px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--card);
}
.legal-note p { font-size: 14px; line-height: 1.7; margin-bottom: 0; color: var(--text); }
.legal-note p + p { margin-top: 9px; }
.legal-note.warn { border-left-color: var(--err); background: var(--err-bg); }
.legal-note.warn p { color: var(--text); }

/* ── таблица ───────────────────────────────────────────── */
.legal-table-wrap { overflow-x: auto; margin: 16px 0 20px; -webkit-overflow-scrolling: touch; }
.legal-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.legal-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--label);
  padding: 0 14px 9px 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.legal-table td {
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  line-height: 1.6;
  vertical-align: top;
}
.legal-table td code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  white-space: nowrap;
}

/* ── реквизиты ─────────────────────────────────────────── */
.legal-req {
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card);
}
.legal-req dl { display: grid; grid-template-columns: auto 1fr; gap: 11px 20px; }
.legal-req dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--label);
  padding-top: 3px;
  white-space: nowrap;
}
.legal-req dd { font-size: 15px; color: var(--text); }
.legal-req dd a { color: var(--accent); text-decoration: none; }
.legal-req dd a:hover { text-decoration: underline; }

/* ── подвал документа ──────────────────────────────────── */
.legal-foot {
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
}
.legal-foot a { font-size: 14px; color: var(--text2); text-decoration: none; }
.legal-foot a:hover { color: var(--accent); }
.legal-foot .legal-copy { margin-left: auto; font-size: 13px; color: var(--label); }

@media (max-width: 560px) {
  .legal-wrap { padding: 18px 16px 70px; }
  .legal-req dl { grid-template-columns: 1fr; gap: 3px; }
  .legal-req dt { padding-top: 10px; }
  .legal-foot .legal-copy { margin-left: 0; width: 100%; }
}
