/* ============================================================
   SOUPRRR — политика конфиденциальности
   Макеты: 1920 (76:846), 1440 (76:1024), 768 (76:1122), 375 (76:1217)
   ============================================================ */

/* --- Шапка (76:853 / 76:1025 / 76:1123 / 76:1218) ----------
   Отличается от главной: снизу разделитель 1px «Чёрный 10%».
   Подпор снизу 20px на 1920/1440 и 16px на 768/375.           */
.phead {
  flex: none;
  width: 100%;
  padding: 20px var(--gutter) 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page--policy .brand { margin-top: 0; }

.doc {
  flex: none;
  width: calc(100% - var(--gutter) * 2);
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Кнопка «Вернуться на главную» (76:982) ---------------- */
.back {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.back__icon {
  flex: none;
  width: 22px;
  height: 22px;
  transition: transform .2s ease;
}

.back:hover,
.back:focus-visible { color: var(--color-teal); }

.back:hover .back__icon { transform: translateX(-3px); }

/* --- Текст политики (76:988) ------------------------------- */
.doc__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.doc__intro,
.doc__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* В документе разделы отбиты горизонтальной чертой */
.doc__section {
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, .1);
}

.doc__date { color: rgba(0, 0, 0, .55); }

.doc__title {
  margin: 0;
  font-size: 30px;                /* 1920/Headlines/H2 bold */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.doc__subtitle {
  margin: 0;
  font-size: 24px;                /* 1920/Headlines/H3 bold (SemiBold) */
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Подпункт 2.1 — своего размера в макете нет, берём ступень ниже H3 */
.doc__subsubtitle {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.doc p {
  font-size: 16px;                /* Text 4 reg */
  font-weight: 400;
  line-height: 1.4;
}

.doc b { font-weight: 600; }

/* В макете ссылки в тексте не подчёркнуты — подчёркивание появляется
   только по наведению. */
.doc a {
  text-decoration: none;
  transition: color .2s ease;
}

.doc__body a:hover,
.doc__body a:focus-visible {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-position: from-font;
}

.doc__list {
  margin: 0;
  padding: 0;
  list-style: disc;
}

.doc__list li {
  margin-inline-start: 27px;
  font-size: 16px;
  line-height: 1.4;
}

/* ============================================================
   ≥768 — макет 768
   ============================================================ */
@media (min-width: 768px) {
  .doc {
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .doc__title { font-size: 32px; }
}

/* ============================================================
   ≥1024 — макет 1440: шапка уходит в абсолют, подвала нет
   ============================================================ */
@media (min-width: 1024px) {
  /* На 1920/1440 в шапке рядом с логотипом стоят контакты и правовой
     блок (.bar спозиционирован абсолютно поверх этой строки). */
  .phead {
    padding-bottom: 20px;
    justify-content: center;
  }

  /* Логотип остаётся в потоке — им задаётся высота шапки с разделителем */
  .page--policy .brand {
    position: static;
    transform: none;
    margin: 0;
  }

  .doc {
    margin-top: 32px;
    margin-bottom: 20px;
  }

  .doc__body { gap: 32px; }

  .doc__section { padding-top: 32px; }
}

/* ============================================================
   ≥1441 — макет 1920
   ============================================================ */
@media (min-width: 1441px) {
  .back {
    gap: 16px;
    font-size: 18px;
  }

  .back__icon {
    width: 26px;
    height: 26px;
  }

  .doc__title { font-size: 36px; }
  .doc__subsubtitle { font-size: 20px; }

  .doc p,
  .doc__list li { font-size: 18px; }
}
