.legal-page {
  position: relative;
  padding: clamp(4rem, 7vw, 8rem) 1.6rem 8rem;
  background: #fff;
}

.legal-page::before,
.legal-page::after {
  display: none;
}

.privacy-bg-animations {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: clip;
  pointer-events: none;
}

.privacy-bg-animations__mirror {
  position: absolute;
  inset: 0;
  transform: scaleX(-1);
  transform-origin: center;
}

.privacy-bg-animations__right {
  top: 42rem;
}

.privacy-bg-animations__left {
  top: 112rem;
}

.legal-document {
  position: relative;
  z-index: 1;
  width: min(100%, 104rem);
  min-width: 0;
  margin: 0 auto;
}

.legal-document__header {
  max-width: 82rem;
  margin-bottom: 3rem;
}

.legal-document__eyebrow {
  display: inline-flex;
  margin: 0 0 1.6rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid rgba(26, 110, 255, 0.26);
  border-radius: 999px;
  color: #1a6eff;
  background: #fff;
  font-family: "Raleway", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-document__title {
  margin: 0;
  color: #1e2736;
  font-family: "Raleway", system-ui, sans-serif;
  font-size: clamp(3.4rem, 5.7vw, 6.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.legal-document__updated {
  margin: 1.8rem 0 0;
  color: #59657a;
  font-family: "Raleway", system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.legal-document__paper {
  width: 100%;
  min-width: 0;
  padding: clamp(2.6rem, 5vw, 6rem);
  border: 1px solid rgba(215, 222, 239, 0.9);
  border-radius: 2.4rem;
  background: #fff;
  box-shadow: none;
}

.legal-document__lead {
  margin: 0;
  padding: 2.2rem 2.4rem;
  border-left: 0.4rem solid #1a6eff;
  border-radius: 0 1.4rem 1.4rem 0;
  background: #eef5ff;
  color: #1e2736;
  font-family: "Raleway", system-ui, sans-serif;
  font-size: 1.9rem;
  line-height: 1.65;
}

.legal-document__section {
  margin-top: 4rem;
}

.legal-document__section h2 {
  margin: 0 0 1.4rem;
  color: #1e2736;
  font-family: "Raleway", system-ui, sans-serif;
  font-size: clamp(2.5rem, 3vw, 3.2rem);
  font-weight: 600;
  line-height: 1.2;
}

.legal-document__section h3 {
  margin: 2.6rem 0 1rem;
  color: #1e2736;
  font-family: "Raleway", system-ui, sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.legal-document__section h4 {
  margin: 2rem 0 0.8rem;
  color: #343e50;
  font-family: "Raleway", system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.35;
}

.legal-document__section p,
.legal-document__section li,
.legal-document__section a,
.legal-document__table th,
.legal-document__table td {
  font-family: "Raleway", system-ui, sans-serif;
  font-size: 1.8rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.legal-document__lead {
  overflow-wrap: anywhere;
}

.legal-document__section p {
  margin: 0;
  color: #434c5b;
}

.legal-document__section p + p,
.legal-document__section p + ul,
.legal-document__section ul + p {
  margin-top: 1.4rem;
}

.legal-document__section ul {
  margin: 1.4rem 0 0;
  padding-left: 2.4rem;
  color: #434c5b;
}

.legal-document__section li + li {
  margin-top: 0.8rem;
}

.legal-document__section strong {
  color: #1e2736;
  font-weight: 700;
}

.privacy-language {
  display: none;
}

html[lang="ru"] .privacy-language--ru,
html[lang="en"] .privacy-language--en,
html[lang="hy"] .privacy-language--am {
  display: block;
}

.legal-document__section a {
  color: #1a6eff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.legal-document__table-wrap {
  overflow: hidden;
  border: 1px solid #d7deef;
  border-radius: 1.6rem;
}

.legal-document__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.legal-document__table th,
.legal-document__table td {
  padding: 1.8rem 2rem;
  color: #343e50;
  text-align: left;
  vertical-align: top;
}

.legal-document__table th {
  color: #1e2736;
  background: #e7effe;
  font-weight: 700;
}

.legal-document__table td {
  border-top: 1px solid #d7deef;
}

.legal-document__table td:first-child {
  width: 34%;
  color: #1e2736;
  font-weight: 600;
}

.legal-document__version {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #d7deef;
  color: #697489;
  font-family: "Raleway", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

@media (max-width: 767px) {
  .legal-page {
    padding: 3rem 1rem 5rem;
  }

  .privacy-bg-animations__right,
  .privacy-bg-animations__left {
    opacity: 0.72;
  }

  .legal-document__header {
    margin-bottom: 2.2rem;
  }

  .legal-document {
    width: 100%;
    max-width: 100%;
  }

  .legal-document__paper {
    width: 100%;
    max-width: 100%;
    padding: 2.4rem 1.8rem;
    border-radius: 1.6rem;
    overflow: hidden;
  }

  .legal-document__lead {
    max-width: 100%;
    padding: 1.7rem;
    font-size: 1.65rem;
  }

  .legal-document__section {
    margin-top: 3.2rem;
  }

  .legal-document__section p,
  .legal-document__section li,
  .legal-document__section a,
  .legal-document__table th,
  .legal-document__table td {
    font-size: 1.6rem;
  }

  .legal-document__section h3 {
    font-size: 1.9rem;
  }

  .legal-document__section h4 {
    font-size: 1.7rem;
  }

  .legal-document__table-wrap {
    overflow: visible;
    border: 0;
  }

  .legal-document__table,
  .legal-document__table tbody,
  .legal-document__table tr,
  .legal-document__table th,
  .legal-document__table td {
    display: block;
    width: 100%;
  }

  .legal-document__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .legal-document__table tr {
    margin-bottom: 1.2rem;
    overflow: hidden;
    border: 1px solid #d7deef;
    border-radius: 1.4rem;
  }

  .legal-document__table td,
  .legal-document__table td:first-child {
    width: 100%;
    padding: 1.5rem 1.6rem;
  }

  .legal-document__table td:first-child {
    border-top: 0;
    background: #e7effe;
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  #cursor,
  #aura,
  .page-fade,
  .privacy-bg-animations,
  .backer,
  .header,
  .footer {
    display: none !important;
  }

  .legal-page {
    padding: 0;
    background: #fff;
  }

  .legal-page::before,
  .legal-page::after {
    display: none;
  }

  .legal-document__title {
    font-size: 28pt;
  }

  .legal-document__paper {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .legal-document__section {
    break-inside: avoid;
  }
}
