.legal-site {
  color: var(--ink);
  background: #e8eaeb;
}

.legal-site .utility-inner {
  justify-content: space-between;
}

.legal-site-header .brand {
  display: grid;
  justify-items: start;
  gap: 1px;
}

.legal-site-header::after {
  display: none;
}

.legal-site-header .page-progress {
  bottom: 0;
  height: 4px;
}

.legal-home-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--steel);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.legal-home-link span {
  color: #ef477a;
  font-size: 18px;
}

.legal-home-link:hover,
.legal-home-link:focus-visible {
  background: var(--raspberry);
}

.legal-main {
  min-height: 70vh;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(112deg, #17191b 0 64%, #24282b 64% 100%);
  border-bottom: 6px solid var(--raspberry);
}

.legal-hero::before {
  position: absolute;
  inset: 0 auto 0 -6%;
  width: 52%;
  content: "";
  opacity: .2;
  background:
    repeating-linear-gradient(125deg, transparent 0 34px, rgb(255 255 255 / 9%) 35px 37px),
    linear-gradient(125deg, transparent 0 45%, var(--raspberry) 45% 61%, transparent 61%);
}

.legal-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: end;
  gap: 70px;
  min-height: 390px;
  padding: 68px 0;
}

.legal-hero .eyebrow {
  color: #ef477a;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(46px, 6.2vw, 78px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .98;
  text-transform: uppercase;
}

.legal-hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #cdd1d3;
  font-size: 17px;
  line-height: 1.65;
}

.legal-version {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: rgb(255 255 255 / 7%);
  border-left: 4px solid var(--raspberry);
}

.legal-version span {
  color: #aeb4b7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.legal-version strong {
  font-size: 14px;
}

.legal-content-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.legal-nav {
  position: sticky;
  top: 106px;
  display: grid;
  padding: 24px;
  color: #fff;
  background: var(--steel);
  border-top: 5px solid var(--raspberry);
  box-shadow: 0 14px 32px rgb(20 24 26 / 13%);
}

.legal-nav > span {
  margin-bottom: 14px;
  color: #8f9699;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.legal-nav a {
  padding: 14px 0;
  color: #d7dadc;
  border-top: 1px solid #444a4e;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.legal-nav a:last-child {
  color: #ef477a;
}

.legal-nav a[aria-current="page"] {
  color: #fff;
}

.legal-nav a[aria-current="page"]::before {
  display: inline-block;
  width: 12px;
  height: 3px;
  margin: 0 8px 3px 0;
  content: "";
  background: var(--raspberry);
}

.legal-site .legal-document {
  width: auto;
  margin: 0;
  padding: clamp(32px, 5vw, 64px);
  background: #fff;
  border: 1px solid #c8ccce;
  border-top: 7px solid var(--raspberry);
  box-shadow: 0 14px 34px rgb(20 24 26 / 10%);
}

.legal-intro {
  margin: 0 0 20px;
  padding: 22px 24px;
  color: #30363a;
  background: #edf0f1;
  border-left: 5px solid var(--raspberry);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}

.legal-site .legal-document section + section {
  margin-top: 42px;
  padding-top: 38px;
  border-top: 1px solid #d9dcde;
}

.legal-site .legal-document h2 {
  margin: 0 0 16px;
  color: #202326;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-transform: uppercase;
}

.legal-site .legal-document h3 {
  margin: 24px 0 10px;
  color: #202326;
  font-size: 17px;
}

.legal-site .legal-document p,
.legal-site .legal-document li {
  color: #4f565b;
  font-size: 15px;
  line-height: 1.75;
}

.legal-site .legal-document p {
  margin: 12px 0 0;
}

.legal-site .legal-document ul,
.legal-site .legal-document ol {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 23px;
}

.legal-site .legal-document ul {
  list-style: square;
}

.legal-site .legal-document ol {
  list-style: decimal;
}

.legal-site .legal-document li::marker {
  color: var(--raspberry);
  font-weight: 900;
}

.legal-site .legal-document a {
  color: var(--raspberry-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-requisites {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  margin-top: 20px;
  border-top: 1px solid #cfd3d5;
  border-left: 1px solid #cfd3d5;
}

.legal-requisites > * {
  padding: 13px 16px;
  border-right: 1px solid #cfd3d5;
  border-bottom: 1px solid #cfd3d5;
}

.legal-requisites span {
  color: #6b7175;
  background: #f1f3f3;
  font-size: 12px;
  font-weight: 750;
}

.legal-requisites strong {
  font-size: 14px;
  line-height: 1.5;
}

.legal-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.legal-data-grid article {
  padding: 20px;
  background: #f1f3f3;
  border-left: 4px solid #aeb4b7;
}

.legal-data-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #202326;
  font-size: 14px;
}

.legal-data-grid p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.legal-callout {
  margin-top: 22px;
  padding: 22px 24px;
  color: #fff;
  background: var(--steel);
  border-left: 5px solid var(--raspberry);
}

.legal-callout strong {
  display: block;
  margin-bottom: 7px;
  color: #fff;
}

.legal-callout p,
.legal-callout a {
  color: #d7dadc !important;
}

.legal-signature {
  display: grid;
  gap: 8px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 4px solid #202326;
}

.legal-signature span {
  color: #6b7175;
  font-size: 12px;
}

.legal-signature strong {
  font-size: 14px;
}

.legal-site .footer {
  padding-top: 48px;
}

.legal-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1.25fr;
  gap: 50px;
}

.legal-footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
  color: #bfc4c7;
  font-size: 13px;
  line-height: 1.6;
}

.legal-footer-column strong {
  color: #fff;
  font-size: 14px;
}

.legal-footer-column a:hover,
.legal-footer-column a:focus-visible {
  color: #ef477a;
}

.legal-footer-bottom {
  align-items: center;
}

@media (width <= 900px) {
  .legal-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-version {
    width: min(100%, 320px);
  }

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

  .legal-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
  }

  .legal-nav > span {
    grid-column: 1 / -1;
  }

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

@media (width <= 600px) {
  .legal-site .utility-inner span:first-child {
    display: inline-flex;
  }

  .legal-site .utility-inner a {
    display: none;
  }

  .legal-home-link {
    width: 44px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .legal-home-link span {
    font-size: 20px;
  }

  .legal-hero-grid {
    min-height: 340px;
    padding: 48px 0;
  }

  .legal-hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .legal-hero-lead {
    font-size: 15px;
  }

  .legal-content-shell {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .legal-nav {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .legal-site .legal-document {
    padding: 28px 22px;
  }

  .legal-intro {
    padding: 18px;
    font-size: 15px;
  }

  .legal-requisites,
  .legal-data-grid,
  .legal-footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-requisites span {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .legal-requisites strong {
    padding-top: 4px;
  }

  .legal-footer-bottom {
    align-items: flex-start;
  }
}
