:root {
  --paper: #e8e7e3;
  --ink: #171613;
  --soft: #5d5a53;
  --line: rgba(23, 22, 19, .24);
  --violet: #5b4dae;
  --cream: #f4e3c6;
  --gold: #ffce80;
  --cta-gradient: linear-gradient(276deg, #dda249 0%, #e2a052 36.7%, #f5cb8e 100%);
  --heading: 'Tenor Sans', serif;
  --text: 'Golos Text', sans-serif;
  --stage: 1680px;
  --stage-inset: max(clamp(22px, 4.4vw, 68px), calc((100vw - var(--stage)) / 2 + clamp(22px, 4.4vw, 68px)));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a:hover { color: var(--violet); }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background:
    radial-gradient(125% 95% at 88% 28%, rgba(38, 154, 143, .60) 0%, rgba(38, 154, 143, 0) 56%),
    radial-gradient(78% 66% at 104% 0%, rgba(80, 178, 137, .50) 0%, rgba(80, 178, 137, 0) 62%),
    radial-gradient(92% 92% at 2% 62%, rgba(108, 90, 216, .58) 0%, rgba(108, 90, 216, 0) 60%),
    radial-gradient(82% 72% at 56% 104%, rgba(63, 102, 199, .48) 0%, rgba(63, 102, 199, 0) 64%),
    radial-gradient(60% 55% at 0% 0%, rgba(48, 74, 158, .50) 0%, rgba(48, 74, 158, 0) 65%),
    linear-gradient(107deg, #252b60 0%, #1d2c58 46%, #1d4257 100%);
  background-size: 100vw 100svh;
  background-position: 0 100%;
  background-repeat: no-repeat;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.legal-header::after {
  content: "";
  position: absolute;
  left: var(--stage-inset);
  right: var(--stage-inset);
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, .25);
  pointer-events: none;
}

.legal-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(14px, 1.5vw, 22px) 0;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  flex: none;
  gap: 0;
  margin-right: auto;
  color: var(--cream);
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.logo:hover { color: var(--cream); }

.logo__forum {
  margin-right: -.06em;
  color: rgba(244, 227, 198, .82);
  font-size: clamp(9px, .8vw, 13px);
  line-height: 1;
  letter-spacing: .06em;
}

.logo__name {
  margin-top: .06em;
  background: linear-gradient(96deg, #c77c3a 0%, #e2a052 42%, #ffe2ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(18px, 1.9vw, 28px);
  line-height: 1;
  letter-spacing: -.005em;
}

.legal-header__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  color: rgba(255, 255, 255, .70);
  font-size: 10.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  white-space: nowrap;
}

.legal-header__links a {
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease;
}

.legal-header__links a:hover,
.legal-header__links a[aria-current="page"] {
  color: var(--gold);
}

.legal-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  position: relative;
  isolation: isolate;
  padding: 12px 19px;
  border: 1px solid rgba(244, 227, 198, .42);
  border-radius: 999px;
  color: var(--cream);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .22s ease, color .35s ease;
}

.legal-header__cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--cta-gradient);
  opacity: 0;
  transition: opacity .22s ease;
}

.legal-header__cta:hover {
  border-color: transparent;
  color: #223063;
}

.legal-header__cta:hover::before { opacity: 1; }

.legal-header__cta svg { flex: none; }

.legal-header__toggle {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(244, 227, 198, .42);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}

.legal-header__toggle span {
  position: absolute;
  left: 50%;
  width: 15px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform .25s ease, opacity .2s ease;
}

.legal-header__toggle span:nth-child(1) { top: 16px; }
.legal-header__toggle span:nth-child(2) { top: 21px; }
.legal-header__toggle span:nth-child(3) { top: 26px; }

.legal-header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateX(-50%) translateY(5px) rotate(45deg);
}

.legal-header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.legal-header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateX(-50%) translateY(-5px) rotate(-45deg);
}

.legal-header__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(760px, calc(100% - 40px));
  padding: 12px;
  border: 1px solid rgba(244, 227, 198, .32);
  border-radius: 20px;
  background: rgba(23, 31, 76, .94);
  box-shadow: 0 26px 70px rgba(8, 12, 34, .32);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.legal-header__menu[hidden] { display: none; }

.legal-header__menu-nav {
  display: flex;
  flex-direction: column;
}

.legal-header__menu-nav a {
  display: block;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(244, 227, 198, .32);
  color: #fff;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .82;
  transition: color .25s ease, opacity .25s ease;
}

.legal-header__menu-nav a:last-child { border-bottom: 0; }

.legal-header__menu-nav a:hover {
  color: var(--gold);
  opacity: 1;
}

.legal-header__menu .legal-header__cta {
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.logo:focus-visible,
.legal-header__links a:focus-visible,
.legal-header__cta:focus-visible,
.legal-header__toggle:focus-visible,
.legal-header__menu-nav a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

main {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 92px) 0 80px;
}

h1 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -.02em;
}

.date {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--soft);
}

h2 {
  margin: 42px 0 12px;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.15;
}

h3 {
  margin: 28px 0 10px;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.2;
}

p,
li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--soft);
}

p { margin: 0 0 14px; }

ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

li { margin: 0 0 6px; }

strong {
  font-weight: 500;
  color: var(--ink);
}

.doc-note {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 2px solid var(--violet);
  background: rgba(255, 255, 255, .32);
}

.doc-note p:last-child { margin-bottom: 0; }

.doc-table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.doc-table th,
.doc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--soft);
}

.doc-table th {
  font-weight: 500;
  color: var(--ink);
}

.doc-table td:last-child,
.doc-table th:last-child { text-align: right; white-space: nowrap; }

.doc-requisites {
  margin-top: 44px;
  padding: 22px 24px;
  border: 1px solid var(--line);
}

.doc-requisites h2 { margin-top: 0; }

.doc-requisites p {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.footer {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 48px;
  font-size: 12px;
  color: var(--soft);
}

@media (min-width: 760px) {
  .legal-header__menu { display: none !important; }
}

@media (max-width: 759px) {
  .legal-header__links,
  .legal-header__cta--bar { display: none; }

  .legal-header__toggle {
    display: block;
    margin-left: auto;
  }

  .legal-header::after {
    left: 20px;
    right: 20px;
  }
}

@media (max-width: 560px) {
  main { padding-top: 48px; }
  .doc-table { display: block; overflow-x: auto; }
  .doc-table th,
  .doc-table td { padding: 9px 8px; }
  .doc-requisites { padding: 18px 16px; }
}
