:root {
  color-scheme: light;
  --ink: #18221d;
  --muted: #5d6a62;
  --line: #d8e0da;
  --paper: #fffef9;
  --brand: #0f6f45;
  --brand-dark: #0a4e31;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: #f6f3ec;
}

a { color: var(--brand-dark); }

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

.legal-header, .legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.legal-brand {
  font-weight: 900;
  color: var(--ink);
  text-decoration: none;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
}

.legal-doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 18px 44px rgba(24, 34, 29, 0.08);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 32px 0 10px;
  font-size: 1.35rem;
}

p, li { color: var(--muted); }

ul { padding-left: 1.25rem; }

.meta {
  margin: 0 0 28px;
  color: #6d786f;
  font-size: 0.95rem;
}

.notice {
  margin: 24px 0;
  padding: 16px;
  border-left: 4px solid var(--brand);
  background: #eef7f1;
  color: var(--ink);
}

.legal-footer {
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 620px) {
  .legal-header, .legal-footer { align-items: flex-start; flex-direction: column; }
}
