/* Слои служебных и текстовых страниц: «Спасибо» (.ty-*), «404» (.nf-*),
   «Политика конфиденциальности» (.pg-*), «Пользовательское соглашение» (.terms-*).
   Префиксы не пересекаются — файл общий. Только раскладка, значения из токенов. */

/* ============ «Спасибо» ============ */
.ty-page{padding:var(--sp-16) 0;}
.ty-container{max-width:var(--container);margin:0 auto;padding:0 var(--gutter);box-sizing:border-box;}
.ty-hero{min-height:60vh;display:flex;flex-direction:column;align-items:center;
  justify-content:center;text-align:center;}
.ty-hero.is-compact{min-height:0;}
.ty-icon{width:96px;height:96px;border-radius:50%;background:var(--ok-soft);color:var(--ok);
  display:flex;align-items:center;justify-content:center;flex:none;margin-bottom:var(--sp-8);}
.ty-icon svg{width:44px;height:44px;display:block;}
.ty-text{margin-top:var(--sp-4);max-width:52ch;}
.ty-text a{white-space:nowrap;}
.ty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--sp-4);
  margin-top:var(--sp-8);width:100%;}
@media (max-width:767px){
  .ty-page{padding:var(--sp-12) 0;}
  .ty-icon{width:80px;height:80px;margin-bottom:var(--sp-6);}
  .ty-icon svg{width:36px;height:36px;}
  .ty-actions{flex-direction:column;align-items:stretch;margin-top:var(--sp-6);}
}

/* ============ «404» ============ */
.nf-page{padding:var(--sp-16) 0;}
.nf-container{max-width:var(--container);margin:0 auto;padding:0 var(--gutter);box-sizing:border-box;}
.nf-hero{min-height:60vh;display:flex;flex-direction:column;align-items:center;
  justify-content:center;text-align:center;}
.nf-hero.is-compact{min-height:0;}
/* Код «404» — декоративный display-элемент страницы ошибки (рецепт H1: гарнитура,
   вес, трекинг), кегль масштабируется от вьюпорта и не входит в текстовую шкалу. */
.nf-code{font:600 clamp(96px,19vw,208px)/.95 var(--font-display);letter-spacing:-.03em;color:var(--ink);}
.nf-waves{display:block;width:min(232px,56vw);height:auto;color:var(--accent);margin:var(--sp-4) 0 var(--sp-8);}
.nf-text{margin-top:var(--sp-4);max-width:52ch;}
.nf-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--sp-4);
  margin-top:var(--sp-8);width:100%;}
@media (max-width:767px){
  .nf-page{padding:var(--sp-12) 0;}
  .nf-waves{margin:var(--sp-3) 0 var(--sp-6);}
  .nf-actions{flex-direction:column;align-items:stretch;margin-top:var(--sp-6);}
}

/* ============ «Политика конфиденциальности» ============ */
.pg-pad{padding:var(--sp-16) var(--gutter);}
.pg-col{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:var(--sp-12);}
.pg-head{display:flex;flex-direction:column;gap:var(--sp-4);}
.pg-toc{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-6);
  background:var(--surface-2);border-radius:var(--radius);}
.pg-toc-title{text-transform:uppercase;letter-spacing:.06em;}
.pg-toc ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;
  gap:var(--sp-2);font:400 15px/1.5 var(--font-text);}
.pg-section{display:flex;flex-direction:column;gap:var(--sp-3);}
.pg-section[id]{scroll-margin-top:96px;}
/* Юридические документы (политика, согласие): заголовки разделов, абзацы, списки */
.pg-section h2{scroll-margin-top:96px;margin-top:var(--sp-6);}
.pg-section h2:first-child{margin-top:0;}
.pg-section p{font:400 16px/26px var(--font-text);color:var(--ink-2);margin:0;text-wrap:pretty;}
.pg-section ul{margin:0 0 var(--sp-2);padding-left:20px;display:flex;flex-direction:column;gap:var(--sp-2);}
.pg-section ul li{font:400 16px/26px var(--font-text);color:var(--ink-2);}
.pg-section ul li::marker{color:var(--muted-2);}
.pg-todo{background:var(--warn-soft);color:var(--warn);font:600 13px/1.4 var(--font-mono);
  padding:1px 6px;border-radius:var(--radius-xs);white-space:nowrap;}
@media (max-width:767px){
  .pg-pad{padding:var(--sp-12) var(--gutter);}
  .pg-section p,.pg-section ul li{font-size:15px;line-height:24px;}
}

/* ============ «Пользовательское соглашение» ============ */
.terms-page{padding:var(--sp-16) 0;}
.terms-col{max-width:760px;margin:0 auto;padding:0 var(--gutter);}
.terms-toc{margin:var(--sp-8) 0 0;padding:var(--sp-6);background:var(--surface-2);
  border-radius:var(--radius);}
.terms-toc ol{margin:var(--sp-3) 0 0;padding-left:20px;display:flex;flex-direction:column;gap:var(--sp-2);}
.terms-toc li{font:400 15px/1.5 var(--font-text);}
.terms-toc li::marker{color:var(--muted-2);font:500 14px/1 var(--font-mono);}
.terms-toc a{color:var(--accent-dark);text-decoration:underline;text-underline-offset:2px;
  text-decoration-thickness:1px;}
.terms-toc a:hover{color:var(--accent);}
.terms-section{padding-top:var(--sp-12);}
.terms-section .h3{scroll-margin-top:96px;}
.terms-section p{font:400 16px/26px var(--font-text);color:var(--ink-2);margin:var(--sp-4) 0 0;text-wrap:pretty;}
.terms-section ul{margin:var(--sp-4) 0 0;padding-left:20px;display:flex;flex-direction:column;gap:var(--sp-2);}
.terms-section ul li{font:400 16px/26px var(--font-text);color:var(--ink-2);}
.terms-section ul li::marker{color:var(--muted-2);}
.terms-num{color:var(--muted-2);font:600 inherit var(--font-display);}
.terms-todo{color:var(--muted);}
@media (max-width:767px){
  .terms-page{padding:var(--sp-12) 0;}
  .terms-section{padding-top:var(--sp-8);}
  .terms-section p,.terms-section ul li{font-size:15px;line-height:24px;}
}
