/* The two legal pages are plain static HTML, served by the Studio server at /privacy and /terms.
   They are deliberately outside the React bundle: Google's OAuth reviewer, a crawler and a person
   on a slow connection all have to be able to read them without running an app. Same palette as
   DESIGN.md v2.9, no webfont request, no script. */

:root {
  --background: #eaf3fa;
  --foreground: #020711;
  --card: #f2f8fc;
  --muted-foreground: #626870;
  --border: #d5dde2;
  --ring: #1e63e9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #070c12;
    --foreground: #e7eff6;
    --card: #0d161f;
    --muted-foreground: #98a3ad;
    --border: #1d2a38;
    --ring: #5b93f5;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 24px 96px;
  background: var(--background);
  color: var(--foreground);
  /* Geist is bundled into the app, not into this page. If the browser already has it, it is used;
     otherwise the system stack renders identically well for a document like this. */
  font-family: "Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 720px; margin: 0 auto; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--foreground);
}

.brand img { width: 22px; height: 22px; }

h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  margin: 40px 0 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 { margin: 24px 0 6px; font-size: 15px; font-weight: 600; }

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

.lede, .updated { color: var(--muted-foreground); }

.updated { margin: 0 0 32px; font-size: 13px; }

ul { padding-left: 20px; }

li { margin: 6px 0; }

a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }

a:hover { color: var(--ring); }

.card {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

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

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

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }

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

th { font-weight: 600; }

td:first-child, th:first-child { width: 34%; }

footer {
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 13px;
}

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