/* Подвал с реквизитами и документами, страницы документов, уведомление о cookie.
   Подключается после style.css и sections.css. */

/* ---- подвал: реквизиты и документы ---- */
.foot__legal { flex: 0 0 100%; display: grid; gap: 14px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: 12.5px; line-height: 1.6; color: var(--paper-2); }
.foot__legal p { margin: 0; }
.foot__req { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--paper-1); }
.foot__req i { margin-inline: 10px; font-style: normal; color: var(--chrome-lo); }
.foot__docs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__docs a, .foot__docs button { padding: 0; font: inherit; color: var(--paper-2); background: none; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 4px; transition: color 0.2s, text-decoration-color 0.2s; }
.foot__docs a:hover, .foot__docs button:hover { color: var(--paper-0); text-decoration-color: var(--chrome-mid); }
.foot__copy { color: var(--chrome-lo); }

/* ---- страницы документов ---- */
.page .page-head h1.page-title.page-title--doc { max-width: 24ch; font-size: clamp(28px, 3.2vw, 46px); }
.page-head--doc { padding-bottom: clamp(28px, 4vw, 56px); }
.legal { max-width: 78ch; }
.legal h2 { margin-top: 40px; font-size: clamp(20px, 2vw, 26px); }
.legal table { margin-top: 18px; }
.legal th, .legal td { padding-right: 18px; }
@media (max-width: 640px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { position: absolute; left: -9999px; }
  .legal tr { padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .legal td { padding: 3px 0; border: 0; }
}

/* ---- уведомление о cookie ---- */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 90; width: min(420px, calc(100vw - 32px)); padding: 20px 22px 22px; border: 1px solid var(--hair-strong); background: rgba(14, 15, 18, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); opacity: 0; transform: translateY(14px); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.cookie.is-in { opacity: 1; transform: none; }
.cookie::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--chrome-hi), transparent); opacity: 0.7; }
.cookie__tick { position: absolute; width: 9px; height: 9px; border: 1px solid var(--chrome-lo); background: var(--ink-0); }
.cookie__tick--tl { left: -5px; top: -5px; }
.cookie__tick--br { right: -5px; bottom: -5px; }
.cookie__label { margin: 0 0 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-2); }
.cookie__text { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--paper-1); }
.cookie__text a { color: var(--paper-0); text-decoration: underline; text-decoration-color: var(--chrome-lo); text-underline-offset: 3px; }
.cookie__text a:hover { text-decoration-color: var(--paper-0); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie .cookie__btn { padding: 11px 18px; font-size: 13px; cursor: pointer; }
@media (max-width: 640px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 18px; }
  .cookie__actions .cookie__btn { flex: 1 1 auto; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie { transition: opacity 0.2s; transform: none; }
}

/* пометка о согласии рядом с кнопками связи */
.legal-note { max-width: 52ch; margin: 28px auto 0; font-size: 12.5px; line-height: 1.6; color: var(--paper-2); }
.legal-note a { color: var(--paper-1); text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 3px; }
.legal-note a:hover { color: var(--paper-0); text-decoration-color: var(--chrome-mid); }
