/* =========================================================
   Дела сердечные — Текстовые правовые страницы
   Общая типографика для страниц «Правовая информация»,
   «Пользовательское соглашение», «Политика…» и т. д.
   Опирается на styles.css + priem-styles.css (header, footer,
   .page-title, .breadcrumbs, токены).
   ========================================================= */

.page-head { text-align: center; padding-bottom: 0; }
.page-head .breadcrumbs { justify-content: center; }
.page-head .page-lead {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--text);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* ── Тело правового документа ── */
.legal-section { padding: 44px 0 var(--section-pad); }
.legal {
  max-width: 880px;
  margin: 0 auto;
}
.legal-block { margin-bottom: 52px; }
.legal-block:last-child { margin-bottom: 0; }

.legal h2 {
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 22px;
  text-wrap: balance;
}
.legal h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 32px 0 14px;
}
.legal h3:first-child { margin-top: 0; }
.legal p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.legal p:last-child { margin-bottom: 0; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a:not(.doc-list a) { color: var(--violet); font-weight: 600; }
.legal a:not(.doc-list a):hover { text-decoration: underline; }
.legal .legal-note {
  font-size: 16px;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 24px;
}

/* document link list */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.doc-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 15px 18px;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}
.doc-list a:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.doc-ico {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--violet-soft), #F6E7EC);
  color: var(--violet);
  display: grid; place-items: center;
}
.doc-list a .doc-arrow {
  margin-left: auto;
  color: var(--text-light);
  flex: 0 0 auto;
  transition: color .2s ease, transform .2s ease;
}
.doc-list a:hover .doc-arrow {
  color: var(--violet);
  transform: translate(2px, -2px);
}

/* маркированный список */
.legal-ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.legal-ul li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}
.legal-ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--violet);
}
.legal-ul a { color: var(--violet); font-weight: 600; }
.legal-ul a:hover { text-decoration: underline; }

/* нумерованный список */
.legal-ol {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: legal-step;
  display: grid;
  gap: 13px;
}
.legal-ol li {
  position: relative;
  padding-left: 44px;
  min-height: 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  counter-increment: legal-step;
  align-self: center;
}
.legal-ol li::before {
  content: counter(legal-step);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* info cards (реквизиты / управление) */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.info-card {
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.info-card h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet);
  margin: 0 0 16px;
}
.info-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 18px;
}
.info-card dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: start;
  padding-top: 1px;
}
.info-card dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}
.info-card .info-plain dd { font-weight: 600; }

/* supervisory org rows */
.org-list {
  display: grid;
  gap: 16px;
}
.org-item {
  border-left: 3px solid var(--violet-soft);
  padding: 4px 0 4px 18px;
}
.org-item strong {
  display: block;
  font-size: 16px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.org-item span {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* highlighted callout (важно / примечание) */
.legal-callout {
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin: 0 0 20px;
}
.legal-callout p:last-child { margin-bottom: 0; }

/* license meta footnote */
.legal .lic-meta {
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.lic-meta strong { color: var(--text); }

@media (max-width: 720px) {
  .legal h2 { font-size: 23px; }
  .info-grid { grid-template-columns: 1fr; }
  .legal-block { margin-bottom: 44px; }
}
