/* Кадры будущего. Страница политики обработки персональных данных: карточка-шапка документа и типографика текста.
   Общее (шрифты, токены, база, шапка, футер) в main.css, подключать его первым. */

.policy-page { max-width: var(--container); margin: 0 auto; padding: 28px var(--gutter) 60px; display: flex; flex-direction: column; gap: 16px; }

.doc-hero {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  background: var(--c-ink); color: #fff; padding: 36px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 260px;
}
.doc-hero .watermark { position: absolute; right: -150px; bottom: -130px; width: 420px; height: 386px; fill: rgba(255,255,255,.06); pointer-events: none; }
.doc-hero .kicker { position: relative; }
.doc-hero__body { position: relative; }
.h1 { font-weight: 700; font-size: clamp(32px, 3.6vw, 52px); line-height: .96; letter-spacing: -1.5px; color: #fff; max-width: 900px; }
.doc-hero__meta { font-weight: 300; font-size: 18px; line-height: 1.4; color: var(--c-pink-text); margin-top: 18px; max-width: 720px; }

.doc {
  background: var(--c-surface); border-radius: var(--r-card); padding: var(--pad-card);
}
.doc__inner { max-width: 820px; }
.doc h2 { font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -.5px; margin: 40px 0 14px; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc h2 .num { margin-right: 10px; }
.doc h3 { font-weight: 700; font-size: 17px; line-height: 1.3; margin: 22px 0 8px; }
.doc p { font-size: 17px; line-height: 1.5; margin: 0 0 12px; }
.doc ul, .doc ol { font-size: 17px; line-height: 1.5; margin: 0 0 12px; padding-left: 24px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--c-magenta-2); }
.doc .muted { color: var(--c-text-muted); font-size: 14px; }
.doc a { text-decoration: underline; text-decoration-color: rgba(204,14,129,.35); text-underline-offset: 2px; }

.toc { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc li { margin: 0; }
.toc a {
  display: inline-block; font-size: 14px; line-height: 1.2; color: var(--c-ink); background: var(--c-bg);
  border-radius: 999px; padding: 9px 14px; text-decoration: none; transition: var(--t-fast);
}
.toc a:hover { background: var(--c-surface-pink); color: var(--c-magenta-2); }

.box { background: var(--c-bg); border-radius: 24px; padding: 18px 20px; margin: 0 0 14px; }
.box--pink { background: var(--c-surface-pink); }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; margin: 0 0 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--c-divider); }
th { font-weight: 700; color: var(--c-text-muted); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; border-top: 0; }
tr:last-child td { border-bottom: 1px solid var(--c-divider); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 14px; }
.table-wrap table { margin: 0; min-width: 560px; }

.req { padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.req > div { margin: 0; font-size: 16px; line-height: 1.45; }
.req dt { font-weight: 400; font-size: 13px; color: var(--c-text-muted); }
.req dd { margin: 0; }

@media (max-width: 767px) {
  .policy-page { padding-top: 16px; padding-bottom: 40px; }
  .doc-hero { padding: 28px 24px; min-height: 0; gap: 28px; }
  .doc-hero .watermark { width: 300px; height: 275px; right: -110px; bottom: -100px; }
  .h1 { letter-spacing: -1px; }
  .doc-hero__meta { font-size: 16px; }
  .doc h2 { font-size: 21px; margin-top: 32px; }
  .doc p, .doc ul, .doc ol { font-size: 16px; }
  .req { grid-template-columns: 1fr; }
}

/* Таблицы на телефоне: стеком, подпись столбца из data-label */
@media (max-width: 767px) {
  .table-wrap { overflow: visible; }
  .table-wrap table { min-width: 0; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border-top: 1px solid var(--c-divider); padding: 10px 0; }
  tr:last-child { border-bottom: 1px solid var(--c-divider); }
  tr:last-child td { border-bottom: 0; }
  td { border: 0; padding: 4px 0; }
  td::before { content: attr(data-label); display: block; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 2px; }
}
