/* Стили для юридических страниц (privacy, consent) и расширенного футера */

/* === Футер с реквизитами === */
.footer__legal {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(55, 106, 155, 0.15);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  text-align: left;
}

.footer__legal-block h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #376a9b;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.footer__legal-block p,
.footer__legal-block li {
  font-size: 13px;
  line-height: 1.55;
  color: #2a4d6c;
  margin: 0 0 4px;
}

.footer__legal-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__legal-block a {
  color: #376a9b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal-block a:hover {
  color: #1f4870;
}

.footer__copyright {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(55, 106, 155, 0.1);
  font-size: 12px;
  color: #5a7894;
  text-align: center;
}

/* === Юридические страницы (privacy, consent) === */
.legal-page {
  background: #fff;
  color: #1a1a1a;
  font-family: 'GillSans', Arial, sans-serif;
  line-height: 1.65;
}

.legal-page__container {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 24px 64px;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 600;
  color: #376a9b;
  margin: 0 0 8px;
  line-height: 1.25;
}

.legal-page__subtitle {
  font-size: 15px;
  color: #5a7894;
  margin: 0 0 40px;
}

.legal-page h2 {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 40px 0 16px;
  line-height: 1.3;
}

.legal-page h3 {
  font-size: 17px;
  font-weight: 600;
  color: #376a9b;
  margin: 28px 0 12px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page strong {
  font-weight: 600;
  color: #0d2740;
}

.legal-page a {
  color: #376a9b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: #376a9b;
  text-decoration: none;
}

.legal-page__back::before {
  content: "← ";
}

.legal-page__back:hover {
  text-decoration: underline;
}

.legal-page__meta {
  margin-top: 48px;
  padding: 16px 20px;
  background: #f4f8fb;
  border-left: 3px solid #376a9b;
  font-size: 13px;
  color: #2a4d6c;
}

@media (max-width: 640px) {
  .legal-page__container {
    padding: 56px 18px 48px;
  }
  .legal-page h1 {
    font-size: 26px;
  }
  .legal-page h2 {
    font-size: 19px;
  }
}

/* === Чекбокс согласия на форме === */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 13px;
  color: #2a4d6c;
  line-height: 1.5;
}

.form__consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #376a9b;
  flex-shrink: 0;
}

.form__consent label {
  cursor: pointer;
}

.form__consent a {
  color: #376a9b;
  text-decoration: underline;
}

/* honeypot — невидимое поле */
.form__hp {
  position: absolute;
  left: -10000px;
  top: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
