/* Базовая обёртка для юридических страниц */
.legal-main {
  padding: 80px 0 96px;
}

.legal-hero {
  padding: 72px 0 48px;
  background: radial-gradient(circle at top left, #f3f4ff 0, #ffffff 55%);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.03);
  margin-bottom: 10px;
}

.legal-lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
}

.legal-meta {
  margin-top: 10px;
  font-size: 13px;
  color: #9ca3af;
}

/* Содержимое разделов */
.legal-section {
  padding: 40px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.legal-section h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.legal-section p {
  margin-bottom: 12px;
  color: #4b5563;
  line-height: 1.7;
}

.legal-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #4b5563;
}

.legal-list li {
  margin-bottom: 4px;
}

/* Содержание (TOC) */
.legal-toc {
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px dashed rgba(148, 163, 184, 0.8);
}

.legal-toc__title {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 6px;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.legal-toc a {
  font-size: 14px;
  text-decoration: none;
  color: #2563eb;
}

.legal-toc a:hover {
  text-decoration: underline;
}

/* THANKS PAGE */
.thanks-hero {
  padding: 96px 0 120px;
  background: radial-gradient(circle at top right, #dbeafe 0, #ffffff 55%);
}

.thanks-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.thanks-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #22c55e;
}

.thanks-card h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.thanks-text {
  color: #4b5563;
  margin-bottom: 10px;
  line-height: 1.7;
}

.thanks-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Адаптив */
@media (max-width: 991px) {
  .legal-main {
    padding: 56px 0 72px;
  }
  .legal-hero {
    padding: 56px 0 32px;
  }
  .thanks-hero {
    padding: 72px 0 96px;
  }
}

@media (max-width: 767px) {
  .thanks-card {
    padding: 28px 20px;
  }
  .legal-section {
    padding: 32px 0;
  }
  h1 {
    font-size: 28px;
  }
}
