/* Юридические страницы: privacy.html, consent.html, adv.html. Подключается после main.css. v1.0 · 23.10.2026 */

.legal {
  padding: 48px 0 32px;
  color: #303030;
}

.legal__container {
  max-width: 832px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.legal__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.legal .legal__docs a,
.legal .legal__docs span {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid #d6e3ea;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.3;
  color: #303030;
  text-decoration: none;
}

.legal .legal__docs a:hover {
  border-color: #f84644;
  color: #f84644;
}

.legal__docs span {
  background: #deeef5;
  border-color: #deeef5;
}

.legal h1 {
  font-family: 'ProximaNovaBold', sans-serif;
  font-size: 36px;
  line-height: 1.15;
  text-transform: none;
  text-align: left;
  margin: 0 0 12px;
}

.legal h2 {
  font-family: 'ProximaNovaBold', sans-serif;
  font-size: 21px;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
  margin: 40px 0 14px;
  scroll-margin-top: 16px;
}

.legal h3 {
  font-family: 'ProximaNovaBold', sans-serif;
  font-size: 17px;
  line-height: 1.35;
  margin: 24px 0 10px;
}

.legal p,
.legal li,
.legal td,
.legal th {
  font-size: 17px;
  line-height: 1.6;
}

.legal p {
  margin: 0 0 12px;
}

.legal ul,
.legal ol {
  margin: 0 0 14px;
  padding: 0 0 0 24px;
}

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

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

.legal li {
  margin: 0 0 6px;
  padding: 0;
}

.legal a {
  color: #f84644;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  line-height: inherit;
}

.legal a:hover {
  color: #de312f;
}

.legal strong {
  font-weight: 500;
}

.legal__meta {
  color: #6b7a83;
}

.legal p.legal__meta {
  font-size: 15px;
  margin: 0 0 24px;
}

.legal__box {
  background: #f3f8fb;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 24px;
}

.legal__box > :last-child {
  margin-bottom: 0;
}

.legal__toc ol {
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

.legal__toc li {
  break-inside: avoid;
}

.legal__toc p {
  font-family: 'ProximaNovaBold', sans-serif;
  margin: 0 0 8px;
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
}

.legal__table th,
.legal__table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid #e3ebef;
  font-size: 15px;
  line-height: 1.5;
}

.legal__table th {
  font-weight: 500;
  background: #f3f8fb;
}

.legal__table code {
  font-family: Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.legal__sign {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e3ebef;
}

/* Блок контактов внизу страниц: заголовок меньше h1 */
.legal-page .contacts {
  padding: 48px 0 40px;
  border-top: 1px solid #e3ebef;
}

.legal-page .contacts h2 {
  font-size: 26px;
}

.legal-page .contacts__tel {
  font-size: 30px;
  margin: 24px 0 16px;
}

.legal-page .contacts__address {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .legal {
    padding: 32px 0 24px;
  }

  .legal h1 {
    font-size: 26px;
  }

  .legal h2 {
    font-size: 19px;
    margin: 32px 0 12px;
  }

  .legal p,
  .legal li {
    font-size: 16px;
  }

  .legal__box {
    padding: 16px;
  }

  .legal__toc ol {
    columns: 1;
  }

  /* Таблицы на телефоне — карточками: подпись колонки из data-label */
  .legal__table thead {
    display: none;
  }

  .legal__table,
  .legal__table tbody,
  .legal__table tr,
  .legal__table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .legal__table tr {
    border: 1px solid #e3ebef;
    border-radius: 10px;
    margin: 0 0 12px;
    padding: 6px 0;
  }

  .legal__table td {
    border: 0;
    padding: 6px 14px;
  }

  .legal__table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    color: #6b7a83;
  }

  .legal-page .contacts h2 {
    font-size: 22px;
  }

  .legal-page .contacts__tel {
    font-size: 24px;
  }
}

/* ===== Шапка, плавающая шапка, меню и подвал — как на главной (index.php) ===== */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-bold.ttf') format('truetype');
  font-weight: 600 800;
  font-display: swap;
}

.lp-header__top {
  padding: 28px max(15px, calc((100% - 990px) / 2)) 24px;
  background: linear-gradient(180deg, #f7fafb, #eef4f6);
}

.lp-header__logo img,
.lp-bar__logo img {
  display: block;
  width: 263px;
  height: auto;
}

.lp-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  transform: translateY(-110%);
  transition: transform .25s ease-out;
}

