:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1b382e;
  background: #f7f3e8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: #17533b; }
a:focus-visible, button:focus-visible { outline: 3px solid #e4aa0a; outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1rem, 5vw, 4rem); border-bottom: 1px solid #dce4dc; background: #fff; }
.legal-brand { display: flex; align-items: center; gap: .7rem; color: #173e31; text-decoration: none; font-weight: 800; }
.legal-logo-mark { width: 3.6rem; height: 3.6rem; border-radius: .9rem; object-fit: cover; }
.legal-logo-wordmark { width: clamp(9.5rem, 15vw, 13rem); height: auto; object-fit: contain; }
.legal-nav { display: flex; align-items: center; gap: .45rem; }
.legal-nav a { padding: .55rem .7rem; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 700; }
.legal-nav a[aria-current="page"] { background: #e6efe6; }
.legal-flags { display: flex; gap: .2rem; }
.legal-flags button { min-width: 2.75rem; min-height: 2.75rem; border: 1px solid transparent; border-radius: 50%; background: #f1f4ef; font-size: 1.2rem; }
.legal-flags button.active { border-color: #1f5a43; }
.legal-hero { padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 7vw, 7rem); color: #fff; background: linear-gradient(135deg, #173e31, #2e6a52); }
.legal-hero p { max-width: 48rem; margin: .8rem 0 0; color: #d5e6dc; line-height: 1.6; }
.legal-hero h1 { max-width: 60rem; margin: .4rem 0 0; font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 1.02; }
.legal-eyebrow { margin: 0; font-size: .78rem; font-weight: 850; letter-spacing: .15em; }
.legal-shell { display: grid; grid-template-columns: minmax(12rem, 17rem) minmax(0, 48rem); justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(2rem, 6vw, 5rem) 1rem; }
.legal-toc { position: sticky; top: 1.2rem; align-self: start; padding: 1.1rem; border: 1px solid #d9e0d8; border-radius: 1rem; background: #fff; }
.legal-toc strong { display: block; margin-bottom: .7rem; }
.legal-toc a { display: block; padding: .45rem 0; text-decoration: none; }
.legal-content { min-width: 0; }
.legal-warning { margin: 0 0 1.5rem; padding: 1rem; border-left: .35rem solid #b44926; border-radius: .4rem; color: #672a18; background: #fff0e8; font-weight: 700; line-height: 1.55; }
.legal-section { padding: 0 0 2rem; margin: 0 0 2rem; border-bottom: 1px solid #d8dfd7; }
.legal-section h2 { margin: 0 0 .8rem; font-size: clamp(1.45rem, 4vw, 2rem); }
.legal-section h3 { margin: 1.3rem 0 .5rem; }
.legal-section p, .legal-section li, .legal-section dd { line-height: 1.7; }
.legal-section ul { padding-left: 1.25rem; }
.legal-commercial-terms { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); margin: 0; border: 1px solid #d5ddd5; border-radius: .7rem; overflow: hidden; }
.legal-commercial-terms dt, .legal-commercial-terms dd { margin: 0; padding: .8rem; border-bottom: 1px solid #d5ddd5; }
.legal-commercial-terms dt { background: #eaf1e9; font-weight: 800; }
.legal-commercial-terms dt:last-of-type, .legal-commercial-terms dd:last-of-type { border-bottom: 0; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: .8rem; border: 1px solid #d5ddd5; text-align: left; vertical-align: top; line-height: 1.5; }
.legal-table thead th { background: #eaf1e9; }
.missing { display: inline-block; padding: .15rem .35rem; border-radius: .3rem; color: #722d1e; background: #ffe4da; font-weight: 800; }
.legal-footer { padding: 2rem 1rem; color: #d9e8df; background: #173e31; text-align: center; }
.legal-footer a { color: #fff; }
.legal-footer p { margin: .4rem 0; }
.legal-version { color: #a9c1b4; font-size: .85rem; }
@media (max-width: 900px) {
  .legal-header { align-items: flex-start; flex-wrap: wrap; }
  .legal-nav { order: 3; width: 100%; overflow: auto; }
  .legal-shell { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
@media (max-width: 560px) {
  .legal-header { padding: .65rem .8rem; }
  .legal-logo-mark { width: 3.2rem; height: 3.2rem; }
  .legal-logo-wordmark { width: 8.7rem; }
  .legal-nav a { white-space: nowrap; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .legal-table th { border-bottom: 0; }
  .legal-table tr + tr { margin-top: .8rem; }
  .legal-commercial-terms { grid-template-columns: 1fr; }
  .legal-commercial-terms dt, .legal-commercial-terms dd { border-bottom: 1px solid #d5ddd5; }
  .legal-hero { padding-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
