.legal-page {
  background: #f7f5f1;
  color: #1f1f1f;
  min-height: 100vh;
}

.legal-page .legal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-page .legal-hero {
  background:
    radial-gradient(circle at 90% 15%, rgba(232, 117, 36, .14), transparent 32%),
    linear-gradient(135deg, #f6fbf7 0%, #fffaf4 100%);
  border-bottom: 1px solid #e5e8e5;
  padding: clamp(44px, 8vw, 92px) 0 clamp(36px, 6vw, 68px);
}

.legal-page .legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.legal-page .legal-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
}

.legal-page .legal-hero-copy {
  max-width: 780px;
  margin: 22px 0 0;
  color: #555f58;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.legal-page .legal-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.legal-page .legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #dfe5df;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #465048;
  font-size: 13px;
  font-weight: 700;
}

.legal-page .legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(36px, 6vw, 72px) 0 80px;
}

.legal-page .legal-toc {
  align-self: start;
  position: sticky;
  top: 112px;
  padding: 20px;
  border: 1px solid #e4e6e3;
  border-radius: 18px;
  background: #fff;
}

.legal-page .legal-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.legal-page .legal-toc a {
  display: block;
  padding: 8px 0;
  color: #5f6761;
  font-size: 14px;
  line-height: 1.35;
  border-bottom: 1px solid #f0f0ee;
}

.legal-page .legal-toc a:last-child {
  border-bottom: 0;
}

.legal-page .legal-toc a:hover,
.legal-page .legal-toc a:focus-visible {
  color: var(--green);
}

.legal-page .legal-content {
  min-width: 0;
}

.legal-page .legal-intro-card {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid #dfe8e1;
  border-radius: 20px;
  background: #f2f8f3;
}

.legal-page .legal-intro-card p {
  margin: 0;
}

.legal-page .legal-section {
  scroll-margin-top: 120px;
  padding: 30px 0;
  border-bottom: 1px solid #e1e3e1;
}

.legal-page .legal-section:first-of-type {
  padding-top: 0;
}

.legal-page .legal-section:last-child {
  border-bottom: 0;
}

.legal-page .legal-section h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.02em;
}

.legal-page .legal-section h3 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.legal-page .legal-section p,
.legal-page .legal-section li {
  color: #4d5650;
  font-size: 16px;
  line-height: 1.75;
}

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

.legal-page .legal-section ul,
.legal-page .legal-section ol {
  margin: 10px 0 16px;
  padding-left: 22px;
}

.legal-page .legal-section li + li {
  margin-top: 7px;
}

.legal-page .legal-callout {
  margin: 18px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 0 14px 14px 0;
  background: var(--orange-soft);
  color: #5b493d;
}

.legal-page .legal-contact {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e4e6e3;
}

.legal-page .legal-contact strong {
  color: #1f2922;
}

.legal-page .legal-contact a {
  color: var(--green);
  font-weight: 800;
}

.legal-page .legal-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.legal-page .legal-footer-links a {
  color: #dce8de;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .legal-page .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-page .legal-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .legal-page .legal-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 740px) {
  .legal-page .legal-header-actions .text-button {
    display: inline-flex;
  }

  .legal-page .legal-header-actions .primary-button {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .legal-page .header-row {
    grid-template-columns: 1fr;
  }

  .legal-page .legal-header-actions {
    justify-content: flex-start;
  }

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

  .legal-page .legal-hero h1 {
    font-size: 42px;
  }
}

@media print {
  .legal-page {
    background: #fff;
  }

  .legal-page .site-header,
  .legal-page .legal-toc,
  .legal-page .site-footer {
    display: none !important;
  }

  .legal-page .legal-hero {
    padding: 0 0 24px;
    background: #fff;
  }

  .legal-page .legal-layout {
    display: block;
    padding: 20px 0 0;
  }

  .legal-page .legal-section {
    break-inside: avoid;
  }
}
