/* bazavashdom.ru - legal pages, footer block and cookie strip (ops layer).
   Loaded last on the public site; scoped to .vh-legal / .vh-legal-page. */

/* ---- reading column ---------------------------------------------------- */
body:has(.vh-legal) .page-sidebar__content,
html.vh-legal-page .page-sidebar__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 0 34px;
}
body:has(.vh-legal) .page-sidebar__title,
html.vh-legal-page .page-sidebar__title {
  font: 600 28px/1.25 Tahoma, Geneva, sans-serif;
  color: #17313f;
  margin: 0 0 10px;
  padding: 0 0 14px;
  border-bottom: 3px solid #1a88ae;
}
body:has(.vh-legal) .page-sidebar__sidebar,
html.vh-legal-page .page-sidebar__sidebar { display: none; }

/* ---- document body ----------------------------------------------------- */
.vh-legal {
  font: 16px/1.6 Tahoma, Geneva, sans-serif;
  color: #23292f;
  max-width: 800px;
}
.vh-legal p { margin: 0 0 14px; }
.vh-legal strong { color: #17313f; }
.vh-legal a { color: #166b8c; }

.vh-legal__meta {
  font: 13px/1.5 Arial, Helvetica, sans-serif;
  color: #6b7681;
  margin: 0 0 22px;
}
.vh-legal__lead {
  font-size: 17px;
  line-height: 1.55;
  color: #3b4650;
  margin: 0 0 24px;
}

/* ---- contents ---------------------------------------------------------- */
.vh-legal__toc {
  background: #f2f6f8;
  border-left: 4px solid #1a88ae;
  padding: 16px 22px 8px;
  margin: 0 0 32px;
}
.vh-legal__toc-title {
  font: 600 13px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #4a5a67;
  margin: 0 0 10px;
}
.vh-legal__toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 28px;
  font-size: 14.5px;
  line-height: 1.45;
}
.vh-legal__toc li { margin: 0 0 7px; break-inside: avoid; padding-left: 0; }
.vh-legal__toc a { color: #166b8c; text-decoration: none; }
.vh-legal__toc a:hover { text-decoration: underline; }

/* ---- headings ---------------------------------------------------------- */
.vh-legal h2 {
  font: 600 20px/1.35 Tahoma, Geneva, sans-serif;
  color: #17313f;
  margin: 34px 0 12px;
  padding: 0 0 6px;
  border-bottom: 1px solid #e2e8ec;
  scroll-margin-top: 16px;
}
.vh-legal h3 {
  font: 600 17px/1.4 Tahoma, Geneva, sans-serif;
  color: #1f3a49;
  margin: 24px 0 10px;
}
.vh-legal ul, .vh-legal ol { margin: 0 0 16px; padding-left: 24px; }
.vh-legal li { margin: 0 0 7px; }

/* ---- tables ------------------------------------------------------------ */
.vh-legal__table { margin: 0 0 20px; }
.vh-legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}
.vh-legal th, .vh-legal td {
  border: 1px solid #dbe3e9;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.vh-legal thead th { background: #eef3f6; font-weight: 600; color: #2b3a47; }
.vh-legal tbody tr:nth-child(even) td { background: #fafcfd; }
.vh-legal code {
  font: 13.5px/1.4 "Courier New", Courier, monospace;
  color: #2d3f4d;
  background: #eef2f5;
  border: 1px solid #e0e7ec;
  padding: 0 4px;
  border-radius: 2px;
}

/* ---- operator block ---------------------------------------------------- */
.vh-legal__operator {
  margin: 34px 0 0;
  padding: 18px 20px 6px;
  background: #f2f6f8;
  border: 1px solid #e0e7ec;
}
.vh-legal__operator h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 18px;
}
.vh-legal__operator table { background: #fff; margin: 0 0 12px; }
.vh-legal__operator th {
  width: 34%;
  background: #f7fafb;
  font-weight: 600;
  color: #33434f;
}

/* ---- back to top ------------------------------------------------------- */
.vh-legal__totop {
  margin: 28px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #e2e8ec;
  text-align: right;
  font: 14px/1.4 Arial, Helvetica, sans-serif;
}
.vh-legal__totop a {
  color: #166b8c;
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 107, 140, .35);
}
.vh-legal__totop a:hover { border-bottom-color: #166b8c; }

/* ---- hub list ---------------------------------------------------------- */
.vh-legal__docs { list-style: none; margin: 0 0 8px; padding: 0; }
.vh-legal__docs li {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid #e2e8ec;
}
.vh-legal__docs a {
  font: 600 18px/1.4 Tahoma, Geneva, sans-serif;
  color: #166b8c;
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 107, 140, .3);
}
.vh-legal__docs a:hover { border-bottom-color: #166b8c; }
.vh-legal__docs span {
  display: block;
  margin: 6px 0 0;
  color: #56626d;
  font-size: 15px;
  line-height: 1.55;
}

/* ---- footer block ------------------------------------------------------ */
.vh-legal-footer {
  margin: 18px 0 10px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.vh-legal-footer__title {
  font: 600 13px/1.4 Tahoma, Geneva, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 6px;
}
.vh-legal-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.9;
}
.vh-legal-footer__links li { display: inline-block; margin: 0 18px 0 0; }
.vh-legal-footer__links a {
  color: #cfedf8;
  text-decoration: none;
  border-bottom: 1px solid rgba(207, 237, 248, .45);
}
.vh-legal-footer__links a:hover { color: #fff; border-bottom-color: #fff; }

/* ---- cookie strip: whole strip opens the privacy policy ---------------- */
.vh-cookie { pointer-events: auto; cursor: pointer; }
.vh-cookie__text { cursor: pointer; }
.vh-cookie a { text-decoration: underline; text-underline-offset: 2px; }
.vh-cookie__ok { pointer-events: auto; }

/* ---- mobile ------------------------------------------------------------ */
@media (max-width: 767px) {
  body:has(.vh-legal) .page-sidebar__content,
  html.vh-legal-page .page-sidebar__content {
    padding: 6px 15px 26px;
    box-sizing: border-box;
  }
  body:has(.vh-legal) .page-sidebar__title,
  html.vh-legal-page .page-sidebar__title {
    font-size: 23px;
    padding-bottom: 11px;
  }
  .vh-legal { font-size: 16px; line-height: 1.6; }
  .vh-legal h2 { font-size: 18px; margin-top: 28px; }
  .vh-legal__toc { padding: 14px 16px 6px; margin-bottom: 24px; }
  .vh-legal__toc-list { columns: 1; font-size: 14.5px; }
  .vh-legal__table { overflow-x: auto; }
  .vh-legal table { font-size: 13.5px; }
  .vh-legal th, .vh-legal td { padding: 6px 7px; }
  .vh-legal__operator { padding: 14px 14px 4px; }
}

@media (max-width: 600px) {
  /* stacked rows: a five-column cookie table cannot be read at 390px */
  .vh-legal table, .vh-legal thead, .vh-legal tbody,
  .vh-legal tr, .vh-legal th, .vh-legal td { display: block; }
  .vh-legal thead { display: none; }
  .vh-legal tr {
    border: 1px solid #dbe3e9;
    background: #fff;
    margin: 0 0 10px;
    padding: 8px 10px;
  }
  .vh-legal tbody tr:nth-child(even) td { background: transparent; }
  .vh-legal td { border: 0; padding: 3px 0; }
  .vh-legal td::before {
    content: attr(data-label);
    display: block;
    font: 600 11.5px/1.5 Arial, Helvetica, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b7681;
  }
  .vh-legal__operator th {
    width: auto;
    border: 0;
    background: transparent;
    padding: 6px 0 0;
    color: #6b7681;
  }
  .vh-legal__operator td { padding: 0 0 6px; }
}
