/* Shared styling for Commit's legal / policy pages.
   These are static HTML, outside the React app, so they carry their own copy of
   the palette — but the values are the marketing site's, from the `.light`
   scope at the foot of src/styles/theme.css, which in turn are the iOS app's
   (CommitTheme.swift). Change one, change the other.

   Was a cream #F5F1E8 ground with Epilogue and a red accent: the identity the
   site had two directions ago. It survived the terminal rebuild because nothing
   in src/ imports it, which is also why it is easy to forget — these pages are
   linked from the footer of every page. */

:root {
  color-scheme: light;
  --bg: #F4F5F7;      /* cmSurfaceApp */
  --fg: #12151A;      /* cmTextStrong */
  --body: #464B54;    /* cmTextBody */
  --muted: #6B7079;   /* cmTextMuted */
  --accent: #2F72E0;  /* cmIdleFg — the app's interactive blue, not the old red */
  --border: #E6E8EC;  /* cmBorderSubtle */
  --card: #FFFFFF;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* SF, matching the app and the rest of the site. No webfont: two of these five
   pages linked Google Fonts and three didn't, so they didn't even agree with
   each other — and a policy page is the last place worth spending a render
   block on. */
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.62;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 245, 247, 0.92);   /* --bg, translucent */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}
.brand:hover { opacity: 0.7; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.site-header nav a:hover { color: var(--fg); }
.btn-primary {
  background: var(--fg);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 15px;          /* CMRadius .md, as the app and the site use */
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.9; }
@media (max-width: 768px) {
  .site-header nav, .btn-primary { display: none; }
}

/* ---- Content ---- */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
h1 {
  font-weight: 900;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 10px;
}
h2 {
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
  margin: 46px 0 12px;
}
h3 {
  font-weight: 600;
  font-size: 17px;
  color: var(--fg);
  margin: 28px 0 8px;
}
p, li { font-size: 16px; }
a { color: var(--accent); }
strong { color: var(--fg); }
.updated {
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}
ul { padding-left: 22px; }
li { margin-bottom: 8px; }
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  background: #ECEEF1;          /* one step deeper than the page, as on the site */
}
.site-footer .inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .brand { font-size: 16px; }
.site-footer .tagline { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer .links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer .links a:hover { color: var(--fg); }
