:root {
  --green-900: #173e30;
  --green-800: #1e513c;
  --green-700: #28684c;
  --green-100: #e4ede6;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --gold: #bd8b3d;
  --rose: #a34f52;
  --ink: #262d28;
  --muted: #667068;
  --line: rgba(23, 62, 48, .15);
  --shadow: 0 20px 50px rgba(36, 47, 38, .09);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { color: white; background: var(--green-700); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.container { width: min(1040px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  background: var(--green-900);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

.legal-header { padding: 20px 0; border-bottom: 1px solid var(--line); background: rgba(247, 242, 232, .94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 76px; height: auto; }
.back-link { color: var(--green-800); font-size: 14px; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.legal-hero { padding: 86px 0 62px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { width: 30px; height: 1px; content: ''; background: var(--gold); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; }
h1 { max-width: 800px; font-size: clamp(43px, 6vw, 67px); line-height: 1.02; letter-spacing: -.035em; }
h2 { margin-bottom: 18px; color: var(--green-900); font-size: clamp(28px, 3.5vw, 38px); line-height: 1.15; }
h3 { margin: 28px 0 10px; color: var(--green-900); font-size: 22px; }
p { margin: 0 0 17px; }
p:last-child { margin-bottom: 0; }
.intro { max-width: 760px; margin-top: 23px; color: var(--muted); font-size: 19px; }
.updated { margin-top: 22px; color: var(--muted); font-size: 13px; }

.launch-notice {
  margin-top: 35px;
  padding: 24px 27px;
  border-left: 3px solid var(--gold);
  border-radius: 0 15px 15px 0;
  color: var(--green-900);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.launch-notice strong { display: block; margin-bottom: 5px; }

.legal-main { padding: 0 0 96px; }
.legal-content { padding: 58px 64px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.legal-section { padding: 38px 0; border-bottom: 1px solid var(--line); }
.legal-section:first-child { padding-top: 0; }
.legal-section:last-child { padding-bottom: 0; border-bottom: 0; }
.legal-section p, .legal-section li { color: var(--muted); }
.legal-section a { color: var(--green-800); font-weight: 700; text-underline-offset: 3px; }
.legal-section ul { margin: 16px 0 0; padding-left: 22px; }
.legal-section li + li { margin-top: 8px; }

.todo-box {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(163, 79, 82, .28);
  border-radius: 15px;
  background: rgba(163, 79, 82, .055);
}
.todo-box strong { color: var(--rose); }
.todo-item { color: var(--ink); font-size: 15px; }
.todo-item::before { margin-right: 7px; content: 'DOPLNIT:'; color: var(--rose); font-size: 11px; font-weight: 900; letter-spacing: .08em; }

.status-card { margin-top: 20px; padding: 24px; border-radius: 16px; background: var(--green-100); }
.status-card strong { display: block; margin-bottom: 7px; color: var(--green-900); }
.status-card p { color: var(--muted); }

.audit-table { width: 100%; margin-top: 24px; border-collapse: collapse; }
.audit-table th, .audit-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.audit-table th { color: var(--green-900); background: var(--green-100); font-size: 13px; }
.audit-table td { color: var(--muted); font-size: 15px; }
.audit-table th:first-child { border-radius: 10px 0 0 0; }
.audit-table th:last-child { border-radius: 0 10px 0 0; }
.tag { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--green-800); background: var(--green-100); font-size: 11px; font-weight: 900; white-space: nowrap; }

.legal-footer { padding: 30px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.footer-inner, .footer-links { display: flex; align-items: center; }
.footer-inner { justify-content: space-between; gap: 22px; }
.footer-links { flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; }
.legal-footer a { text-underline-offset: 3px; }

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { width: min(100% - 34px, 600px); }
  .legal-header { padding: 15px 0; }
  .brand img { width: 66px; }
  .legal-hero { padding: 62px 0 45px; }
  .intro { font-size: 17px; }
  .legal-main { padding-bottom: 68px; }
  .legal-content { padding: 34px 23px; border-radius: 20px; }
  .legal-section { padding: 30px 0; }
  .audit-table, .audit-table thead, .audit-table tbody, .audit-table tr, .audit-table th, .audit-table td { display: block; }
  .audit-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .audit-table tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .audit-table td { padding: 5px 0; border: 0; }
  .audit-table td::before { display: block; margin-bottom: 2px; color: var(--green-900); content: attr(data-label); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
