.legal-page { min-height: 100vh; background: #fff; color: #16181b; }
.legal-header { border-bottom: 1px solid #d3d6da; background: #fff; }
.legal-header-inner { width: min(100% - 32px, 1120px); min-height: 72px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.legal-logo { display: inline-flex; align-items: center; }
.legal-logo img { display: block; width: 156px; height: auto; }
.legal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.legal-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 12px; border-radius: 9px; color: #424a50; font-size: 14px; font-weight: 600; text-decoration: none; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { background: #e8f4f1; color: #0b6e69; }
.legal-main { width: min(100% - 32px, 820px); margin: 0 auto; padding: 48px 0 72px; }
.legal-eyebrow { margin: 0 0 10px; color: #0b6e69; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-main h1 { margin: 0; font: 800 clamp(32px, 6vw, 48px)/1.08 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -.045em; }
.legal-intro { max-width: 66ch; margin: 16px 0 0; color: #565c63; font-size: 17px; line-height: 1.65; }
.legal-updated { margin: 14px 0 32px; color: #6b737a; font-size: 13px; }
.legal-content { display: grid; gap: 24px; }
.legal-content section { scroll-margin-top: 24px; }
.legal-content h2 { margin: 0 0 9px; font: 700 20px/1.35 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -.025em; }
.legal-content p, .legal-content li { color: #424a50; font-size: 15px; line-height: 1.75; }
.legal-content p { margin: 8px 0 0; }
.legal-content ul { display: grid; gap: 7px; margin: 9px 0 0; padding-left: 22px; }
.legal-content a { color: #0b6e69; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-callout { margin-top: 28px; padding: 18px 20px; border: 1px solid #d3d6da; border-left: 4px solid #0b6e69; border-radius: 12px; background: #f7f8f9; color: #424a50; font-size: 14px; line-height: 1.65; }
.affiliate-rules-draft { border-left-color: #f5841f; }
.legal-anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.legal-anchor-nav a { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid #d3d6da; border-radius: 10px; padding: 0 16px; background: #f7f8f9; color: #0b6e69; font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.legal-anchor-nav a:hover, .legal-anchor-nav a:focus-visible { border-color: #0b6e69; background: #e8f4f1; }
.affiliate-rules-content section:target h2 { color: #0b6e69; }
.affiliate-back-to-sections { display: inline-flex; min-height: 44px; align-items: center; margin-top: 10px; font-size: 14px; font-weight: 650; }
.affiliate-rules-top { margin-top: 24px; font-size: 14px; }
.affiliate-rules-top a { color: #0b6e69; font-weight: 650; text-underline-offset: 3px; }
.legal-footer { border-top: 1px solid #d3d6da; color: #565c63; }
.legal-footer-inner { width: min(100% - 32px, 1120px); min-height: 72px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal-footer a { color: #0b6e69; font-weight: 600; text-underline-offset: 3px; }
.legal-page a:focus-visible { outline: 3px solid rgb(11 110 105 / 35%); outline-offset: 3px; }
@media (max-width: 600px) {
  .legal-header-inner { min-height: 64px; }
  .legal-logo img { width: 136px; }
  .legal-nav { gap: 0; }
  .legal-nav a { padding-inline: 8px; font-size: 12px; }
  .legal-main { padding: 34px 0 52px; }
  .legal-intro { font-size: 15px; }
  .legal-content { gap: 20px; }
  .legal-content h2 { font-size: 18px; }
  .legal-content p, .legal-content li { font-size: 14px; }
  .legal-footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 17px; }
  .legal-anchor-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .legal-anchor-nav a { min-height: 48px; padding-inline: 10px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .legal-anchor-nav a { transition: none; }
}
