/* =============================================================
   КонсалтЛиквид — стили для правовых документов (doc.css)
   Используется страницами privacy.html и terms.html.
   Цвета и шрифт — те же, что и на основном сайте (см. style.css),
   переменные продублированы здесь, чтобы файл был самодостаточным.
============================================================= */

:root{
  --navy: #1F2E4D;
  --navy-light: #2A3D63;
  --cream: #F5EFE6;
  --blue: #D6E4F0;
  --white: #FFFFFF;
  --text: #2B2B2B;
  --gray-bg: #F0F1F3;
  --radius: 20px;
  --shadow-soft: 0 4px 14px rgba(31, 46, 77, 0.06);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "Manrope","Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a{ color: var(--navy); }
.wrap{ max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* =========================================================
   TOP NAV — minimal: back link + page tag
========================================================= */
.nav{ background: var(--gray-bg); }
.nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
}
.nav .logo{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--navy);
  font-weight: 600;
  font-size: 19.5px;
  line-height: 1.3;
  letter-spacing: .03em;
  white-space: nowrap;
  text-decoration: none;
}
.nav .logo-tagline{
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: #6B7690;
}
.nav-tag{
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6B7690;
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
  max-width: 120px;
}

@media (max-width: 768px){
  .nav .logo{ font-size: 15px; }
  .nav .logo-tagline{ font-size: 12px; }
}

/* =========================================================
   DOC HERO
========================================================= */
.doc-hero{ background: var(--gray-bg); padding: 30px 0 40px; }
.doc-title{
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 20px;
}
.doc-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13.5px;
  color: #55607a;
}
.doc-meta strong{ color: var(--navy); }

/* =========================================================
   DOC BODY — sidebar TOC + content
========================================================= */
.doc-body{ padding: 40px 0 60px; }
.doc-layout{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.doc-toc{
  position: sticky;
  top: 24px;
  border: 1.5px solid rgba(31,46,77,.14);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
}
.doc-toc-title{
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6B7690;
  margin-bottom: 12px;
}
.doc-toc ul{ list-style: none; margin: 0; padding: 0; }
.doc-toc li{ margin-bottom: 8px; }
.doc-toc a{
  font-size: 13.5px;
  color: var(--navy);
  text-decoration: none;
  opacity: .8;
}
.doc-toc a:hover{ opacity: 1; text-decoration: underline; }

.doc-content{ min-width: 0; }
.doc-back{
  display: none; /* shown only on mobile, where the sidebar TOC is hidden */
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}
.doc-note{
  background: var(--cream);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 14.5px;
}
.doc-note p{ margin: 0; }
.doc-note p + p{ margin-top: 10px; }

.doc-section{ margin-bottom: 34px; }
.doc-section h2{
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 14px;
}
.doc-section h3{
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 18px 0 8px;
}
.doc-section p{ font-size: 15px; margin: 0 0 12px; color: var(--text); }
.doc-section ul{ margin: 0 0 12px; padding-left: 20px; }
.doc-section li{ font-size: 15px; margin-bottom: 6px; }

/* =========================================================
   FOOTER — identical to the main site's footer (index.html)
========================================================= */
footer{
  background: var(--navy);
  color: var(--white);
  padding: 54px 0 24px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-logo{
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .03em;
  margin-bottom: 4px;
}
.footer-tagline{
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
}
.footer-grid div div{ font-size: 14px; color: rgba(255,255,255,.8); padding: 4px 0; }
.footer-grid ul{ list-style: none; margin: 0; padding: 0; }
.footer-grid ul li{ padding: 4px 0; }
.footer-grid ul a{ color: rgba(255,255,255,.8); font-size: 14px; text-decoration: none; }
.footer-grid ul a:hover{ color: var(--white); }
.footer-bottom{
  padding-top: 18px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}
@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr 1fr; row-gap: 26px; }
}
@media (max-width: 480px){
  .footer-grid{ grid-template-columns: 1fr; row-gap: 22px; }
}

/* =========================================================
   COOKIE BANNER — same floating pill as the main site
========================================================= */
.cookie-banner{
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  z-index: 1100;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  color: var(--navy);
  padding: 18px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(31,46,77,.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.cookie-banner.show{ transform: translateY(0); opacity: 1; }
.cookie-banner p{ font-size: 13px; line-height: 1.45; margin: 0; }
.cookie-banner a{ font-weight: 700; text-decoration: underline; }
.cookie-accept{
  flex-shrink: 0;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.cookie-accept:hover{ background: var(--navy-light); border-color: var(--navy-light); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 860px){
  .doc-layout{ grid-template-columns: 1fr; }
  .doc-toc{ display: none; } /* sidebar TOC hidden on mobile — back-link shown instead */
  .doc-back{ display: inline-block; }
}
@media (max-width: 640px){
  .cookie-banner{
    left: 14px; right: 14px; bottom: 14px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    text-align: left;
    gap: 12px;
  }
  .cookie-accept{ width: 100%; }
}
