:root {
  --legal-ink: #111319;
  --legal-muted: #565967;
  --legal-coral: #ff573f;
  --legal-line: rgba(17, 19, 25, 0.14);
}

.legal-page {
  min-height: 100svh;
  padding: 56px 0 96px;
  background: #fff;
  color: var(--legal-ink);
}

.legal-page .legal-back {
  display: inline-block;
  margin-bottom: clamp(48px, 8vw, 88px);
  color: var(--legal-ink);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.legal-page article {
  max-width: 860px;
}

.legal-page h1 {
  margin: 0 0 28px;
  color: var(--legal-ink);
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.legal-page h2 {
  margin: 42px 0 14px;
  color: var(--legal-ink);
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.legal-page h3 {
  margin: 24px 0 10px;
  color: var(--legal-ink);
  font-size: 19px;
}

.legal-page p,
.legal-page li,
.legal-page dd,
.legal-page dt {
  color: var(--legal-muted);
  font-size: 16px;
  line-height: 1.65;
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.35em;
}

.legal-page li + li {
  margin-top: 7px;
}

.legal-page a {
  color: #d93c28;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page .legal-meta,
.legal-page .legal-note {
  padding: 18px 20px;
  border: 1px solid var(--legal-line);
  background: #f7f6f4;
}

.legal-page .legal-meta {
  margin-bottom: 34px;
}

.legal-page .legal-note {
  margin-top: 28px;
}

.legal-page .legal-requisites {
  display: grid;
  margin: 18px 0 0;
  grid-template-columns: minmax(150px, 0.42fr) 1fr;
  gap: 1px;
  background: var(--legal-line);
  border: 1px solid var(--legal-line);
}

.legal-page .legal-requisites div {
  display: contents;
}

.legal-page .legal-requisites dt,
.legal-page .legal-requisites dd {
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  overflow-wrap: anywhere;
}

.legal-page .legal-requisites dt {
  color: #777a84;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-notice {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  display: grid;
  width: min(560px, calc(100vw - 32px));
  padding: 13px 14px 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(15, 17, 22, 0.96);
  color: #fff;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.cookie-notice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.cookie-notice a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: #ff573f;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-notice button:hover,
.cookie-notice button:focus-visible {
  background: #ff705d;
}

@media (max-width: 560px) {
  .legal-page {
    padding: 34px 0 88px;
  }

  .legal-page .legal-requisites {
    display: block;
    background: transparent;
  }

  .legal-page .legal-requisites div {
    display: block;
  }

  .legal-page .legal-requisites dt {
    padding-bottom: 2px;
  }

  .legal-page .legal-requisites dd {
    padding-top: 2px;
    padding-bottom: 14px;
  }

  .cookie-notice {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 9px 9px 9px 11px;
    border-radius: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .cookie-notice p {
    font-size: 11px;
    line-height: 1.35;
  }

  .cookie-notice button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }
}

@media print {
  .legal-page {
    padding: 0;
  }

  .legal-page .legal-back,
  .cookie-notice {
    display: none !important;
  }

  .legal-page article {
    max-width: none;
  }

  .legal-page h1 {
    font-size: 30pt;
  }

  .legal-page h2 {
    margin-top: 22pt;
    font-size: 16pt;
    break-after: avoid;
  }

  .legal-page p,
  .legal-page li,
  .legal-page dd,
  .legal-page dt {
    font-size: 10pt;
    line-height: 1.45;
  }
}
