.legal-page main {
  background: #fff;
  overflow-x: clip;
}

.legal-page .legal-shell {
  width: 100%;
  max-width: 920px;
  box-sizing: border-box;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem clamp(4rem, 8vw, 7rem);
}

.legal-page .legal-kicker {
  display: none;
  align-items: center;
  min-height: 28px;
  padding: 0 .75rem;
  border: 1px solid #d3ddfa;
  border-radius: 999px;
  color: #465fff;
  background: #f4f6ff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-page .legal-content {
  min-width: 0;
  margin-top: 1.75rem;
  color: #43527d;
  font-size: .95rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-page .legal-content > * {
  max-width: 100%;
  min-width: 0;
}

.legal-page .legal-content > p,
.legal-page .legal-content > ul,
.legal-page .legal-content > ol,
.legal-page .legal-content > dl {
  margin-top: 1rem;
}

.legal-page .legal-content h2 {
  margin-top: 2.35rem;
  color: #0d1333;
  font-family: var(--font-display, Arial Black, sans-serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.legal-page .legal-content h3 {
  margin-top: 1.35rem;
  color: #27365a;
  font-size: 1rem;
  font-weight: 800;
}

.legal-page .legal-content strong {
  color: #27365a;
  font-weight: 800;
}

.legal-page .legal-content a {
  color: #465fff;
  text-decoration: underline;
  text-decoration-color: #b8c3ff;
  text-underline-offset: 3px;
}

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

.legal-page .legal-content ul { list-style: disc; }
.legal-page .legal-content ol { list-style: decimal; }

.legal-page .legal-content li + li { margin-top: .45rem; }

.legal-page .legal-content dl {
  display: grid;
  gap: .8rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid #e3eafd;
  border-radius: 12px;
  background: #f8faff;
}

.legal-page .legal-content dt {
  color: #27365a;
  font-weight: 800;
}

.legal-page .legal-content dd { margin: .15rem 0 0; }

.legal-page .legal-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid #465fff;
  border-radius: 0 10px 10px 0;
  background: #f4f6ff;
}

.legal-page .legal-footer-inner {
  max-width: 1360px;
  margin-inline: auto;
  padding: 2.25rem 1.25rem 1.35rem;
}

.legal-page .legal-footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.legal-page .legal-footer-brand {
  min-width: 0;
  max-width: 360px;
}

.legal-page .legal-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s ease, filter .2s ease;
}

.legal-page .legal-footer-brand-link:hover {
  opacity: .82;
}

.legal-page .legal-footer-brand-link:active {
  opacity: .58;
}

.legal-page .legal-footer-brand-name {
  color: #465fff;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .95;
}

.legal-page .legal-footer-brand-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255,255,255,.86);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}

.legal-page .legal-footer-brand p {
  max-width: 340px;
  margin: .65rem 0 0;
  color: rgba(255,255,255,.58);
  font-size: .8rem;
  line-height: 1.55;
}

.legal-page .legal-footer-contacts {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.legal-page .legal-footer-contacts > span {
  margin-right: .35rem;
  color: rgba(255,255,255,.72);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-page .legal-contact-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.1);
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.legal-page .legal-contact-link:hover,
.legal-page .legal-contact-link:focus-visible {
  border-color: rgba(147,167,255,.7);
  background: rgba(70,95,255,.45);
  transform: translateY(-1px);
}

.legal-page .legal-contact-link svg { width: 18px; height: 18px; }

.legal-page .legal-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding-top: 1.1rem;
  color: rgba(255,255,255,.45);
  font-size: .75rem;
  text-align: center;
}

.legal-page .legal-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.legal-page .legal-footer-meta a:hover { color: #fff; }

.legal-page .legal-footer-brand-link:hover .legal-footer-brand-name,
.legal-page .legal-footer-brand-link:focus-visible .legal-footer-brand-name {
  color: #93a7ff;
}

@media (max-width: 640px) {
  .legal-page .legal-footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .legal-page .legal-footer-brand { max-width: 360px; }

  .legal-page .legal-footer-contacts { flex-wrap: wrap; justify-content: center; }

  .legal-page .legal-footer-links { gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-page .legal-contact-link { transition: none; }
}
