.legal-page {
  background: #f7fafc;
}

.legal-hero {
  min-height: auto;
  padding: calc(var(--j-nav-h, 78px) + 48px) 0 54px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.legal-hero::after {
  display: none;
}

.legal-hero__shell {
  min-height: 0;
  grid-template-columns: minmax(0, 0.66fr) minmax(260px, 0.34fr);
  gap: 36px;
  align-items: center;
}

.legal-hero .j-first-hero__copy {
  max-width: 760px;
}

.legal-hero .j-first-hero__lead {
  max-width: 680px;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 22px;
  padding: 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 6px;
  background: #ffffff;
  color: #53647c;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-visual {
  justify-self: end;
  width: min(330px, 100%);
}

.legal-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.legal-content-section {
  padding: 44px 0 84px;
}

.legal-shell {
  width: min(1040px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 0.3fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: start;
}

.legal-summary,
.legal-section {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 35, 70, 0.035);
}

.legal-summary {
  position: sticky;
  top: calc(var(--j-nav-h, 78px) + 22px);
  padding: 20px;
}

.legal-summary h2 {
  margin: 0;
  color: #081427;
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0;
}

.legal-summary ul {
  display: grid;
  gap: 11px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.legal-summary li {
  color: #53647c;
  font-size: 0.9rem;
  line-height: 1.58;
}

.legal-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 20px;
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-article {
  display: grid;
  gap: 14px;
}

.legal-section {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
}

.legal-section__number {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #edf3ff;
  color: #1557e6;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.legal-section h2 {
  margin: 0;
  color: #081427;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.legal-section p {
  margin: 10px 0 0;
  color: #53647c;
  line-height: 1.74;
}

.legal-section ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: #53647c;
  line-height: 1.68;
}

@media (max-width: 900px) {
  .legal-hero__shell,
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-visual {
    justify-self: start;
    width: min(260px, 70vw);
  }

  .legal-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: calc(var(--j-nav-h, 78px) + 30px) 0 36px;
  }

  .legal-content-section {
    padding: 32px 0 64px;
  }

  .legal-shell {
    width: min(100% - 32px, 1040px);
  }

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