.legal-page {
  background: #f5f8f6;
  color: #15211d;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(22px, 5vw, 76px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #dfe7e2;
  backdrop-filter: blur(12px);
}

.legal-header .brand {
  color: #15211d;
  text-decoration: none;
}

.legal-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.legal-header nav a {
  color: #52605a;
  font-weight: 700;
  text-decoration: none;
}

.legal-header nav a:hover,
.legal-header nav a[aria-current="page"] {
  color: #2467ee;
}

.legal-main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0 100px;
}

.legal-hero {
  max-width: 850px;
  margin-bottom: 38px;
}

.legal-hero h1 {
  margin: 10px 0 18px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 7vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}

.legal-hero p {
  max-width: 760px;
  color: #627069;
  font-size: 18px;
  line-height: 1.7;
}

.legal-updated {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid #ccdad3;
  border-radius: 999px;
  background: #fff;
  color: #53625b;
  font-size: 13px;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 7px;
  padding: 20px;
  border: 1px solid #dce6e0;
  border-radius: 20px;
  background: #fff;
}

.legal-toc strong {
  margin-bottom: 7px;
  font-family: "Manrope", sans-serif;
}

.legal-toc a {
  padding: 7px 9px;
  border-radius: 9px;
  color: #627069;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.legal-toc a:hover {
  background: #edf4ff;
  color: #2467ee;
}

.legal-content {
  padding: clamp(25px, 5vw, 56px);
  border: 1px solid #dce6e0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(23, 50, 38, .08);
}

.legal-content section {
  scroll-margin-top: 110px;
}

.legal-content section + section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid #e3eae6;
}

.legal-content h2 {
  margin: 0 0 15px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.025em;
}

.legal-content h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.legal-content p,
.legal-content li {
  color: #48564f;
  font-size: 16px;
  line-height: 1.75;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-content a {
  color: #2467ee;
  font-weight: 700;
}

.legal-callout {
  margin: 0 0 34px;
  padding: 20px 22px;
  border-left: 4px solid #2467ee;
  border-radius: 4px 16px 16px 4px;
  background: #eef4ff;
  color: #334640;
  line-height: 1.65;
}

.legal-page footer {
  margin-top: 0;
}

@media (max-width: 820px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-header nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .legal-main {
    padding-top: 52px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}
