/*
 * article.css
 *
 * Production-перенос chronicle.html. Все стили статьи,
 * раскладки (left-rail / reading / sidebar), hero,
 * share-bar, FAQ, callout, related-section.
 *
 * Палитра идёт из tokens.css, шрифты подключаются в Layout.
 *
 * Reading column = 900px. На desktop >= 1472px трёхколоночная
 * раскладка с РСЯ слева и виджетами справа. На 1024-1471 без
 * left-rail. На < 1024 одна колонка, sidebar после статьи.
 */

.page {
  padding: 0 32px;
}

.layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 400px;
  grid-template-areas:
    "lr brc sb"
    "lr art sb";
  gap: 32px;
  align-items: start;
}
.layout > .left-rail { grid-area: lr; }
.layout > .sidebar { grid-area: sb; }
.layout > .breadcrumbs {
  grid-area: brc;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}
.layout > .article {
  grid-area: art;
  width: 100%;
  margin: 0;
}

.article > h1,
.article > p,
.article > ul,
.article > ol,
.article > .lead,
.article > p.first-para,
.article > .metadata,
.article > .kicker-row,
.article > h2,
.article > h3,
.article > blockquote,
.article > .callout,
.article > details,
.article > .disclaimer,
.article > .editor-signoff,
.article > .share-bar,
.article > figure,
.article > .pull-quote,
.article > .related-grid {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.article > * + * {
  margin-top: 24px;
}
.article > h2 {
  margin-top: 64px;
}
.article > h3 {
  margin-top: 32px;
}
.article > blockquote {
  margin-top: 56px;
  margin-bottom: 56px;
}
.article > figure {
  margin-top: 32px;
  margin-bottom: 32px;
}

.kicker-row {
  margin: 0 0 16px;
}
.kicker {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  text-decoration: none;
}
.kicker:hover {
  background: var(--accent);
}

.article > h1 {
  font-size: 60px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 8px;
}

.article > .lead {
  font-size: 24px;
  line-height: 1.45;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
}

.article > h2 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
}
.article > h3 {
  font-weight: 700;
}

.article > .lead + p::first-letter {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 96px;
  line-height: 0.82;
  font-weight: 700;
  float: left;
  margin: 6px 14px 0 0;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.article > blockquote {
  border: 3px solid var(--ink);
  padding: 32px;
  font-size: 26px;
  line-height: 1.35;
  font-style: italic;
  background: transparent;
}
.article > blockquote cite {
  display: block;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink);
}

.article > blockquote > p {
  margin: 0;
}
.article > blockquote > p + p {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink);
}
.article > blockquote > p + p em {
  font-style: normal;
}
.article > blockquote > p + p a {
  color: var(--ink);
}

.article > .pull-quote {
  margin: 72px auto;
  padding: 32px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--text);
}

.callout {
  border-left: 6px solid var(--accent);
  padding: 24px 28px;
  background: var(--surface);
}
.callout-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.figure-placeholder {
  border: 3px solid var(--ink);
  background: var(--surface);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
figcaption {
  margin-top: 12px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
details:first-of-type {
  border-top: 1px solid var(--border);
}
summary {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  padding-right: 24px;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
}
details[open] summary::after {
  content: "-";
}
details > p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
}

.disclaimer {
  background: var(--surface);
  padding: 20px 24px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 48px;
}

.site-header {
  border-bottom: 2px solid var(--ink);
  padding: 24px 0;
}
.site-header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.site-logo {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--text);
}

.breadcrumbs {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 32px;
  margin-bottom: 16px;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--text);
}
.breadcrumbs-sep {
  margin: 0 8px;
  color: var(--border);
}

