@font-face {
  font-family: "Bebas Neue Cyrillic";
  src: url("../BebasNeueCyrillic-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue Cyrillic";
  src: url("../BebasNeueCyrillic-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2f3740;
  --ink-soft: #69727a;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --surface-soft: #ecefeb;
  --line: #d7dbd7;
  --dark: #2f3740;
  --dark-soft: #47515b;
  --accent: #bec9b8;
  --radius-large: 32px;
  --radius-medium: 22px;
  --display: "Bebas Neue Cyrillic", "Arial Narrow", sans-serif;
  --body: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 3px solid #75866e;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  color: #fff;
  background: #151a1f;
  border-radius: 12px;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header {
  position: sticky;
  z-index: 20;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 12px 14px 12px 28px;
  color: #fff;
  background: rgba(47, 55, 64, 0.96);
  border-radius: 28px;
}

.legal-brand {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
  text-decoration: none;
}

.legal-back,
.legal-home-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
  color: var(--dark);
  border-radius: 999px;
}

.legal-page {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
}

.legal-hero {
  padding: clamp(36px, 6vw, 76px);
  color: #fff;
  background: var(--dark);
  border-radius: var(--radius-large);
}

.legal-eyebrow,
.legal-toc > p,
.annex-label {
  width: fit-content;
  margin: 0 0 24px;
  padding: 9px 16px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

h1,
.legal-document h2,
.legal-document h3,
.legal-footer > p {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.012em;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 7.8rem);
  line-height: 0.9;
}

.legal-lead {
  max-width: 760px;
  margin: clamp(26px, 4vw, 48px) 0 0;
  color: #d7dcdf;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.operator-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(30px, 5vw, 56px) 0 0;
  overflow: hidden;
  background: #5c6670;
  border: 1px solid #5c6670;
  border-radius: var(--radius-medium);
}

.operator-summary div {
  min-width: 0;
  padding: 20px;
  background: #39434d;
}

.operator-summary dt {
  margin-bottom: 6px;
  color: #aeb6bc;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.operator-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  font-weight: 700;
}

.legal-toc {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 34px;
  margin: 22px 0;
  padding: clamp(26px, 4vw, 42px);
  background: var(--surface-soft);
  border-radius: var(--radius-large);
}

.legal-toc > p {
  margin: 0;
  align-self: start;
  background: var(--dark);
  color: #fff;
}

.legal-toc > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}

.legal-toc a {
  font-size: 0.93rem;
  font-weight: 700;
}

.legal-document {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(38px, 7vw, 86px) clamp(22px, 7vw, 88px);
  overflow-wrap: anywhere;
  background: var(--surface);
  border-radius: var(--radius-large);
}

.legal-document h2,
.legal-document h3 {
  scroll-margin-top: 110px;
  color: var(--ink);
}

.legal-document h2 {
  margin: 84px 0 28px;
  font-size: clamp(2.35rem, 5.5vw, 4.7rem);
  line-height: 0.94;
}

.legal-document h3 {
  margin: 54px 0 20px;
  font-size: clamp(1.75rem, 3.6vw, 2.8rem);
  line-height: 1;
}

.legal-document > h2:first-child {
  margin-top: 0;
}

.legal-document p {
  margin: 0 0 1.15em;
}

.legal-document strong {
  font-weight: 800;
}

.legal-document .annex-label {
  margin-top: 96px;
  color: var(--ink);
}

.legal-document .annex-title {
  margin-top: 28px;
}

.legal-document .operator-title {
  margin-bottom: 70px;
}

.legal-list {
  margin: 10px 0 30px;
  padding-left: 1.35em;
}

.legal-list li {
  margin-bottom: 0.68em;
  padding-left: 0.35em;
}

.signature-line {
  margin-top: 46px !important;
  color: var(--ink-soft);
  white-space: normal;
}

.legal-home-button {
  margin: 28px 0 0;
  color: #fff;
  background: var(--dark);
}

.legal-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: min(1180px, calc(100% - 32px));
  margin: 90px auto 0;
  padding: 38px 0 48px;
  border-top: 1px solid var(--line);
}

.legal-footer > p {
  max-width: 660px;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.legal-footer > a {
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .operator-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 90px;
  }

  body {
    font-size: 14px;
    line-height: 1.62;
  }

  .legal-header {
    top: 8px;
    width: calc(100% - 20px);
    min-height: 64px;
    margin-top: 8px;
    padding: 8px 8px 8px 18px;
    border-radius: 24px;
  }

  .legal-back {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.78rem;
  }

  .legal-page {
    width: calc(100% - 20px);
    margin-top: 16px;
  }

  .legal-hero,
  .legal-toc,
  .legal-document {
    border-radius: 24px;
  }

  .legal-hero {
    padding: 28px 20px;
  }

  h1 {
    font-size: clamp(2.85rem, 15vw, 4.4rem);
  }

  .legal-lead {
    font-size: 0.92rem;
  }

  .operator-summary {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .operator-summary div {
    padding: 16px;
  }

  .legal-toc {
    gap: 20px;
    padding: 24px 20px;
  }

  .legal-toc > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .legal-document {
    padding: 38px 20px 52px;
  }

  .legal-document h2 {
    margin-top: 64px;
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .legal-document h3 {
    margin-top: 44px;
    font-size: 1.9rem;
  }

  .legal-document .annex-label {
    margin-top: 76px;
  }

  .legal-footer {
    display: grid;
    width: calc(100% - 32px);
    margin-top: 62px;
    padding-bottom: 34px;
  }
}

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

@media print {
  .legal-header,
  .skip-link,
  .legal-toc,
  .legal-home-button,
  .legal-footer {
    display: none;
  }

  body,
  .legal-page,
  .legal-document {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #000;
    background: #fff;
  }

  .legal-hero {
    padding: 0 0 30px;
    color: #000;
    background: #fff;
  }

  .legal-lead,
  .operator-summary {
    color: #000;
  }

  .operator-summary {
    border-color: #999;
  }

  .operator-summary div {
    background: #fff;
  }
}
