/* Measurements: Body Tracker — privacy and support pages.
   One readable column, a tape-measure rule under the header, cards only where they group content.
   System fonts only: the pages load nothing from other servers. */
:root {
  --bg: #F6FAF9;
  --surface: #FFFFFF;
  --fg: #12302F;
  --muted: #4E6967;
  --accent: #0D8F8C;
  --accent-soft: #DDF1EE;
  --line: #D3E3E0;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1719;
    --surface: #11221F;
    --fg: #E3F1EE;
    --muted: #9AB5B1;
    --accent: #26D6BF;
    --accent-soft: #143A36;
    --line: #24403C;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 var(--font-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: max(24px, env(safe-area-inset-top, 0px)) max(48px, env(safe-area-inset-bottom, 0px));
}

.page { max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; gap: 2.25rem; }

header { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--fg); text-decoration: none; width: fit-content; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand span { font: 600 1.0625rem/1.2 var(--font-display); }
h1 { font: 800 clamp(2rem, 7vw, 2.75rem)/1.1 var(--font-display); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.meta { color: var(--muted); font-size: 0.9375rem; margin: 0; }

nav.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
nav.tabs a {
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  background: var(--accent-soft);
}
nav.tabs a[aria-current="page"] { background: var(--accent); color: var(--bg); }

/* A tape measure: a minor tick every 8px and a major tick every 40px. */
.ruler {
  height: 14px;
  border-top: 2px solid var(--accent);
  background:
    repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 40px) top left / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--accent) 0 1px, transparent 1px 8px) top left / 100% 6px no-repeat;
  opacity: 0.7;
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
section { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
h2 { font: 700 1.375rem/1.25 var(--font-display); margin: 0; text-wrap: balance; }
h3 { font: 650 1.0625rem/1.35 var(--font-body); margin: 0; text-wrap: balance; }
p, ul { margin: 0; }
ul { padding-left: 1.25rem; display: grid; gap: 0.375rem; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.path { font-family: var(--font-mono); font-size: 0.875em; background: var(--accent-soft); padding: 0.05em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
.email { font-weight: 700; user-select: all; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; }

.faq { display: flex; flex-direction: column; gap: 1.25rem; }
.faq > div { display: flex; flex-direction: column; gap: 0.25rem; }

footer {
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}
