/* legal.css - styles for МЭГ legal/privacy pages.
 * Extends site.css. 2-col layout: sticky TOC + main prose.
 */
@import url('./site.css?v=9');

/* ========== PAGE HEAD ===================================================== */
.lp-head {
  padding: 28px 0 36px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-1);
}
.lp-head__crumbs {
  font-size: 13px; color: var(--fg-3);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin: 0 0 18px;
}
.lp-head__crumbs a { color: var(--fg-3); text-decoration: none; }
.lp-head__crumbs a:hover { color: var(--fg-1); }
.lp-head__crumbs .sep { color: var(--c-steel-300); }
.lp-head__crumbs .cur { color: var(--fg-1); }

.lp-head__top { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.lp-head__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--c-accent-soft); color: var(--c-accent);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--r-2);
}
.lp-head__badge svg { width: 14px; height: 14px; }
.lp-head__rev {
  font-size: 12px; color: var(--fg-3);
  padding: 6px 12px;
  background: #fff;
  border: 1px dashed var(--c-steel-300);
  border-radius: var(--r-2);
  white-space: nowrap;
}

.lp-head__h1 {
  font-size: 40px; font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.12;
  margin: 0 0 16px;
  max-width: 22ch;
}
.lp-head__lede {
  font-size: 16px; color: var(--fg-2);
  line-height: 1.65; max-width: 68ch;
  margin: 0;
}

/* ========== BODY GRID ===================================================== */
.lp-body { padding: 48px 0 80px; }
.lp-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.lp-main { min-width: 0; }

/* ========== TOC (sticky) ================================================== */
.lp-toc { position: sticky; top: 96px; }
.lp-toc__inner {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  padding: 18px 18px 14px;
}
.lp-toc__h {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--fg-3);
  font-weight: 600;
  padding: 0 8px 12px;
  border-bottom: 1px solid var(--border-1);
  margin-bottom: 8px;
}
.lp-toc__list { list-style: none; padding: 0; margin: 0; }
.lp-toc__list li { margin: 0; }
.lp-toc__list a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 7px 8px;
  font-size: 13px; line-height: 1.4;
  color: var(--fg-2);
  text-decoration: none;
  border-radius: var(--r-1);
  border-left: 2px solid transparent;
  transition: all var(--t-fast) var(--ease-std);
}
.lp-toc__list a:hover { color: var(--c-accent); background: var(--bg-soft); }
.lp-toc__num { color: var(--c-steel-400); font-size: 11px; flex: 0 0 22px; }
.lp-toc__lbl { flex: 1; }
.lp-toc__list li.is-active a {
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border-left-color: var(--c-accent);
  font-weight: 500;
}
.lp-toc__list li.is-active .lp-toc__num { color: var(--c-accent); }

/* ========== SECTIONS ====================================================== */
.lp-section { padding: 0 0 40px; scroll-margin-top: 100px; }
.lp-section:first-child { padding-top: 4px; }
.lp-section__h {
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.005em; line-height: 1.25;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-1);
}

.lp-prose {
  font-size: 15px; line-height: 1.7;
  color: var(--fg-1);
  max-width: 70ch;
}
.lp-prose p { margin: 0 0 14px; }
.lp-prose p:last-child { margin-bottom: 0; }
.lp-prose a {
  color: var(--c-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(43,92,138,0.3);
}
.lp-prose a:hover { border-bottom-color: var(--c-accent); }
.lp-prose strong { font-weight: 600; }

/* ========== CONTACTS block ================================================ */
.lp-contacts {
  margin: 20px 0 24px;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  overflow: hidden;
}
.lp-contacts__row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-1);
  align-items: baseline;
}
.lp-contacts__row:last-child { border-bottom: 0; }
.lp-contacts__k {
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.45;
}
.lp-contacts__v {
  font-size: 14px;
  color: var(--fg-1);
  line-height: 1.5;
}
.lp-contacts__v--link { color: var(--c-accent); text-decoration: none; border-bottom: 1px solid rgba(43,92,138,0.3); }
.lp-contacts__v--link:hover { border-bottom-color: var(--c-accent); }

