/* Legal pages (/legal/*.html): standalone documents that work without JavaScript.
   Fonts and colours mirror dist/style.css (Manrope @font-face and the :root tokens) — keep them in sync.
   All styling lives in this file: the server archives the HTML of each document with a checksum,
   so changing the look here never requires a new document version. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.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;
}
:root {
  --ink: #252723;
  /* Secondary text: the site's darker grey (.hero p). Its --muted #777a72 and the accent are too light for text. */
  --soft: #696d64;
  --accent: #f25b3d;
  --line: #e5e5dd;
  --paper: #fff;
  /* Placeholders that must be filled in before launch (see docs/legal-review.md). */
  --fill: #fff0b3;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
a[href^='tel:'] {
  white-space: nowrap;
}

/* Header: the site logo, cropped the same way as .brand-logo in style.css. */
.legal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px 5%;
  border-bottom: 1px solid var(--line);
}
.legal-logo {
  display: block;
  position: relative;
  width: 220px;
  height: 59px;
  flex: 0 0 220px;
  overflow: hidden;
}
.legal-logo img {
  position: absolute;
  width: 279px;
  height: auto;
  max-width: none;
  left: -40px;
  top: -39px;
}
.legal-home {
  font-size: 14px;
}

/* Document body: left-aligned with the header, like the site's information pages. */
.legal {
  padding: 40px 5% 64px;
}
.legal > * {
  max-width: 760px;
}
.legal-eyebrow {
  margin: 0;
  font-size: 13px;
  color: var(--soft);
}
.legal-eyebrow::before {
  content: '●';
  color: var(--accent);
  margin-right: 8px;
}
.legal h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 14px 0 10px;
}
.legal-edition {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--soft);
}
.legal-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}
.legal-docs a {
  font-size: 14px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
}
.legal-docs a:hover {
  border-color: var(--ink);
}
.legal-docs a[aria-current='page'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.legal-lead {
  font-size: 18px;
  line-height: 1.6;
}
.legal h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.5px;
  font-weight: 600;
  margin: 40px 0 10px;
}
.legal h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  margin: 28px 0 8px;
}
.legal p {
  margin: 10px 0;
}
.legal ul,
.legal ol {
  margin: 10px 0;
  padding-left: 1.3em;
}
.legal li {
  margin: 6px 0;
}
.legal li::marker {
  color: var(--soft);
}

/* Label–value pairs: operator details, and per-purpose facts in the policy. */
.legal-facts {
  display: grid;
  grid-template-columns: minmax(150px, max-content) 1fr;
  gap: 8px 24px;
  margin: 14px 0;
}
.legal-facts dt {
  color: var(--soft);
}
.legal-facts dd {
  margin: 0;
}
.legal-facts dd ul {
  margin: 0;
}
.legal-purpose {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

/* An important point the reader should not miss. */
.legal-note {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 16px;
}
/* The exact wording of the consent checkbox, quoted in the consent document. */
.legal-label {
  margin: 12px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.legal-label p {
  margin: 0;
}
/* Law numbers such as «№ 152-ФЗ» must not break at the hyphen. */
.legal-nowrap {
  white-space: nowrap;
}

mark.legal-fill {
  background: var(--fill);
  color: var(--ink);
  padding: 0 4px;
  border-radius: 3px;
}

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 24px 5% 32px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--soft);
}
.legal-footer p {
  margin: 4px 0;
}
.legal-footer b {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 600px) {
  .legal-header {
    padding: 16px 5%;
  }
  .legal-logo {
    width: 190px;
    height: 51px;
    flex-basis: 190px;
  }
  .legal-logo img {
    width: 241px;
    left: -35px;
    top: -34px;
  }
  .legal {
    padding-top: 28px;
  }
  .legal h2 {
    font-size: 21px;
    margin-top: 32px;
  }
  .legal-lead {
    font-size: 17px;
  }
  .legal-facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .legal-facts dd + dt {
    margin-top: 10px;
  }
}

@media print {
  .legal-home,
  .legal-docs {
    display: none;
  }
  body {
    font-size: 11pt;
  }
  .legal {
    padding: 16px 0 0;
  }
  .legal-header,
  .legal-footer {
    padding-left: 0;
    padding-right: 0;
  }
  mark.legal-fill {
    outline: 1px dashed var(--ink);
  }
}
