/* ============================================================
   legal.css — 152-ФЗ: чекбокс согласия, cookie-баннер,
   документы в модалках. Палитра — design.md (Deep Green).
   ============================================================ */

/* ── Чекбокс согласия на обработку ПДн ────────────────────── */
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 16px; cursor: pointer;
  font-size: 12px; line-height: 1.5; color: var(--text-muted);
}
.consent__input {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden;
}
.consent__box {
  position: relative; flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 1px;
  border: 1.5px solid #CBD3CB; border-radius: 5px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.consent__box::after {
  content: ""; width: 9px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); margin-top: -2px;
  transition: transform .15s ease;
}
.consent__input:checked + .consent__box {
  background: var(--green-500); border-color: var(--green-500);
}
.consent__input:checked + .consent__box::after { transform: rotate(-45deg) scale(1); }
.consent__input:focus-visible + .consent__box {
  outline: 2px solid var(--green-400); outline-offset: 2px;
}
.consent--error .consent__box {
  border-color: #C0453B; background: rgba(192, 69, 59, .07);
}
.consent__text a {
  color: var(--green-500); text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer;
}
.consent__text a:hover { color: var(--green-600); }

/* ── Cookie-баннер (мягкий) ──────────────────────────────── */
.cookie[hidden] { display: none; }
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 16px 24px;
  background: var(--green-900); color: var(--white-85);
  box-shadow: 0 -12px 32px rgba(8, 21, 13, .28);
  border-top: 1px solid var(--line-dark);
}
.cookie__text { max-width: 820px; font-size: 13px; line-height: 1.55; }
.cookie__text a { color: var(--green-400); text-decoration: underline; cursor: pointer; }
.cookie__actions { flex-shrink: 0; }
.cookie__btn {
  height: 40px; padding: 0 24px; border: 0; cursor: pointer;
  border-radius: var(--radius-pill);
  font: 600 13px/1 var(--font-sans); color: #fff;
  background: var(--green-500); transition: background .2s ease;
}
.cookie__btn:hover { background: var(--green-600); }

@media (max-width: 700px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 18px; }
  .cookie__text { max-width: none; font-size: 12.5px; }
  .cookie__btn { width: 100%; height: 44px; }
}

/* ── Документы в модалках ────────────────────────────────── */
.modal-content--doc { max-width: 780px; padding: 44px 40px; }
.doc { font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
.doc h2 {
  font-size: 22px; line-height: 1.25; font-weight: 800;
  letter-spacing: -0.01em; color: var(--text-dark); margin-bottom: 16px;
}
.doc h3 {
  font-size: 14.5px; font-weight: 700; color: var(--text-dark);
  margin: 22px 0 8px;
}
.doc p { margin: 0 0 11px; }
.doc p:last-child { margin-bottom: 0; }
.doc a { color: var(--green-500); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 600px) {
  .modal-content--doc { padding: 30px 20px; }
  .doc { font-size: 13px; }
  .doc h2 { font-size: 19px; }
}

/* ── Модалка «Спасибо» и поля квиза ──────────────────────── */
.modal-content--thanks { text-align: center; padding-top: 44px; }
.thanks__icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green-050); color: var(--green-500);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.modal-content--thanks p { color: var(--text-muted); }
.quiz__phone { margin-top: 20px; }
.lead-btn-success { background: var(--green-600); }
