/*
 * Shared styling for the Swell Scout information pages: privacy, support,
 * terms.
 *
 * One stylesheet rather than three copies: these pages say overlapping things
 * and will be edited together, and duplicated CSS is how two of them end up
 * looking like different products.
 *
 * Deliberately small and dependency-free. It renders in both colour schemes
 * and needs no build step, which matters because these pages are served
 * straight from the repository by Cloudflare Pages.
 */

:root {
  --bg: #ffffff;
  --fg: #16202b;
  --muted: #5a6b7c;
  --rule: #dde4ea;
  --accent: #0f6cbd;
  --card: #f4f7fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05080e;
    --fg: #e6edf3;
    --muted: #94a6b8;
    --rule: #1c2735;
    --accent: #58a6ff;
    --card: #0d141d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main { max-width: 44rem; margin: 0 auto; padding: 3rem 1.25rem 5rem; }

.brand {
  display: inline-flex; align-items: baseline; gap: .5rem;
  text-decoration: none; color: var(--fg); margin-bottom: 2.5rem;
}
.brand b { font-size: 1.05rem; letter-spacing: -.01em; }
.brand span { color: var(--muted); font-size: .9rem; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .35rem; letter-spacing: -.02em; }
h2 {
  font-size: 1.15rem; margin: 2.5rem 0 .75rem; letter-spacing: -.01em;
  padding-top: 1.25rem; border-top: 1px solid var(--rule);
}
h3 { font-size: 1rem; margin: 1.75rem 0 .5rem; }

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

ul { padding-left: 1.25rem; }
li { margin: .4rem 0; }
a { color: var(--accent); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em; background: var(--card); padding: .1em .35em; border-radius: 4px;
}

.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 1rem 1.25rem; margin: 1.25rem 0;
}

/* Wide content scrolls inside its own box; the page never scrolls sideways. */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td {
  text-align: left; padding: .55rem .7rem;
  border-bottom: 1px solid var(--rule); vertical-align: top;
}
th {
  font-weight: 600; color: var(--muted); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .04em;
}

footer {
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: .9rem;
}
footer nav { margin-bottom: .75rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }

a:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}

/* Utility, so the information pages can run under a CSP with no
   'unsafe-inline' in style-src. */
.tight-top    { margin-top: 0; }
.tight-bottom { margin-bottom: 0; }
