:root {
  color-scheme: light;
  --legal-ink: #102019;
  --legal-muted: #607168;
  --legal-brand: #0f6b47;
  --legal-brand-dark: #0a4b33;
  --legal-accent: #b6f000;
  --legal-soft: #f0f8df;
  --legal-line: #dbe5de;
  --legal-page: #f5f8f5;
  --legal-paper: #ffffff;
  --legal-warning: #fff8e8;
  --legal-warning-line: #efd59a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--legal-page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--legal-ink);
  background:
    linear-gradient(180deg, #eaf4ec 0, var(--legal-page) 280px),
    var(--legal-page);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--legal-brand-dark);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(15, 107, 71, 0.32);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand strong {
  letter-spacing: 0;
}

.legal-page-shell {
  min-height: 100vh;
  padding: 32px 20px;
}

.legal-page {
  display: grid;
  width: min(900px, 100%);
  gap: 14px;
  margin: 0 auto;
}

.legal-page-head,
.legal-section,
.legal-callout {
  border: 1px solid var(--legal-line);
  border-radius: 8px;
  background: var(--legal-paper);
  box-shadow: 0 12px 34px rgba(16, 32, 25, 0.06);
}

.legal-page-head {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-top: 5px solid var(--legal-accent);
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--legal-brand-dark);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand div {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 1.12rem;
  line-height: 1.2;
}

.brand small,
.muted,
.legal-section p,
.legal-section li,
.legal-callout p {
  color: var(--legal-muted);
}

.brand small {
  font-size: 0.76rem;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--legal-brand);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.legal-page-head h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.04;
}

.legal-meta,
.legal-page-actions,
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.legal-meta span,
.legal-callout strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--legal-brand-dark);
  background: var(--legal-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.legal-page-head > .muted {
  max-width: 70ch;
  margin-bottom: 0;
}

.legal-page-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--legal-line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.legal-page-actions .primary-btn {
  border-color: var(--legal-brand-dark);
  color: #ffffff;
  background: var(--legal-brand-dark);
}

.legal-page-actions .ghost-btn {
  color: var(--legal-ink);
  background: var(--legal-paper);
}

.legal-section,
.legal-callout {
  padding: 24px 28px;
}

.legal-section h2 {
  margin-bottom: 9px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.legal-section h3 {
  margin: 18px 0 7px;
  font-size: 1rem;
}

.legal-section p,
.legal-callout p {
  margin-bottom: 0;
}

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

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

.legal-callout {
  border-color: var(--legal-warning-line);
  background: var(--legal-warning);
}

.legal-callout strong {
  margin-bottom: 7px;
  background: #ffedbd;
}

.legal-footer {
  justify-content: space-between;
  padding: 18px 4px 4px;
  color: var(--legal-muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.legal-footer a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 620px) {
  .legal-page-shell {
    padding: max(16px, env(safe-area-inset-top)) 12px max(24px, env(safe-area-inset-bottom));
  }

  .legal-page-head,
  .legal-section,
  .legal-callout {
    padding: 20px;
  }

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

  .legal-footer {
    justify-content: center;
    text-align: center;
  }
}

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