@font-face {
  font-family: Onest;
  src: url("assets/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #111527;
  --ink: #f5f1fa;
  --muted: #c1b7d1;
  --accent: #c7b0f1;
  --line: #51425f;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    400 16px/1.85 Onest,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-underline-offset: 5px;
  touch-action: manipulation;
}
a:hover {
  color: #e5d4ff;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: #bea4e7;
  color: #20172d;
}
.legal-header,
main,
footer {
  width: min(900px, calc(100% - 80px));
  margin-inline: auto;
}
.legal-header {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.legal-header > a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.brand {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
.legal-header > a:last-child {
  font-size: 13px;
}
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  background: #c7b0f1;
  color: #21182e;
  padding: 10px 16px;
  z-index: 10;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
main {
  padding-block: 36px 64px;
}
.breadcrumbs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumbs a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.breadcrumbs span {
  display: flex;
  align-items: center;
}
h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.18;
  max-width: 24ch;
  margin: 0;
  text-wrap: balance;
}
.edition {
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 34px;
}
h2 {
  font-size: 23px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}
p {
  margin: 14px 0 0;
  max-width: 76ch;
  text-wrap: pretty;
}
strong {
  font-weight: 600;
}
dl {
  margin: 0;
  display: grid;
  gap: 22px;
}
dt {
  font-weight: 500;
  margin-bottom: 7px;
}
dd {
  margin: 0;
  color: var(--muted);
  max-width: 76ch;
}
footer {
  border-top: 1px solid var(--line);
  padding-block: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  font-size: 12px;
  color: var(--muted);
}
footer p {
  margin: 0;
}
footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
footer nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
footer > p:last-child {
  grid-column: 1/-1;
  font-size: 12px;
}
@media (max-width: 600px) {
  .legal-header,
  main,
  footer {
    width: calc(100% - 40px);
  }
  .legal-header {
    min-height: 88px;
  }
  .brand {
    font-size: 25px;
  }
  .legal-header > a:last-child {
    font-size: 12px;
  }
  main {
    padding-block: 24px 44px;
  }
  h1 {
    font-size: 31px;
    overflow-wrap: anywhere;
  }
  .edition {
    font-size: 11px;
  }
  .breadcrumbs {
    gap: 8px 18px;
    margin-bottom: 22px;
  }
  h2 {
    font-size: 21px;
  }
  section {
    padding-top: 23px;
    margin-top: 28px;
  }
  body {
    font-size: 15px;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  footer > p:last-child {
    grid-column: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
