/* Legal documents reuse the editorial article shell with a quieter, paper-first treatment. */
.legal-page .art-hero {
  padding-bottom: clamp(28px, 3vw, 44px);
}

.legal-page .art-head {
  max-width: 980px;
}

.legal-page .art-lede {
  max-width: 54ch;
}

.legal-page .art-paper-section {
  background: #eef2f4;
}

.legal-page .art-paper {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f6f8;
  background: #ffffff;
}

.legal-page .art-paper .art-body {
  max-width: 72ch;
}

.legal-page .art-paper .legal-single-column {
  grid-template-columns: minmax(0, 72ch);
  justify-content: center;
}

.legal-page .art-paper .art-body p {
  font-size: calc(var(--step-0) - 0.0625rem);
}

.legal-doc-head {
  padding-bottom: clamp(26px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(18px, 2vw, 28px);
}

.legal-doc-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 1.35rem + 1.6vw, 3rem);
  line-height: 1.06;
  text-wrap: balance;
}

.legal-doc-head p {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-page .art-body section + section {
  margin-top: clamp(46px, 5vw, 72px);
}

.legal-page .art-body section > h2 {
  margin-top: 0;
  font-size: clamp(1.65rem, 1.35rem + 1vw, 2.35rem);
  line-height: 1.08;
}

.legal-page .art-body section > p {
  margin-top: 1em;
}

.legal-lines {
  display: grid;
  gap: 5px;
  margin-top: 1em;
}

.legal-lines p {
  margin: 0;
}

.legal-requisites {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}

.legal-requisites h2 {
  max-width: none;
}

.legal-page .art-toc ol {
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding-right: 4px;
}

.legal-page .art-toc ol a {
  grid-template-columns: 22px 1fr;
  font-size: 0.82rem;
}

.legal-print {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 40px;
  padding-inline: 14px;
  border-radius: 999px !important;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .legal-print span { display: none; }
  .legal-print { padding-inline: 0; }
  .legal-page .art-paper .art-body p { font-size: 0.9375rem; line-height: 1.68; }
}

@media print {
  .site-header,
  .mobile-menu,
  .art-progress,
  .art-hero,
  .art-toc,
  .site-footer,
  .modal-overlay { display: none !important; }

  .legal-page,
  .legal-page main,
  .legal-page .art-paper-section { background: #fff !important; }

  .legal-page .art-paper-section { padding: 0 !important; }
  .legal-page .art-paper-section > .wrap { max-width: none; padding: 0; }
  .legal-page .art-paper { border: 0; border-radius: 0; box-shadow: none; padding: 0; }
  .legal-page .art-layout { display: block; }
  .legal-page .art-body { max-width: none !important; }
  .legal-page .art-body p { color: #111; font-size: 10.5pt; line-height: 1.45; }
  .legal-page .art-body section { break-inside: avoid-page; }
  .legal-page .art-body h2 { color: #000; }
  .legal-requisites { background: #fff; }
}
