/* Шрифт со своего сервера, персональные данные: документы, плашка cookie, настройки cookie, согласие в форме.
   z-index окон ниже 9999: поверх них должен оставаться свой курсор сайта (по этой же причине нет <dialog>). */

@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-cyrillic-opsz-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-latin-opsz-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Документы */
.privacy-page { padding-top: 140px; padding-bottom: 100px; min-height: 100vh; }
.privacy-content { max-width: 800px; margin: 0 auto; }
.privacy-content h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.privacy-content .last-updated { font-size: 13px; color: rgba(255,255,255,0.3); margin-bottom: 48px; letter-spacing: 0.5px; }
.privacy-content h2 { font-size: 22px; font-weight: 500; margin-top: 48px; margin-bottom: 16px; letter-spacing: -0.02em; }
.privacy-content h3 { font-size: 17px; font-weight: 500; margin-top: 32px; margin-bottom: 12px; color: rgba(255,255,255,0.9); }
.privacy-content p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.privacy-content ul { list-style: none; padding: 0; margin: 0 0 24px 0; }
.privacy-content ul li { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.6); padding-left: 20px; position: relative; margin-bottom: 8px; }
.privacy-content ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 1px; background: rgba(255,255,255,0.3); }
.privacy-content strong { color: rgba(255,255,255,0.8); font-weight: 500; }
.privacy-content a { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,0.2); transition: text-decoration-color 0.2s; }
.privacy-content a:hover { text-decoration-color: rgba(255,255,255,0.6); }
.privacy-content .btn { text-decoration: none; }
.privacy-content a.btn-primary { color: #000000; }
.privacy-content .highlight-box { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; padding: 28px 32px; margin: 32px 0; }
.privacy-content .highlight-box p { margin-bottom: 8px; }
.privacy-content .highlight-box p:last-child { margin-bottom: 0; }
.privacy-content .doc-action { margin: 24px 0 8px; }
.privacy-content code { font-size: 13px; color: rgba(255,255,255,0.8); overflow-wrap: anywhere; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 40px; transition: color 0.2s; }
.privacy-content a.back-link { color: rgba(255,255,255,0.5); text-decoration: none; }
.privacy-content a.back-link:hover { color: #ffffff; }
.back-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.table-scroll { margin: 0 0 24px; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cookie-table th { text-align: left; font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.4); padding: 0 16px 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cookie-table td { padding: 14px 16px 14px 0; vertical-align: top; line-height: 1.5; color: rgba(255,255,255,0.6); border-bottom: 1px solid rgba(255,255,255,0.06); }

/* Подвал: документы */
.legal-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-left: 40px; padding-right: 40px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-links a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.legal-links a:hover { color: #ffffff; }

/* Форма: согласие */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { font-size: 13px; color: rgba(255,255,255,0.4); margin: -8px 0 24px; }
.form-consent { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.6); }
.form-consent a, .form-notice a { color: #ffffff; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.3); }
.form-notice { font-size: 12px; line-height: 1.55; color: rgba(255,255,255,0.4); margin-bottom: 24px; }

.privacy-check { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1px solid rgba(255,255,255,0.3); border-radius: 6px; background: rgba(255,255,255,0.03); transition: background-color 0.2s, border-color 0.2s; }
.privacy-check:checked { background: #ffffff center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); border-color: #ffffff; }
.privacy-check:focus-visible, .cookie-banner a:focus-visible, .cookie-banner button:focus-visible, .cookie-modal a:focus-visible, .cookie-modal button:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

/* Плашка cookie */
.cookie-banner { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9000; width: min(760px, calc(100vw - 32px)); padding: 24px 28px; background: rgba(10,10,10,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.12); border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.cookie-banner[hidden], .cookie-modal[hidden], [data-no-metrika][hidden] { display: none; }
.cookie-banner p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.cookie-banner a, .cookie-modal a { color: #ffffff; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.3); }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cookie-actions .btn { padding: 10px 22px; font-size: 14px; font-family: inherit; }
.cookie-link { background: none; border: none; padding: 10px 8px; color: rgba(255,255,255,0.6); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.3); transition: color 0.2s; }
.cookie-link:hover { color: #ffffff; }

/* Настройки cookie */
.cookie-modal { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cookie-modal__box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.12); border-radius: 28px; }
.cookie-modal__box:focus { outline: none; }
.cookie-modal h2 { font-size: 24px; margin-bottom: 20px; }
.cookie-opt { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.6); }
.cookie-opt strong { display: block; color: #ffffff; font-weight: 500; margin-bottom: 4px; }
.cookie-opt__always { flex: none; width: 20px; }
.cookie-more { font-size: 14px; color: rgba(255,255,255,0.6); padding-top: 16px; margin-bottom: 20px; border-top: 1px solid rgba(255,255,255,0.08); }

/* Виджет сети: запрос во внешний сервис только по кнопке */
.haze-netinfo:not(.minimized) .netinfo-body { max-height: 360px; }
.netinfo-lookup-row { padding: 8px 12px 12px; }
.netinfo-lookup { width: 100%; padding: 6px 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; color: #ffffff; font: inherit; font-size: 11px; transition: background-color 0.2s; }
.netinfo-lookup:hover { background: rgba(255,255,255,0.12); }
.netinfo-lookup-note { display: block; margin-top: 6px; font-size: 10px; line-height: 1.4; color: rgba(255,255,255,0.4); }

@media (pointer: fine) {
  .privacy-check, .form-consent label, .cookie-link, .netinfo-lookup { cursor: none; }
}

@media (max-width: 768px) {
  .legal-footer { padding-left: 20px; padding-right: 20px; }
  .privacy-page { padding-top: 110px; }
  .privacy-content { padding: 0 8px; }
  .privacy-content .highlight-box { padding: 20px 24px; }
  .cookie-banner { bottom: 16px; padding: 20px; }
  .cookie-actions .btn { flex: 1 1 100%; text-align: center; }
  .cookie-link { flex: 1 1 100%; text-align: center; }
  .cookie-modal__box { padding: 24px 20px; border-radius: 20px; }
  /* Таблица cookie на телефоне — карточками, без прокрутки вбок */
  .cookie-table thead { display: none; }
  .cookie-table, .cookie-table tbody, .cookie-table tr, .cookie-table td { display: block; width: 100%; }
  .cookie-table tr { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .cookie-table td { padding: 4px 0; border: none; }
  .cookie-table td::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.35); }
}