.hero {
  width: 100%;
  margin-bottom: 56px;
}
.hero-image {
  width: 100%;
  height: 480px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-image-real {
  object-fit: cover;
}
.hero-caption {
  margin: 14px 0 0;
  padding-left: calc(32px + 200px + 32px + 146px);
  padding-right: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.sidebar,
.left-rail {
  position: sticky;
  display: flex;
  flex-direction: column;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sidebar {
  top: 24px;
  gap: 40px;
}
.left-rail {
  top: calc(50vh - 220px);
  gap: 32px;
}

.ad-square {
  width: 200px;
  height: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ad-square .ad-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}
.ad-mark {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-erid {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  font-size: 9px;
  color: var(--muted);
  text-align: left;
  letter-spacing: 0.02em;
}

.widget-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.widget-title {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 8px;
}
.widget-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px;
}
.widget-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.widget-cta:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.widget-test {
  border: 2px solid var(--ink);
  padding: 24px;
}
.widget-test .widget-kicker {
  background: var(--ink);
  color: var(--bg);
  padding: 4px 10px;
}

.widget-promo {
  border: 1px solid var(--border);
  padding: 20px;
  position: relative;
}
.promo-mark {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.promo-image {
  background: var(--surface);
  border: 1px solid var(--border);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 14px;
}
.promo-erid {
  margin-top: 12px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.widget-related-item {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.widget-related-item:first-of-type {
  padding-top: 0;
}
.widget-related-item:last-child {
  border-bottom: 0;
}
.widget-related-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.widget-related-title {
  display: block;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
.widget-related-item:hover .widget-related-title {
  color: var(--accent);
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  margin-bottom: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share-bar-label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}
.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
}
.share-btn svg {
  width: 20px;
  height: 20px;
}
.share-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.editor-signoff {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.article-sources {
  max-width: 900px;
  margin: 48px auto 0;
}
.article-sources-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}
.article-sources-list {
  padding-left: 24px;
}
.article-sources-list li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.55;
}

.related-section {
  margin-top: 80px;
  border-top: 2px solid var(--ink);
  padding: 56px 0 80px;
}
.related-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.related-section-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 32px;
}
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.related-card {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.related-card-image {
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.related-card-kicker {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.related-card-title {
  display: block;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text);
}
.related-card:hover .related-card-title {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-footer a {
  color: var(--muted);
}

@media (max-width: 1471px) {
  .page {
    padding: 0 24px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas:
      "brc sb"
      "art sb";
    gap: 32px;
  }
  .layout > .article {
    margin: 0;
  }
  .layout > .breadcrumbs {
    max-width: none;
    margin: 0;
  }
  .left-rail { display: none; }
  .hero-caption {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brc"
      "art"
      "sb";
    max-width: 680px;
    margin: 0 auto;
    gap: 0;
  }
  .sidebar {
    position: static;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 2px solid var(--ink);
  }
  .hero-image { height: 360px; }
  .related-cards { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
  .article > h1 { font-size: 42px; }
  .article > h2 { font-size: 28px; }
  .article > blockquote { font-size: 22px; padding: 24px; }
  .callout { padding: 20px 22px; }
  .article > .pull-quote { font-size: 26px; margin: 48px 0; }
  .page { padding: 0 16px; }
}

@media (max-width: 560px) {
  .hero-image { height: 260px; }
  .related-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   Страница рубрики /sections/<slug>
   ============================================================ */

.section-content {
  grid-area: art;
  width: 100%;
  margin: 0;
  padding-top: 32px;
  padding-bottom: 64px;
}

.section-head {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 32px;
  margin-bottom: 48px;
}
.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.section-title {
  font-size: 64px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--ink);
}
.section-lead {
  font-size: 22px;
  line-height: 1.45;
  color: var(--text);
  max-width: 720px;
  margin: 0;
}

.section-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.section-card {
  border-bottom: 1px solid var(--border);
}
.section-card:first-child {
  border-top: 1px solid var(--border);
}
.section-card-link {
  display: block;
  padding: 32px 0;
  text-decoration: none;
  color: inherit;
}
.section-card-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.section-card-title {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 12px;
}
.section-card-link:hover .section-card-title {
  color: var(--accent);
}
.section-card-desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.section-empty {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-empty-text {
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 20px;
}
.section-empty-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.section-empty-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ============================================================
   Страница 404
   ============================================================ */

.error-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 24px 96px;
  text-align: left;
}
.error-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}
.error-title {
  font-size: 64px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 24px;
}
.error-lead {
  font-size: 22px;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 40px;
  max-width: 620px;
}
.error-actions {
  margin: 0 0 64px;
}
.error-home {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 22px;
  text-decoration: none;
}
.error-home:hover {
  background: var(--accent);
}
.error-sections-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.error-sections {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.error-sections li {
  border-bottom: 1px solid var(--border);
}
.error-sections a {
  display: block;
  padding: 16px 0;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.error-sections a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .section-content { padding-top: 24px; padding-bottom: 48px; }
  .section-title { font-size: 44px; }
  .section-lead { font-size: 19px; }
  .section-card-title { font-size: 24px; }

  .error-page { padding: 64px 16px 72px; }
  .error-title { font-size: 44px; }
  .error-lead { font-size: 19px; }
}

/* ============================================================
   Юридические страницы /privacy и /cookies
   ============================================================ */

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.legal-title {
  font-size: 44px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 16px;
}
.legal-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 48px;
}
.legal-body h2 {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-body h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 12px;
}
.legal-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 16px;
}
.legal-body ul {
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal-body li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 8px;
}
.legal-body code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--ink);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--border);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-table th {
  background: var(--surface);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-size: 12px;
  text-transform: uppercase;
}
.legal-table td {
  color: var(--text);
  line-height: 1.5;
}
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-back-row {
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-back-row a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.legal-back-row a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ============================================================
   Cookie-баннер
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg);
  border-top: 2px solid var(--accent);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.cookie-banner-text {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bg);
}
.cookie-banner-text a {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner-text a:hover {
  color: var(--accent);
}
.cookie-banner-accept {
  flex-shrink: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 0;
  cursor: pointer;
}
.cookie-banner-accept:hover {
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 640px) {
  .legal-page { padding: 48px 16px 72px; }
  .legal-title { font-size: 32px; }
  .legal-body h2 { font-size: 21px; }
  .legal-body h3 { font-size: 17px; }
  .legal-body p,
  .legal-body li { font-size: 16px; }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px 20px;
    gap: 14px;
  }
  .cookie-banner-accept { align-self: flex-start; }
}
