/* Legal documents and optional analytics: one compact, accessible interface. */
@media (min-width: 761px) {
  body.cookie-banner-visible { padding-bottom: calc(var(--cookie-banner-height, 0px) + 20px); }
}
.cookie-consent {
  position: fixed; inset: auto 18px 18px auto !important; z-index: 10000;
  display: none; width: min(420px, calc(100% - 36px)); height: auto !important; max-height: calc(100dvh - 36px);
  padding: 0 !important; overflow-y: auto; overscroll-behavior: contain;
  background: #fff !important; color: #1b365d; border: 1px solid #ccd6e2; border-radius: 16px;
  box-shadow: 0 8px 32px #142c4926; backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.cookie-consent.is-visible { display: block !important; }
.cookie-consent .cookie-consent__box {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 10px;
  width: 100% !important; max-height: none !important;
  margin: 0; padding: 16px !important; border: 0; border-radius: 0;
  background: #fff; box-shadow: none; overflow: visible;
}
.cookie-consent__copy h2 { margin: 0 44px 6px 0; color: #142c49; font: 700 15px/1.4 "Golos Text", Arial, sans-serif; }
.cookie-consent__copy p { margin: 0 0 6px; max-width: 46ch; color: #42536a; font-size: 13px; line-height: 1.5; }
.cookie-consent__copy a { display: inline-flex; align-items: center; min-height: 28px; color: #23486f; font-size: 12px; line-height: 1.5; text-underline-offset: 3px; }
.cookie-consent__separator { color: #6b7d91; }
.cookie-consent__state:empty { display: none; }
.cookie-consent__copy .cookie-consent__state { display: inline; margin-right: 8px; color: #53647a; font-size: 12px; }
.cookie-consent__copy .cookie-consent__state:empty { display: none; }
.cookie-consent__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cookie-consent__actions button {
  min-height: 44px; margin: 0; padding: 9px 10px; border: 1px solid #9dafc5 !important;
  border-radius: 10px; background: #fff !important; color: #1b365d !important;
  box-shadow: none; font: 600 13px/1.4 "Golos Text", Arial, sans-serif;
  cursor: pointer; white-space: normal;
}
.cookie-consent__actions button:hover { background: #edf3f9 !important; }
.cookie-consent .cookie-consent__close { top: 4px; right: 4px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #53647a; box-shadow: none; font: 26px/1 Arial, sans-serif; }
.cookie-consent .cookie-consent__close:hover { background: #edf3f9; }
.site-legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px;
  margin: 16px auto 20px; padding: 10px 16px !important; border: 1px solid #dce3ed;
  width: 100%; max-width: 1084px; box-sizing: border-box;
  border-radius: 14px; background: #fff !important; box-shadow: none;
  color: #42536a; font-size: 14px; line-height: 1.5;
}
.site-legal > span { display: none; }
.site-legal a, .site-legal .cookie-settings {
  display: inline-flex !important; align-items: center; min-height: 44px;
  padding: 6px 0; color: #23486f; font-size: 14px; font-weight: 500 !important; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 4px;
}
.site-legal .cookie-settings {
  position: static !important; width: auto; min-width: 0; height: auto;
  margin: 0 !important; padding: 6px 10px; gap: 7px; border: 1px solid #cbd6e3; border-radius: 9px; background: #f4f7fb;
  box-shadow: none; font-family: inherit; cursor: pointer;
  text-decoration: none;
}
.site-legal .cookie-settings:hover { background: #e8eff7; }
.cookie-settings__icon { flex: 0 0 20px; }
.site-legal .cookie-settings span { color: inherit; }
.site-legal a:hover { color: #142c49; }
.site-legal a:focus-visible, .site-legal .cookie-settings:focus-visible { outline: 3px solid #315f94; outline-offset: 3px; }
.cookie-settings-footer { max-width: 1084px; margin-inline: auto; padding-inline: 18px !important; }
.legal-page { background: #f4f6f8 !important; }
.legal-page .wrap { max-width: 1120px; }
.legal-page .hero, .legal-page .content {
  width: 100%; max-width: 860px; margin: 24px auto 0; padding: 32px 40px;
  border: 1px solid #dce3ed; border-radius: 20px;
  background: #fff !important; box-shadow: 0 4px 18px #142c4908 !important;
  backdrop-filter: none;
}
.legal-page .hero h1 { max-width: 28ch; margin: 14px 0; font-size: clamp(28px, 3.5vw, 40px) !important; }
.legal-page .hero .lead { color: #42536a; font-size: 17px; line-height: 1.6; }
.legal-page .meta { margin-top: 14px; }
.legal-page .meta span { padding: 0; border: 0; border-radius: 0; background: none; color: #64748b; font-size: 13px; font-weight: 400; }
.legal-page .content p, .legal-page .content li, .legal-page .content dd { color: #35465c; font-size: 16px; line-height: 1.75; }
.legal-page .content h2 { margin: 30px 0 12px; font-size: 23px; line-height: 1.35; }
.legal-page .content h2:first-child { margin-top: 0; }
.legal-page .content h3 { font-size: 18px; line-height: 1.4; }
.legal-page .content a { color: #23486f; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-page .content li + li { margin-top: 7px; }
.legal-page .legal-facts { display: grid; gap: 16px; margin: 20px 0; }
.legal-page .legal-facts > div { padding: 18px; border: 1px solid #dce3ed; border-radius: 14px; background: #f8fafc; }
.legal-page .legal-facts dt { color: #142c49; font-weight: 700; }
.legal-page .legal-facts dd { margin: 8px 0 0; }
.legal-page .content .note { margin: 22px 0; padding: 16px 18px; border-color: #b9c9dc; background: #f1f5fa; color: #35465c; }
.legal-page .site-legal { max-width: 860px; margin-inline: auto; }
.legal-page .legal-contact { margin-top: 24px; padding-top: 20px; border-top: 1px solid #dce3ed; }
@media (max-width: 760px) {
  .cookie-consent {
    position: relative; inset: auto !important; z-index: auto;
    width: min(100%, 420px); max-height: none; margin: 12px auto;
    box-sizing: border-box; overflow: visible;
  }
  .cookie-consent .cookie-consent__box { position: relative; gap: 10px; padding: 12px !important; }
  .cookie-consent .cookie-consent__close { position: absolute; }
  .cookie-consent__actions { gap: 10px; }
  .cookie-consent__actions button { padding: 10px 8px; }
  .legal-page .hero, .legal-page .content { padding: 24px; border-radius: 18px; }
}
@media (max-width: 400px) {
  .legal-page .hero, .legal-page .content { padding: 20px; }
  .site-legal { gap: 0 16px; }
}
