/*
 * Frictify website — shared styles.
 *
 * Palette matches the app's brand tokens (assets/brand/README.md): #5B93C9 brand blue,
 * #16222E dark ground, #8FBEE8 the lightened mark colour for dark backgrounds. Deliberately
 * plain: these are legal pages that must stay readable on a phone, and the whole site is
 * static HTML with no build step so it cannot rot between releases.
 */

:root {
  --brand: #3a72a8; /* deepened from #5B93C9 for contrast on white — same rationale as the app theme */
  --brand-bright: #5b93c9;
  --bg: #ffffff;
  --surface: #f3f8fd;
  --text: #16222e;
  --text-muted: #55606b;
  --border: #dbe6f1;
  --max-width: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8fbee8;
    --brand-bright: #8fbee8;
    --bg: #16222e;
    --surface: #1d2c3b;
    --text: #f3f8fd;
    --text-muted: #a8b6c4;
    --border: #2b3d4f;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

header.site {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.tagline {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

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

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

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

/* The plain-language summary that opens the policy. Most people read only this. */
.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-bright);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

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

th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Wide tables must scroll themselves rather than the page. */
.table-scroll {
  overflow-x: auto;
}

code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer.site a {
  margin-right: 1rem;
}

.hero {
  padding: 3rem 0 1rem;
}

.hero h1 {
  font-size: 2.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}
