/*
 * Shared styling for the two legal pages served at /privacy and /terms.
 *
 * Deliberately a plain stylesheet and not part of the app bundle: these pages
 * are opened by strangers — a crew member checking what a link does, an App
 * Review reviewer — often on mobile data, and they should render before any
 * JavaScript exists. The palette matches src/theme/palette.ts so they do not
 * read as someone else's site.
 */
:root {
  --background: #070708;
  --foreground: #fafafb;
  --muted: #a4a4a7;
  --border: #26262a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--background);
  color: var(--foreground);
  font:
    16px/1.65 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

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

ul {
  padding-left: 1.25rem;
}

li {
  margin: 0.4rem 0;
}

a {
  color: var(--foreground);
}

.updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

/* A claim worth not missing — the link rules, the third-party-data warning. */
.callout {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

.callout p:first-child {
  margin-top: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  display: block;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.95rem;
}

th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