.lp-bar.is-on {
  transform: translateY(0);
}

.lp-bar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
  padding: 0 32px 0 max(15px, calc((100% - 990px) / 2));
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 12px rgba(0, 0, 0, .1);
}

.lp-bar__phone {
  margin-left: auto;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.5px;
  color: #293a44;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
}

.lp-bar__phone:hover {
  color: #f84644;
}

.lp-bar__phone .fa {
  display: none;
}

.lp-bar__burger {
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: url(../img/burger-menu.svg) no-repeat center / 30px 30px;
  cursor: pointer;
}

.lp-bar.is-menu .lp-bar__burger {
  background-image: url(../img/close.svg);
}

.lp-menu {
  display: none;
  position: absolute;
  top: 62px;
  right: 16px;
  width: 360px;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.lp-bar.is-menu .lp-menu {
  display: block;
}

.lp-menu li {
  border-bottom: 1px solid rgba(41, 58, 68, .08);
}

.lp-menu li:last-child {
  border-bottom: none;
}

.lp-menu a {
  display: block;
  padding: 13px 22px;
  font-family: 'Roboto', sans-serif;
  font-size: 19px;
  color: #293a44;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}

.lp-menu a:hover,
.lp-menu a:focus-visible {
  background: rgba(248, 70, 68, .08);
  color: #f84644;
  outline: none;
}

@media (max-width: 576px) {
  .lp-header__top {
    padding: 25px 15px 20px;
  }

  .lp-header__logo img,
  .lp-bar__logo img {
    width: min(224px, 57vw);
  }

  .lp-bar__inner {
    gap: 8px;
    padding: 0 15px;
  }

  .lp-bar__phone span {
    display: none;
  }

  .lp-bar__phone .fa {
    display: block;
    font-size: 36px;
    color: #f84644;
  }

  .lp-bar__burger {
    width: 34px;
    height: 34px;
    background-size: 34px 34px;
  }

  .lp-menu {
    right: 0;
    left: 0;
    width: auto;
    border-radius: 0;
  }

  .lp-menu a {
    padding: 14px 15px;
    font-size: 20px;
  }
}

.legal-page .contacts__ask {
  margin-top: 24px;
  font-size: 18px;
  color: #303030;
}

.legal-page .contacts__ask + .contacts__tel {
  margin-top: 6px;
}

.legal-page .footer {
  padding: 28px 0 18px;
  text-align: center;
}

.legal-page .footer .footer__copy {
  margin-bottom: 8px;
}

.legal-page .footer .footer__link {
  color: #657784;
  text-decoration: underline;
  text-decoration-color: rgba(101, 119, 132, .4);
  text-underline-offset: 3px;
}

.legal-page .footer .footer__link:hover {
  color: #293a44;
}

/* Страница 404 */
.legal--404 {
  padding: 64px 0 96px;
  text-align: center;
}

.legal--404 h1 {
  margin-bottom: 16px;
}

.nf__code {
  margin: 0 0 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 96px;
  line-height: 1;
  color: #f84644;
}

.nf__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
}

.nf__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  font-family: 'Manrope', 'Roboto', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .12s ease, transform .12s ease;
}

.nf__phone {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #303030;
  text-decoration: none;
}

.nf__phone:hover {
  color: #f84644;
}

@media (max-width: 576px) {
  .nf__code {
    font-size: 72px;
  }
}

/* 404: перекрываем общие стили документов (выравнивание, цвет ссылок, размер абзацев) */
.legal.legal--404 h1 {
  text-align: center;
}

.legal.legal--404 .nf__code {
  font-size: 96px;
  margin-bottom: 8px;
}

.legal.legal--404 a.nf__btn,
.legal.legal--404 a.nf__btn:hover {
  color: #fff;
  text-decoration: none;
}

.legal.legal--404 a.nf__phone {
  color: #303030;
  text-decoration: none;
}

.legal.legal--404 a.nf__phone:hover {
  color: #f84644;
}

@media (max-width: 576px) {
  .legal.legal--404 .nf__code {
    font-size: 72px;
  }
}
