/* 152-ФЗ: галочка согласия в формах, подвал с реквизитами, страницы документов.
   Общие стили для лендингов; цвета сайта задаются переменными в его собственном CSS. */
:root {
  --legal-text: #2b2b2b;
  --legal-text-muted: #4d4d4d;
  --legal-footer-text: #9a9a9a;
  --legal-box-border: #bcbcbc;
  --legal-accent: #ffd568;
  --legal-accent-border: #e8b93a;
  --legal-accent-check: #2b2b2b;
  --legal-error: #d92d20;
  --legal-error-bg: #fdeceb;
  --legal-archive-bg: #fff6dc;
}

/* Галочка согласия */
.consent {
  margin: 12px 0 0;
  padding: 1px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  -webkit-transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.consent__label {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.consent__input {
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0;
  opacity: 0;
}

.consent__box {
  position: relative;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 1px solid var(--legal-box-border);
  border-radius: 4px;
  background-color: #fff;
  -webkit-transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.consent__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--legal-accent-check);
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  opacity: 0;
}

.consent__input:checked + .consent__box {
  border-color: var(--legal-accent-border);
  background-color: var(--legal-accent);
}

.consent__input:checked + .consent__box::after {
  opacity: 1;
}

.consent__input:focus-visible + .consent__box {
  outline: 2px solid var(--legal-text);
  outline-offset: 2px;
}

.consent__text {
  color: var(--legal-text-muted);
  font-size: 13px;
  line-height: 18px;
}

.consent__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent__error {
  padding: 0 0 6px 30px;
  color: var(--legal-error);
  font-size: 13px;
  line-height: 17px;
}

.consent--error {
  border-color: var(--legal-error);
  background-color: var(--legal-error-bg);
}

.consent--error .consent__box {
  border-color: var(--legal-error);
}

/* Пока галочка не отмечена — кнопка выглядит неактивной, но остаётся кликабельной */
form.consent-pending [type=submit] {
  opacity: 0.5;
}

/* Подвал: реквизиты и ссылки на документы */
.footer-legal {
  color: var(--legal-footer-text);
  font-size: 14px;
  line-height: 20px;
}

.footer-legal p {
  margin: 0;
}

.footer-legal__links {
  margin-top: 8px !important;
}

.footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (any-hover: hover) {
  .footer-legal a:hover {
    color: var(--legal-text-muted);
  }
}

@media (max-width: 576px) {
  .footer-legal {
    font-size: 12px;
    line-height: 18px;
  }
}

/* Страницы документов */
.legal-page {
  padding: 48px 0 64px;
}

.legal-doc {
  max-width: 820px;
  color: var(--legal-text);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.legal-doc h1 {
  margin-bottom: 16px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
}

.legal-doc h2 {
  margin: 32px 0 12px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.legal-doc h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.legal-doc p,
.legal-doc ul,
.legal-doc ol {
  margin: 0 0 12px;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 24px;
}

.legal-doc ul {
  list-style: disc;
}

.legal-doc ol {
  list-style: decimal;
}

.legal-doc li {
  margin-bottom: 4px;
  /* сброс стилей сайтов задаёт ul li { list-style: none } */
  list-style: inherit;
}

.legal-doc strong {
  font-weight: 600;
}

.legal-doc a {
  color: inherit;
  text-decoration: underline;
}

.legal-doc table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.legal-doc th,
.legal-doc td {
  padding: 8px 12px;
  border: 1px solid #dcdcdc;
  text-align: left;
  vertical-align: top;
  min-width: 110px;
  overflow-wrap: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.legal-doc th {
  background-color: #f6f6f6;
  font-weight: 600;
}

.legal-doc__archive {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: 6px;
  background-color: var(--legal-archive-bg);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 576px) {
  .legal-page {
    padding: 32px 0 48px;
  }

  .legal-doc {
    font-size: 15px;
  }

  .legal-doc h1 {
    font-size: 24px;
  }

  .legal-doc h2 {
    font-size: 19px;
  }
}
