.legal-page-main {
  padding: 38px 0 72px;
}

body.site-legal *,
body.site-legal *::before,
body.site-legal *::after {
  animation: none !important;
  transition: none !important;
}

body.site-legal [data-page-shell] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.legal-shell {
  width: min(960px, 100%);
  margin: 0 auto;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.legal-page-head {
  margin-bottom: 1.8rem;
}

.legal-page-title {
  margin-bottom: 0.45rem;
  color: var(--blue);
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legal-effective-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.legal-divider {
  width: 100%;
  height: 1px;
  margin-top: 1.35rem;
  background: rgba(16, 42, 67, 0.12);
  border: 0;
}

.legal-document-shell {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(16, 42, 67, 0.08);
  box-shadow: 0 18px 36px rgba(16, 42, 67, 0.08);
}

.legal-document {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.9;
}

.legal-document p,
.legal-document ul,
.legal-document ol,
.legal-document h2,
.legal-document h3 {
  margin-top: 0;
}

.legal-document p {
  margin-bottom: 1rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.legal-document h2 {
  margin-bottom: 0.8rem;
  padding-top: 0.8rem;
  color: var(--blue);
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  font-weight: 700;
}

.legal-document h3 {
  margin-bottom: 0.65rem;
  color: #134678;
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  font-weight: 700;
}

.legal-document ul,
.legal-document ol {
  margin-bottom: 1.05rem;
  padding-left: 1.35rem;
  color: var(--muted);
}

.legal-document li {
  margin-bottom: 0.55rem;
  padding-left: 0.18rem;
}

.legal-document .legal-spacer {
  height: 0.9rem;
}

.legal-document-shell,
.legal-document {
  scroll-margin-top: calc(var(--header-offset) + 20px);
}

@media (max-width: 780px) {
  .legal-page-main {
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .legal-document-shell {
    border-radius: 22px;
    padding: 22px 18px;
  }
}

@media (max-width: 520px) {
  .legal-page-title {
    font-size: 2rem;
  }

  .legal-document {
    font-size: 0.96rem;
    line-height: 1.82;
  }

  .legal-document ul,
  .legal-document ol {
    padding-left: 1.1rem;
  }
}
