@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-cyrillic-400-600.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0030a7;
  --action: #0b45c8;
  --action-hover: #083aa9;
  --ink: #0a1830;
  --text: #35485f;
  --muted: #687789;
  --line: #d5e0ea;
  --paper: #eef5fb;
  --surface: #ffffff;
  --shell: min(calc(100% - 64px), 1160px);
  --content: 920px;
  color-scheme: light;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--text); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #69a0ff; outline-offset: 4px; }

.legal-shell { width: var(--shell); margin-inline: auto; }
.legal-skip { position: fixed; z-index: 1000; top: -80px; left: 16px; padding: 12px 16px; border-radius: 8px; background: var(--action); color: #fff; text-decoration: none; }
.legal-skip:focus { top: 16px; }

.legal-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 96%); box-shadow: 0 12px 32px rgb(26 42 59 / 7%); }
.legal-header__top { min-height: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); color: #687583; font-size: 10px; }
.legal-header__top p { margin: 0; }
.legal-header__top > div { display: flex; gap: 24px; }
.legal-header__top a { min-height: 32px; display: flex; align-items: center; text-decoration: none; }
.legal-header__main { min-height: 80px; display: grid; grid-template-columns: 188px 1fr auto; align-items: center; gap: 34px; }
.legal-header__brand { display: block; }
.legal-header__brand img { width: 166px; height: auto; }
.legal-header__nav { display: flex; justify-content: center; gap: 4px; }
.legal-header__nav a { min-height: 44px; padding: 0 15px; display: flex; align-items: center; border-radius: 8px; color: #283b52; font-size: 12px; text-decoration: none; }
.legal-header__nav a:hover,
.legal-header__nav a:focus-visible,
.legal-header__nav a[aria-current="page"] { background: var(--paper); color: var(--blue); }
.legal-header__action { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--action); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; }
.legal-header__action:hover,
.legal-header__action:focus-visible { background: var(--action-hover); }

.legal-page { width: min(calc(100% - 48px), calc(var(--content) + 128px)); margin: 42px auto 86px; padding: 64px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 24px 64px rgb(31 66 105 / 8%); }
.legal-page__eyebrow { margin: 0 0 20px; color: var(--blue); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.legal-page h1 { max-width: 820px; margin: 0; color: var(--ink); font-size: clamp(40px, 5.3vw, 66px); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.legal-page__meta { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.legal-draft-note { margin: 34px 0 0; padding: 20px 22px; border: 1px solid #a9c5ee; border-radius: 12px; background: #edf5ff; color: #294462; font-size: 14px; line-height: 1.6; }
.legal-draft-note strong { color: var(--blue); }

.legal-toc { margin: 46px 0 10px; padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.legal-toc a { min-height: 42px; padding: 0 12px; display: flex; align-items: center; border-radius: 8px; color: #4d6075; font-size: 13px; text-decoration: none; }
.legal-toc a:hover,
.legal-toc a:focus-visible { background: #fff; color: var(--blue); }

.legal-section { padding: 42px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 132px; }
.legal-section:last-child { border-bottom: 0; padding-bottom: 8px; }
.legal-section h2 { margin: 0 0 22px; color: var(--ink); font-size: clamp(25px, 3vw, 34px); font-weight: 500; line-height: 1.17; letter-spacing: -.03em; text-wrap: balance; }
.legal-section h3 { margin: 30px 0 12px; color: var(--ink); font-size: 18px; font-weight: 600; }
.legal-section p,
.legal-section li { color: var(--text); font-size: 15px; line-height: 1.76; }
.legal-section p { margin: 0 0 15px; }
.legal-section ul,
.legal-section ol { margin: 0; padding-left: 22px; }
.legal-section li + li { margin-top: 8px; }
.legal-section strong { color: #142b48; font-weight: 600; }
.legal-section a { color: var(--blue); text-underline-offset: 3px; }

.legal-details { margin: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px 24px; }
.legal-details dt { color: var(--muted); font-size: 14px; }
.legal-details dd { margin: 0; color: #203b5b; overflow-wrap: anywhere; }

.legal-footer { border-top: 1px solid var(--line); background: #fff; color: var(--text); }
.legal-footer__grid { padding-block: 56px 44px; display: grid; grid-template-columns: 1.3fr .75fr 1.25fr .9fr; gap: 44px; }
.legal-footer__brand img { width: 166px; height: auto; }
.legal-footer__brand p { max-width: 300px; margin: 18px 0 0; color: #78828c; font-size: 11px; }
.legal-footer nav,
.legal-footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.legal-footer strong { margin-bottom: 10px; color: #20334b; font-size: 12px; font-weight: 600; }
.legal-footer a { min-height: 34px; display: flex; align-items: center; color: #65717d; font-size: 11px; text-decoration: none; }
.legal-footer a:hover,
.legal-footer a:focus-visible,
.legal-footer a[aria-current="page"] { color: var(--blue); }
.legal-footer__bottom { min-height: 74px; padding-block: 18px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); color: #848d96; font-size: 9px; }
.legal-footer__bottom > span:nth-child(2) { display: grid; gap: 2px; }
.legal-footer__bottom strong { margin: 0; color: #465568; font-size: 9px; font-weight: 500; }
.legal-footer__bottom small { color: #7a8590; font-size: 9px; }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .legal-page h1 {
    background-image: linear-gradient(100deg, #0030a7 0%, #161616 77%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

@media (max-width: 920px) {
  :root { --shell: min(calc(100% - 40px), 1160px); }
  .legal-header__main { grid-template-columns: 1fr auto; }
  .legal-header__nav { display: none; }
  .legal-page { width: calc(100% - 40px); padding: 48px 40px; }
  .legal-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 32px); }
  html { scroll-padding-top: 76px; }
  .legal-header__top { display: none; }
  .legal-header__main { min-height: 74px; gap: 16px; }
  .legal-header__brand img { width: 142px; }
  .legal-header__action { min-height: 42px; padding-inline: 13px; font-size: 10px; }
  .legal-page { width: calc(100% - 24px); margin-block: 20px 56px; padding: 34px 22px; border-radius: 18px; }
  .legal-page h1 { font-size: clamp(34px, 10.5vw, 44px); line-height: 1.08; }
  .legal-draft-note { padding: 17px; }
  .legal-toc { margin-top: 34px; padding: 12px; grid-template-columns: 1fr; }
  .legal-section { padding: 34px 0; scroll-margin-top: 84px; }
  .legal-section h2 { font-size: 25px; line-height: 1.25; }
  .legal-section p,
  .legal-section li { font-size: 14px; }
  .legal-details { grid-template-columns: 1fr; gap: 4px; }
  .legal-details dd + dt { margin-top: 14px; }
  .legal-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .legal-footer__brand { grid-column: auto; }
  .legal-footer nav,
  .legal-footer__contacts { padding-top: 22px; border-top: 1px solid var(--line); }
  .legal-footer__bottom { padding-block: 22px; align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .legal-header,
  .legal-footer,
  .legal-skip { display: none; }
  body { background: #fff; }
  .legal-page { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .legal-page h1 { background: none !important; color: #111 !important; -webkit-text-fill-color: #111 !important; }
}

@media (forced-colors: active) {
  .legal-header,
  .legal-page,
  .legal-toc,
  .legal-draft-note,
  .legal-footer { border-color: CanvasText; }
  .legal-page h1 { background: none !important; color: CanvasText !important; -webkit-text-fill-color: CanvasText !important; }
}