/* ========== REQS placeholder block ========================================= */
.lp-reqs {
  background: var(--bg-soft);
  border: 1.5px dashed var(--c-steel-300);
  border-radius: var(--r-3);
  padding: 20px 22px;
  margin: 16px 0 0;
}
.lp-reqs__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.lp-reqs__h {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--fg-3);
  font-weight: 600;
}
.lp-reqs__tag {
  font-family: var(--font-mono);
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  background: var(--c-warning-soft);
  color: var(--c-warning);
  border-radius: var(--r-2);
}
.lp-reqs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin-bottom: 14px;
}
.lp-reqs__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--c-steel-300);
  align-items: baseline;
}
.lp-reqs__row:last-child,
.lp-reqs__row:nth-last-child(2) { border-bottom: 0; }
.lp-reqs__k { font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.04em; }
.lp-reqs__v {
  font-size: 13px;
  color: var(--c-steel-400);
  letter-spacing: 0.04em;
}
.lp-reqs__note {
  display: flex; gap: 10px; align-items: flex-start;
  padding-top: 14px;
  border-top: 1px dashed var(--c-steel-300);
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.5;
}
.lp-reqs__note svg { flex: 0 0 18px; color: var(--c-warning); }

/* ========== FOOTNOTE ====================================================== */
.lp-footnote {
  margin-top: 40px;
  padding: 18px 20px;
  background: var(--c-accent-soft);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--r-3) var(--r-3) 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.lp-footnote__ic { color: var(--c-accent); flex: 0 0 20px; padding-top: 2px; }
.lp-footnote__h {
  font-size: 13px; font-weight: 600;
  color: var(--c-accent);
  margin-bottom: 4px;
}
.lp-footnote__body p {
  font-size: 13px; line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  max-width: 70ch;
}

/* ========== RESPONSIVE ==================================================== */
@media (max-width: 1100px) {
  .lp-grid { grid-template-columns: 1fr; gap: 24px; }
  .lp-toc { position: static; }
  .lp-toc__inner { padding: 14px 14px 10px; }
  .lp-toc__list { display: grid; grid-template-columns: 1fr 1fr; }
  .lp-head__h1 { font-size: 32px; }
  .lp-reqs__grid { grid-template-columns: 1fr; }
  .lp-reqs__row:nth-last-child(2) { border-bottom: 1px dotted var(--c-steel-300); }
  .lp-contacts__row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 720px) {
  .lp-head { padding: 20px 0 24px; }
  .lp-head__h1 { font-size: 26px; }
  .lp-body { padding: 28px 0 60px; }
  .lp-section { padding-bottom: 28px; }
  .lp-section__h { font-size: 20px; }
  .lp-toc__list { grid-template-columns: 1fr; }
  .lp-reqs { padding: 16px 14px; }
  .lp-contacts__row { padding: 12px 14px; }
}

/* Таблица позиций на странице-образце (спецификация). */
.lp-table-wrap { overflow-x: auto; margin: 8px 0 4px; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lp-table th, .lp-table td { border: 1px solid var(--border-1); padding: 8px 10px; text-align: left; vertical-align: top; }
.lp-table thead th { background: var(--bg-soft); font-weight: 600; color: var(--fg-1); }
.lp-table tfoot td { font-weight: 600; background: var(--bg-soft); }
.lp-table td:nth-child(n+3), .lp-table th:nth-child(n+3) { white-space: nowrap; }

/* CTA-панель на страницах-образцах (Запросить договор под сделку). */
.lp-cta {
  margin: 28px 0 8px;
  padding: 22px 24px;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.lp-cta__h { font-size: 17px; font-weight: 600; color: var(--fg-1); }
.lp-cta__sub { font-size: 14px; color: var(--c-steel-500); margin: 4px 0 0; max-width: 60ch; }
.lp-cta .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 560px) { .lp-cta { flex-direction: column; align-items: stretch; } .lp-cta .btn { width: 100%; } }
