:root {
  color-scheme: light;
  --ink: #1f2b1f;
  --muted: #627364;
  --green: #3f7d58;
  --paper: #fffaf1;
  --line: rgba(31, 43, 31, 0.13);
}

* { box-sizing: border-box; }

html { background: #f4efe6; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f4efe6 0%, #f8f3ec 100%);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

a { color: #286642; }

.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.9);
}

.legal-header-inner,
.legal-shell,
.legal-footer-inner {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
}

.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: 10px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 850;
  text-decoration: none;
}

.legal-brand img { width: 36px; height: 36px; object-fit: contain; }

.legal-language {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 30px 8px 12px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-weight: 750;
}

.legal-shell { padding: 54px 0 76px; }

.legal-document {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(24px, 5vw, 52px);
  background: rgba(255, 250, 241, 0.97);
  box-shadow: 0 22px 60px rgba(49, 62, 48, 0.08);
}

.legal-document[hidden] { display: none; }

.legal-eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.legal-updated { margin: 16px 0 38px; color: var(--muted); }

h2 {
  margin: 36px 0 12px;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

p, li { color: #4e604f; line-height: 1.68; }

ul { padding-left: 22px; }

.legal-note {
  margin: 28px 0;
  border-left: 4px solid #7ca98a;
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  background: #edf4ed;
}

.legal-data {
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) minmax(0, 1fr);
  gap: 10px 18px;
  margin: 22px 0;
}

.legal-data dt { color: var(--muted); font-weight: 750; }
.legal-data dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.legal-footer { border-top: 1px solid var(--line); background: #eaf0e9; }

.legal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 26px 0 32px;
}

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

@media (max-width: 520px) {
  .legal-header-inner { min-height: 68px; }
  .legal-shell { padding-top: 28px; }
  .legal-document { border-radius: 20px; }
  .legal-data { grid-template-columns: 1fr; gap: 4px; }
  .legal-data dd { margin-bottom: 10px; }
}
