/* Shared styling for the RekallMe legal pages.
   Deliberately plain: these are documents, not marketing. Legible at any
   width, readable in either colour scheme, no fonts to fetch. */

:root {
  --ink: #1b1f3b;
  --body: #4c5375;
  --muted: #727788;
  --rule: #e7e8f2;
  --page: #ffffff;
  --brand: #2f3ac4;
  --note: #f5f5fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ececec;
    --body: #aeaeae;
    --muted: #858585;
    --rule: #333333;
    --page: #121212;
    --brand: #8a93dc;
    --note: #1e1e1e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.mark {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  color: var(--brand);
  text-decoration: none;
}

h1 {
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 1.25rem 0 .4rem;
  text-wrap: balance;
}

h2 {
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: -.01em;
  margin: 2.75rem 0 .75rem;
  text-wrap: balance;
}

h3 {
  color: var(--ink);
  font-size: 1rem;
  margin: 1.75rem 0 .5rem;
}

.updated { color: var(--muted); font-size: .875rem; margin: 0; }

p, li { margin: 0 0 1rem; }
li { margin-bottom: .5rem; }
ul, ol { padding-left: 1.25rem; }

a { color: var(--brand); }

strong { color: var(--ink); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: .95rem;
}

th, td {
  text-align: left;
  padding: .6rem .7rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th { color: var(--ink); font-weight: 700; }

/* Wide tables scroll inside their own box rather than the page. */
.scroll { overflow-x: auto; }

.note {
  background: var(--note);
  border: 1px solid var(--rule);
  border-radius: .6rem;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .875rem;
}

footer a { margin-right: 1rem; }
