/* =========================================================
   Legal / contacts subpages — extends landing_new styles
   ========================================================= */

.page--legal {
  padding-top: var(--nav-height, 88px);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 172, 159, 0.16), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(197, 220, 174, 0.14), transparent 30%),
    var(--bg);
  min-height: 100vh;
}

.page--legal .section-inner--narrow {
  max-width: 940px;
}

/* ---------- Hero (compact) ---------- */

.legal-hero {
  position: relative;
  z-index: 1;
  padding: 24px 0 12px;
  text-align: center;
}

.legal-hero__title {
  margin: 0 auto 10px;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.legal-hero__lead {
  margin: 0 auto;
  max-width: 46ch;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
  color: rgba(40, 29, 20, 0.72);
}

.legal-section {
  position: relative;
  z-index: 1;
  padding: 4px 0 120px;
}

.legal-card {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(72, 46, 24, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 28px rgba(69, 46, 24, 0.08);
}

/* ---------- Prose ---------- */

.legal-prose {
  color: rgba(25, 20, 17, 0.88);
  font-size: 17px;
  line-height: 1.75;
  text-align: left;
}

.legal-prose > *:first-child {
  margin-top: 0;
}

.legal-prose > *:last-child {
  margin-bottom: 0;
}

.legal-prose h2 {
  margin: 48px 0 16px;
  scroll-margin-top: calc(var(--nav-height, 88px) + 16px);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal-prose h2:first-of-type {
  margin-top: 28px;
}

.legal-prose h3 {
  margin: 28px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-prose p {
  margin: 0 0 18px;
}

.legal-prose ul,
.legal-prose ol {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}

.legal-prose ul li,
.legal-prose ol li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 1.45em;
}

.legal-prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(48, 35, 26, 0.45);
}

.legal-prose ol {
  counter-reset: legal-ol;
}

.legal-prose ol li {
  counter-increment: legal-ol;
}

.legal-prose ol li::before {
  content: counter(legal-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: rgba(40, 29, 20, 0.5);
}

.legal-prose li:last-child {
  margin-bottom: 0;
}

.legal-prose a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: rgba(25, 20, 17, 0.72);
}

.legal-meta {
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(72, 46, 24, 0.1);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(40, 29, 20, 0.62);
}

.legal-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 4px 0 8px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(246, 239, 232, 0.95);
  border: 1px solid rgba(72, 46, 24, 0.1);
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(69, 46, 24, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.legal-email::before {
  content: "@";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(48, 35, 26, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.legal-email:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 10px 22px rgba(69, 46, 24, 0.1);
  color: var(--ink) !important;
}

/* ---------- Important info boxes ---------- */

.legal-infobox {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.95), rgba(236, 247, 228, 0.75));
  border: 1px solid rgba(72, 46, 24, 0.1);
  box-shadow: 0 8px 20px rgba(69, 46, 24, 0.05);
}

.legal-infobox__mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 0;
  border-radius: 50%;
  background: rgba(48, 35, 26, 0.9);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.legal-infobox__text {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(25, 20, 17, 0.92);
}

/* ---------- Requisites card ---------- */

.legal-requisites {
  margin: 8px 0 0;
  padding: 28px 28px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 213, 128, 0.28), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(197, 220, 174, 0.28), transparent 36%),
    #fffaf3;
  border: 1px solid rgba(72, 46, 24, 0.1);
  box-shadow: 0 10px 24px rgba(69, 46, 24, 0.06);
}

.legal-requisites__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-dl {
  margin: 0;
  display: grid;
  gap: 16px;
}

.legal-dl__row {
  display: grid;
  grid-template-columns: minmax(130px, 170px) 1fr;
  gap: 6px 18px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(72, 46, 24, 0.08);
}

.legal-dl__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-dl__row dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(40, 29, 20, 0.5);
}

.legal-dl__row dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: rgba(25, 20, 17, 0.92);
  white-space: pre-line;
}

.legal-dl__row dd a {
  color: inherit;
  text-decoration: none;
}

.legal-dl__row dd .legal-email {
  margin: 0;
}

/* ---------- End CTA ---------- */

.legal-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
  margin-bottom: 28px;
  padding: 14px 24px 16px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 213, 128, 0.3), transparent 40%),
    radial-gradient(circle at 82% 80%, rgba(216, 238, 255, 0.45), transparent 42%),
    #fff7ef;
  border: 1px solid rgba(72, 46, 24, 0.08);
}

