:root {
  color-scheme: light;
  --legal-ink: #191a1c;
  --legal-muted: #62666d;
  --legal-line: #dedfdc;
  --legal-paper: #f7f6f2;
  --legal-card: #ffffff;
  --legal-acid: #d8ff57;
  --legal-max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--legal-paper);
  color: var(--legal-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #455900; }
a:focus-visible, button:focus-visible { outline: 3px solid #92ba00; outline-offset: 3px; }

.legal-shell { width: min(calc(100% - 32px), var(--legal-max)); margin: 0 auto; }

.legal-header {
  border-bottom: 1px solid var(--legal-line);
  background: rgba(247, 246, 242, .92);
  backdrop-filter: blur(12px);
}

.legal-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legal-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.legal-brand__mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--legal-ink);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: -.04em;
}
.legal-brand__mark::after {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--legal-paper);
  border-radius: 50%;
  background: var(--legal-acid);
  content: "";
}
.legal-brand__copy { display: grid; gap: 1px; line-height: 1.05; }
.legal-brand__copy strong { font-size: 11px; letter-spacing: .12em; }
.legal-brand__copy small { color: var(--legal-muted); font-size: 9px; letter-spacing: .15em; }
.legal-header__back { color: var(--legal-muted); font-size: 14px; }

.legal-hero { padding: clamp(48px, 7vw, 94px) 0 38px; }
.legal-kicker { margin: 0 0 14px; color: #5a7300; font-size: 12px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.legal-hero h1 { max-width: 900px; margin: 0; font-size: clamp(35px, 5.6vw, 70px); line-height: .98; letter-spacing: -.065em; }
.legal-hero__intro { max-width: 720px; margin: 25px 0 0; color: var(--legal-muted); font-size: 18px; }

.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 34px;
  border: 1px solid var(--legal-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--legal-card);
}
.legal-summary div { min-height: 103px; padding: 20px; border-right: 1px solid var(--legal-line); }
.legal-summary div:last-child { border-right: 0; }
.legal-summary span { display: block; color: var(--legal-muted); font-size: 12px; }
.legal-summary strong { display: block; margin-top: 6px; font-size: 15px; line-height: 1.3; }

.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); padding-bottom: 74px; }
.legal-toc { position: sticky; top: 24px; align-self: start; display: grid; gap: 10px; padding: 18px 0; font-size: 13px; }
.legal-toc b { margin-bottom: 3px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.legal-toc a { color: var(--legal-muted); text-decoration: none; }
.legal-toc a:hover { color: var(--legal-ink); }

.legal-content { min-width: 0; }
.legal-content section { padding: 26px 0 31px; border-top: 1px solid var(--legal-line); }
.legal-content h2 { margin: 0 0 14px; font-size: clamp(24px, 3.2vw, 35px); line-height: 1.06; letter-spacing: -.045em; }
.legal-content h3 { margin: 23px 0 9px; font-size: 18px; line-height: 1.2; }
.legal-content p, .legal-content li { max-width: 780px; }
.legal-content p { margin: 0 0 13px; }
.legal-content ul { margin: 0; padding-left: 20px; }
.legal-content li + li { margin-top: 7px; }
.legal-callout { max-width: 780px; margin: 18px 0; padding: 17px 18px; border-left: 4px solid var(--legal-acid); border-radius: 0 12px 12px 0; background: #eff0e9; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { padding: 13px 12px; border: 1px solid var(--legal-line); text-align: left; vertical-align: top; }
.legal-table th { background: #efefeb; font-size: 12px; }
.legal-table td:first-child { width: 25%; font-weight: 700; }

.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.legal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 16px; border: 1px solid var(--legal-ink); border-radius: 999px; background: transparent; color: var(--legal-ink); font: inherit; font-size: 14px; font-weight: 680; text-decoration: none; cursor: pointer; }
.legal-button--accent { background: var(--legal-acid); }

.legal-footer { padding: 28px 0 44px; border-top: 1px solid var(--legal-line); color: var(--legal-muted); font-size: 13px; }
.legal-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.legal-footer__links { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 760px) {
  .legal-shell { width: min(calc(100% - 28px), var(--legal-max)); }
  .legal-header__inner { min-height: 66px; }
  .legal-brand__copy { display: none; }
  .legal-hero { padding-top: 48px; }
  .legal-hero__intro { font-size: 16px; }
  .legal-summary { grid-template-columns: 1fr; }
  .legal-summary div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--legal-line); }
  .legal-summary div:last-child { border-bottom: 0; }
  .legal-layout { display: block; }
  .legal-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 26px; padding: 0; }
  .legal-toc b { grid-column: 1 / -1; }
  .legal-content section { padding: 23px 0 28px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table th { display: none; }
  .legal-table td:first-child { border-bottom: 0; padding-bottom: 4px; }
  .legal-table td + td { border-top: 0; padding-top: 8px; }
}
