/* Политика и тексты согласий: длинный текст в рамке лендинга (подключается после landing.css).
   Сначала телефон: таблицы складываются в столбик, на широком экране — обычные таблицы. */

.pending {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: #fff1b8;
  font-size: 15px;
  line-height: 1.4;
}

.doc {
  padding-top: 32px;
  padding-bottom: 56px;
  overflow-wrap: break-word;
}

.doc h1 {
  font-size: clamp(26px, 6.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.doc-edition {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.doc h2 {
  margin: 40px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.doc p,
.doc ul {
  margin: 0 0 14px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc a {
  color: var(--blue);
}

.doc dfn {
  font-style: normal;
  font-weight: 600;
}

.doc .num {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Таблица на телефоне: каждая строка — блок, перед значением подпись столбца */
.doc table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.doc thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.doc tr {
  display: block;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
}

.doc td {
  display: block;
  padding: 0;
}

.doc td + td {
  margin-top: 10px;
}

.doc td::before {
  content: attr(data-label);
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.doc td:first-child {
  font-weight: 600;
}

.doc td:first-child::before {
  font-weight: 400;
}

.doc-back {
  margin-top: 32px;
  font-size: 15px;
}

@media (min-width: 760px) {
  .doc {
    padding-top: 48px;
    padding-bottom: 80px;
  }

  .doc thead {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
  }

  .doc tr {
    display: table-row;
    background: none;
  }

  .doc th,
  .doc td {
    display: table-cell;
    padding: 12px 14px 12px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
  }

  .doc td + td {
    margin-top: 0;
  }

  .doc th {
    border-bottom-color: var(--graphite);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
  }

  .doc td::before {
    content: none;
  }
}