.legal-cta__title {
  margin: 0 auto 10px;
  scroll-margin-top: 0;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
}

.legal-prose .legal-cta__title {
  margin: 0 auto 10px;
  scroll-margin-top: 0;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.legal-cta__text {
  margin: 0 auto 30px;
  max-width: 36ch;
  width: 100%;
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(40, 29, 20, 0.72);
  text-align: center;
}

.legal-cta .cta {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  background: #0c0c0c;
  color: #fff;
}

.legal-cta .cta__label {
  color: #fff;
  text-align: center;
}

.legal-cta .cta:hover {
  background: #171717;
  color: #fff;
}

/* ---------- Contacts cards ---------- */

.contacts-panel {
  margin-top: 18px;
  padding: 26px 26px 22px;
}

.contacts-panel__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contacts-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(246, 239, 232, 0.62);
  border: 1px solid rgba(72, 46, 24, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

a.contacts-card {
  text-decoration: none;
  color: inherit;
}

a.contacts-card:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 8px 18px rgba(69, 46, 24, 0.07);
}

.contacts-card__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  color: rgba(48, 35, 26, 0.78);
  border: 1px solid rgba(72, 46, 24, 0.06);
}

.contacts-card__icon svg {
  width: 18px;
  height: 18px;
}

.contacts-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contacts-card__label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(40, 29, 20, 0.46);
}

.contacts-card__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.15vw, 15.5px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contacts-card--static {
  background: rgba(255, 255, 255, 0.72);
  border-style: solid;
}

/* ---------- Contact write form ---------- */

.contact-write {
  margin-top: 0;
}

.contact-write--primary {
  padding: 40px 40px 36px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 36px rgba(69, 46, 24, 0.1);
}

.contact-write__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
}

.contact-write__lead {
  margin: 0 auto 24px;
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(40, 29, 20, 0.7);
  text-align: center;
}

.contact-write__form {
  max-width: 480px;
  margin: 0 auto;
  gap: 14px;
}

.contact-write__submit {
  width: 100%;
  max-width: 400px;
  height: 56px;
  min-height: 56px;
  margin: 4px auto 0;
  padding: 0 24px;
  font-size: 17px;
}

.contact-write__trust {
  margin: 6px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(40, 29, 20, 0.7);
}

.dyt-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(48, 35, 26, 0.12);
  background: #fff;
  color: rgba(25, 20, 17, 0.92);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dyt-textarea::placeholder {
  color: rgba(48, 35, 26, 0.42);
  opacity: 1;
}

.dyt-textarea:focus {
  outline: none;
}

.dyt-textarea:focus-visible {
  border-color: rgba(48, 35, 26, 0.28);
  box-shadow: 0 0 0 3px rgba(200, 155, 99, 0.22);
}

.contact-write__status {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15.5px;
  line-height: 1.5;
  text-align: center;
}

.contact-write__status--ok {
  background: rgba(197, 220, 174, 0.35);
  color: rgba(25, 20, 17, 0.88);
}

.contact-write__status--error {
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
  font-weight: 600;
}

@media (max-width: 720px) {
  .legal-hero {
    padding: 18px 0 10px;
  }

  .legal-section {
    padding-bottom: 88px;
  }

  .legal-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .legal-prose {
    font-size: 16px;
    line-height: 1.7;
  }

  .legal-prose h2 {
    margin-top: 36px;
    font-size: clamp(22px, 6vw, 26px);
  }

  .legal-email {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
    font-size: 16px;
  }

  .legal-infobox {
    padding: 16px;
  }

  .legal-infobox__text {
    font-size: 15.5px;
  }

  .legal-requisites {
    padding: 22px 18px;
  }

  .legal-dl__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-cta {
    margin-top: 36px;
    margin-bottom: 24px;
    padding: 14px 16px 16px;
  }

  .legal-cta__text {
    margin-bottom: 28px;
    max-width: 34ch;
    font-size: 16px;
  }

  .legal-cta .cta {
    max-width: min(360px, 100%);
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contacts-panel {
    padding: 20px 16px 18px;
  }

  .contacts-card {
    padding: 11px 12px;
  }

  .contact-write--primary {
    padding: 28px 20px 24px;
  }

  .contact-write__submit {
    max-width: 100%;
  }

  .contact-write__trust {
    font-size: 14.5px;
  }
}
