.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(120, 190, 32, 0.11), transparent 32rem),
    var(--surface);
  color: var(--text);
}

.legal-shell {
  width: min(calc(100% - 40px), 1040px);
  margin-inline: auto;
}

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(224, 223, 217, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.legal-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--ink);
  text-decoration: none;
}

.legal-brand img {
  width: 116px;
  height: 48px;
  object-fit: contain;
}

.legal-brand span {
  display: grid;
  gap: 1px;
}

.legal-brand strong {
  font-size: 15px;
  font-weight: 700;
}

.legal-brand small {
  color: var(--muted);
  font-size: 11px;
}

.legal-back {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 13px;
}

.legal-main {
  padding-block: 76px 100px;
}

.legal-hero {
  max-width: 820px;
  margin-bottom: 36px;
}

.legal-hero h1 {
  max-width: 800px;
  margin: 10px 0 18px;
  color: var(--ink);
  font-family: "Herbalife Walsheim GT", "Herbalife Natural", Arial, sans-serif;
  font-size: clamp(46px, 8vw, 80px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.legal-lead {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.45;
}

.legal-version {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-alert {
  margin: 0 0 32px;
  padding: 19px 22px;
  border: 1px solid #e0b567;
  border-radius: var(--radius);
  background: #fff8e9;
  color: #725116;
}

.legal-alert strong {
  display: block;
  color: #5d420f;
  font-size: 15px;
}

.legal-alert p {
  margin: 5px 0 0;
  font-size: 14px;
}

.legal-index {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}

.legal-index a {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.legal-index a:hover {
  border-color: var(--accent);
}

.legal-section {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 28px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.legal-number {
  margin: 4px 0 0;
  color: var(--accent);
  font-family: "Herbalife Walsheim GT", "Herbalife Natural", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.legal-section h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: "Herbalife Walsheim GT", "Herbalife Natural", Arial, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.legal-section h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.legal-section p,
.legal-section li {
  font-size: 16px;
  line-height: 1.65;
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-section ul {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding-left: 21px;
}

.legal-section a {
  color: var(--brand);
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.legal-details div {
  min-width: 0;
  padding: 16px 18px;
  background: var(--white);
}

.legal-details dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}

.legal-table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.legal-table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
  line-height: 1.5;
}

.legal-table th {
  background: var(--brand-deep);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table code {
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.legal-callout {
  margin-top: 26px;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #edf4ec;
}

.legal-callout p {
  margin: 0;
}

.legal-clear {
  margin: 5px 0 10px;
}

.legal-action-status {
  min-height: 24px;
  color: var(--brand);
  font-weight: 700;
}

.legal-footer {
  padding-block: 38px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.legal-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-footer p strong {
  color: var(--ink);
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-footer a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-footer a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 720px) {
  .legal-shell {
    width: min(calc(100% - 28px), 1040px);
  }

  .legal-header-inner {
    min-height: 72px;
  }

  .legal-brand img {
    width: 92px;
    height: 40px;
  }

  .legal-brand span {
    display: none;
  }

  .legal-back {
    min-height: 38px;
    padding: 8px 12px;
  }

  .legal-main {
    padding-block: 54px 72px;
  }

  .legal-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 38px 0;
  }

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

  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-page {
    scroll-behavior: auto;
  }
}
