/* legal.css — общий стиль юридических страниц
   («Политика обработки персональных данных», «Основные сведения об организации») */

.wrap {
  width: min(900px, calc(100% - 32px));
}
.nav .wrap,
.nav-inner {
  width: min(1160px, calc(100% - 32px));
}

.legal-hero {
  padding: 26px 0 8px;
  text-align: center;
}
.legal-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px 0 10px;
  color: var(--navy);
}
.legal-hero p {
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}

section {
  padding: 34px 0;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.legal-toc a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 900;
  font-size: 12.5px;
  color: var(--navy);
  box-shadow: var(--soft);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.legal-toc a:hover {
  background: var(--sky);
  transform: translateY(-2px);
}

.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px 34px;
  box-shadow: var(--soft);
  margin-bottom: 20px;
  scroll-margin-top: 100px;
}
.legal-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  color: var(--navy);
  margin: 0 0 14px;
}
.legal-card p {
  color: var(--text);
  font-weight: 600;
  line-height: 1.75;
  margin: 0 0 14px;
  font-size: 15px;
}
.legal-card p:last-child {
  margin-bottom: 0;
}
.legal-card ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.75;
  font-size: 15px;
}
.legal-card li {
  margin-bottom: 8px;
}
.legal-card ul:last-child {
  margin-bottom: 0;
}
.legal-card .doc-link {
  color: var(--blue);
  font-weight: 900;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.legal-table tr {
  border-bottom: 1px dashed var(--line);
}
.legal-table tr:last-child {
  border-bottom: 0;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 0;
  font-weight: 600;
  color: var(--text);
}
.legal-table th {
  color: var(--muted);
  font-weight: 800;
  width: 45%;
}

.legal-intro {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 32px;
  box-shadow: var(--soft);
  margin-bottom: 28px;
}
.legal-intro p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
  margin: 0 0 12px;
  font-size: 14.5px;
}
.legal-intro p:last-child {
  margin-bottom: 0;
}

.legal-contact {
  background: linear-gradient(135deg, var(--navy), #0d3f9f);
  border-radius: 36px;
  padding: 34px 36px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  margin-top: 8px;
}
.legal-contact h3 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  margin: 0 0 8px;
}
.legal-contact p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 14px;
  max-width: 460px;
  line-height: 1.6;
}
.legal-contact a.mail {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .legal-card {
    padding: 24px 22px;
  }
  .legal-intro {
    padding: 22px 20px;
  }
  .legal-contact {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
