:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #292e29;
  background: #f7f6f2;
  color-scheme: light;
  --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
  --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --safe-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.75; }
a { color: #536c53; text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { color: #8b4936; }
a:focus-visible { outline: 3px solid #8b4936; outline-offset: 4px; border-radius: 3px; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 2; background: #fffefa; padding: 8px 16px; }
.skip-link:focus { top: calc(12px + var(--safe-top)); }
.legal-shell { max-width: 1200px; margin: auto; padding: calc(28px + var(--safe-top)) calc(32px + var(--safe-right)) calc(32px + var(--safe-bottom)) calc(32px + var(--safe-left)); }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #e7e6de; }
.legal-brand { font: 700 32px Georgia, serif; text-decoration: none; color: #292e29; }
.legal-brand span { color: #8b4936; }
.legal-back { font-size: 14px; padding: 9px 0; }
.legal-heading { padding: 42px 0 30px; max-width: 850px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; color: #6d7168; }
h1 { font: 400 clamp(32px, 5vw, 48px)/1.15 Georgia, serif; margin: 14px 0; }
.legal-intro { color: #60665d; font-size: 17px; }
.legal-updated { color: #656c60; font-size: 13px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; align-items: start; }
.legal-index { border: 1px solid #e0e2d7; border-radius: 16px; padding: 22px; background: #edf1e8; font-size: 14px; }
.legal-index strong { font-weight: 600; }
.legal-index ol { margin: 12px 0 0; padding-left: 20px; }
.legal-index li { padding: 4px 0; }
.legal-index a { text-decoration: none; }
.legal-document { min-width: 0; background: #fffefa; border: 1px solid #e7e6de; border-radius: 16px; padding: clamp(22px, 4vw, 38px); }
.legal-document section { scroll-margin-top: calc(20px + var(--safe-top)); }
.legal-document section + section { border-top: 1px solid #e7e6de; margin-top: 30px; padding-top: 26px; }
h2 { font: 400 25px/1.3 Georgia, serif; margin: 0 0 16px; }
p { margin: 0 0 16px; }
section > :last-child { margin-bottom: 0; }
ul { padding-left: 22px; }
li { margin: 7px 0; }
.legal-table-wrap { max-width: 100%; overflow-x: auto; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
caption { text-align: left; padding-bottom: 14px; color: #60665d; }
th, td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid #e7e6de; min-width: 145px; }
th { font-weight: 600; }
code { font-size: .9em; overflow-wrap: anywhere; }
.legal-footer { border-top: 1px solid #e7e6de; margin-top: 40px; padding-top: 24px; color: #656c60; font-size: 13px; }
.legal-links { display: flex; gap: 6px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.legal-links a { padding: 8px 0; }
.legal-links [aria-current] { color: #8b4936; font-weight: 600; }
@media (max-width: 760px) {
  .legal-shell { padding: calc(18px + var(--safe-top)) calc(18px + var(--safe-right)) calc(24px + var(--safe-bottom)) calc(18px + var(--safe-left)); }
  .legal-heading { padding-top: 28px; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .legal-index { padding: 18px 22px; }
  .legal-document { padding: 22px 18px; font-size: 15px; }
  .legal-back { font-size: 13px; }
  .legal-links { gap: 4px 20px; }
  .legal-links a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media print {
  .legal-shell { max-width: none; padding: 0; }
  .legal-header, .legal-index, .legal-footer, .skip-link { display: none; }
  .legal-layout { display: block; }
  .legal-document { border: 0; padding: 0; }
  a { color: inherit; }
}
