/* Legal pages (privacy, terms).
 *
 * These are linked from Google's OAuth consent screen, so they are the first
 * Scriben surface a lot of people see — before the app, before the brand. They
 * therefore run on the SAME token layer as index.html (Visual Design Guide
 * §2.1/§3.1) rather than a generic document stylesheet: neutral surfaces, hairlines,
 * one serif family, 4px radii, no elevation.
 *
 * Deliberately single-theme. The whole product is committed to white as its
 * surface; a dark variant here would be the only dark Scriben screen anywhere. */

:root {
  --bg: #f7f7f8;
  --card: #ffffff;
  --ink: #151515;
  --muted: #414348;
  --muted-2: #5f636a;
  --faint: #6f737a;
  --line: #e4e5e7;
  --line-2: #ececee;
  --stroke: #d5d7da;
  --cream: #ffffff;
  --cream-line: #d5d7da;
  --gold: #151515;
  --serif: "Newsreader", "Songti SC", "PingFang SC", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  font-optical-sizing: auto;
}

/* One measure for the whole document, wide enough to read as a legal
   instrument rather than an article: the scope table and the rights lists are
   scanned by section, not read linearly, and 68ch cramped both. */
.wrap {
  max-width: 86ch;
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* --- masthead --------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
  padding: 28px 0 22px;
}

.masthead-inner {
  max-width: 86ch;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.masthead nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.masthead nav a {
  color: var(--muted-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.masthead nav a:hover { color: var(--ink); border-bottom-color: var(--stroke); }
.masthead nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

/* --- document head ---------------------------------------------------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  text-wrap: balance;
}

.dateline {
  font-size: 14.5px;
  color: var(--faint);
  margin: 0 0 36px;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 36px;
}

/* --- summary panel ---------------------------------------------------- */

/* The plain-language summary a reader should get even if they read nothing
   else. Set off by a rule and a near-white fill rather than a colour: an
   accent tint here reads as marketing on a document that has to read as
   binding. No colour carries meaning anywhere in these pages. */
.summary {
  background: var(--cream);
  border: 1px solid var(--cream-line);
  border-radius: 4px;
  padding: 22px 24px;
  margin: 0 0 48px;
}

.summary h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 0 0 7px; color: var(--muted); font-size: 16px; }
.summary li:last-child { margin-bottom: 0; }

/* --- sections --------------------------------------------------------- */

/* Numbered because legal text is cross-referenced by number — the numerals
   carry a real addressing function here, not decoration. */
section {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: 40px;
}

section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  text-wrap: balance;
}

h2 .num {
  color: var(--faint);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  margin-right: 12px;
}

h3 {
  font-size: 17.5px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--ink);
}

p { margin: 0 0 16px; color: var(--muted); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
li { margin: 0 0 8px; }

strong { color: var(--ink); font-weight: 600; }

a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

/* --- scope table ------------------------------------------------------ */

/* The Google permissions table is what a reviewer (and a careful user) scans
   for, so it is the one element allowed to break the prose rhythm. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 15px;
}

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

tr:last-child td { border-bottom: none; }

th {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--bg);
  border-bottom-color: var(--line);
  white-space: nowrap;
}

td { color: var(--muted); }
td code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--cream);
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
}

/* --- callout ---------------------------------------------------------- */

/* Google requires the Limited Use disclosure to be conspicuous. A gold rule is
   the system's own way of saying "this is the part that matters". */
.callout {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin: 0 0 20px;
}

.callout p { color: var(--ink); }

/* --- footer ----------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 24px;
  font-size: 14.5px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

footer a { color: var(--muted-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 20px 72px; }
  .masthead-inner { padding: 0 20px; }
  section { padding-top: 28px; margin-top: 32px; }
  h2 .num { display: block; margin: 0 0 2px; font-size: 14px; }
}

/* --- trust status grid (trust-privacy.html) ---------------------------- */

/* A status row, not a badge wall. Competitors ship stock certification
   clip-art; the only honest version of that here is the word "in force" or
   "audit underway" next to a standard we can evidence. Same token layer as the
   rest of the document: hairline, 4px radius, no elevation, no colour. */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 40px;
}

.trust-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 22px;
}

.trust-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.trust-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.trust-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Outlined by default so "audit underway" cannot be mistaken for a finished
   state at a glance; filled only where the status is actually in force. */
.trust-pill {
  flex: none;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--stroke);
  border-radius: 3px;
  color: var(--faint);
  white-space: nowrap;
}

.trust-pill-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

@media (max-width: 640px) {
  .trust-grid { grid-template-columns: 1fr; }
}
