/* The two legal documents (/privacy, /terms) and nothing else.
 *
 * Deliberately NOT part of styles.css: those pages are plain server-served
 * HTML with no bundle, no router and no theme toggle, and styles.css carries a
 * source-order contract (the 430px phone tier must stay last in the file) that
 * a second author would break within a month. Same tokens, own file.
 *
 * A policy is a document, not a screen: one column, 68 characters wide, real
 * heading hierarchy, and tables that stay tables on a phone.
 */

:root {
  --ink: #0a0a0a;
  --body: #24262b;
  --muted: #5f636b;
  --faint: #8b8f97;
  --paper: #fff;
  --wash: #f6f6f7;
  --rule: #e3e4e7;
  --attention: #ff3b30;
  --attention-text: #d70015; /* red that carries text — 4.5:1 on white */
  /* The SAME two greens the main stylesheet consolidated to, so the data
     labels on this page can't invent a third. */
  --go: #15803d;
  --go-bright: #12a150;
  --display: 'Barlow Condensed', 'SF Pro Display', -apple-system, system-ui, sans-serif;
  --r-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f3;
    --body: #c8cbd0;
    --muted: #9a9ea6;
    --faint: #767a82;
    --paper: #0d0e10;
    --wash: #151719;
    --rule: #24262a;
    --attention-text: #ff6a5d;
    /* Lifted for the dark wash, the same way --attention-text is. */
    --go: #12a150;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* --- masthead -------------------------------------------------------- */

.doc-top {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  margin-bottom: 44px;
}
.doc-top .wrap { display: flex; align-items: center; gap: 14px; }
.doc-top img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.doc-top a { color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.doc-top nav { margin-left: auto; display: flex; gap: 18px; font-size: 14.5px; }
.doc-top nav a { color: var(--muted); font-weight: 500; }
.doc-top nav a:hover { color: var(--ink); }

h1 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.98;
  font-size: clamp(40px, 8vw, 66px);
  color: var(--ink);
  margin: 0 0 14px;
}
.stamp {
  font-size: 13px;
  color: var(--faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 26px;
}
.lede {
  font-size: 19.5px;
  line-height: 1.55;
  color: var(--body);
  margin: 0 0 8px;
}
.lede strong { color: var(--ink); font-weight: 650; }

h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.005em;
  font-size: clamp(24px, 4vw, 31px);
  color: var(--ink);
  margin: 52px 0 12px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 30px 0 6px;
  letter-spacing: -0.005em;
}

p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: var(--ink); font-weight: 650; }
a { color: var(--attention-text); }
code {
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink);
}

/* --- the plain-English summary box ------------------------------------ */

.card {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--attention);
  border-radius: 0 12px 12px 0;
  background: var(--wash);
  padding: 20px 22px;
  margin: 0 0 30px;
}
.card h2 {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.card ul { margin-bottom: 0; }

/* --- the data table (the nutrition label) ----------------------------- */

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  margin: 0 0 22px;
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
caption {
  text-align: left;
  padding: 14px 16px 0;
  font-size: 13.5px;
  color: var(--muted);
}
th, td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.45;
}
thead th {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  background: var(--wash);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td:first-child, th[scope='row'] { color: var(--ink); font-weight: 600; }

.tag {
  display: inline-block;
  border-radius: var(--r-pill);
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid var(--rule);
  background: var(--wash);
  color: var(--muted);
}
/* --go, not a fourth green. #0f7a57 was a hardcoded literal with no dark twin,
   so this tag measured 3.37:1 on the dark wash — and it was neither of the two
   greens the main stylesheet consolidated to. Both are defined at the top of
   this file now, and the dark block lifts to --go-bright (5.34:1). */
.tag.no { color: var(--go); border-color: var(--go); }
.tag.yes { color: var(--attention-text); border-color: var(--attention-text); }

/* --- footer ----------------------------------------------------------- */

.doc-foot {
  border-top: 1px solid var(--rule);
  margin-top: 60px;
  padding: 26px 0 60px;
  font-size: 14px;
  color: var(--faint);
}
.doc-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; }

:focus-visible { outline: 3px solid var(--attention); outline-offset: 2px; border-radius: 3px; }

@media (max-width: 430px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .doc-top nav { gap: 13px; font-size: 13.5px; }
}
