/* Shared look for the five legal and support pages: /privacy, /terms,
   /health-data, /delete-account and /report.

   Google Play's data-safety form and the store listing want addresses a
   reviewer can open in a desktop browser without installing anything, and the
   app's Settings rows open these same addresses — one document, one place to
   edit it. The palette is the app's, restated here because a static page
   cannot read the Dart theme. */

:root {
  --page: #EDE7D8;
  --card: #FFFDF8;
  --accent: #C41E3A;
  --border: #D4C9AE;
  --title-ink: #3E2E1E;
  --body-ink: #4B4B4B;
  --meta: #6B5D4A;
}

* { box-sizing: border-box; }

/* The masthead every legal page opens with (Wave 32, item 8).

   These pages are read two ways and both have to work. Inside the app they are
   a WebView under app chrome that already says which document this is; on a
   desktop browser they are the whole window, and a reviewer, regulator or
   journalist arriving at the bare URL used to get a wall of text with the only
   branding a text link at the very bottom. */
.masthead {
  max-width: 720px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.masthead .wordmark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--title-ink);
  text-decoration: none;
}

.masthead .wordmark span { color: var(--accent); }

/* The way back to the site's front page, which says how to install the app
   (build 13, T8: the app is used on phones only). */
.masthead .get-app {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  color: var(--title-ink);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

/* Set by the in-app WebView after load: somebody reading this inside the app
   already has it. */
.in-app .masthead .get-app { display: none; }

.page-nav {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 13px;
  color: var(--meta);
}

.page-nav a { margin-right: 14px; }

body {
  margin: 0;
  padding: 28px 16px 64px;
  background: var(--page);
  color: var(--body-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

.sheet {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 28px 36px;
}

h1 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.25;
  color: var(--title-ink);
}

h2 {
  margin: 30px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: var(--title-ink);
}

h3 {
  margin: 20px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--title-ink);
}

.updated {
  margin: 0 0 24px;
  font-size: 12px;
  color: var(--meta);
}

.form-note { margin-top: 14px; }

p, li { margin: 0 0 10px; }

ul { margin: 0 0 14px; padding-left: 20px; }

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

strong { color: var(--title-ink); }

/* Anything the reader must not skim past: the sensitive-data callout on the
   privacy page, the auto-renewal terms, the irreversibility of a deletion. */
.callout {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: #FFF7F2;
}

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

/* Three columns of prose do not survive a 375px phone. The table keeps a
   legible minimum width and scrolls inside its own box; the page itself never
   scrolls sideways. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}

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

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

th {
  background: #F5EFE0;
  color: var(--title-ink);
  font-weight: 600;
}

label {
  display: block;
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--title-ink);
}

input, textarea, select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--body-ink);
  font-family: inherit;
  font-size: 14px;
}

textarea { min-height: 96px; resize: vertical; }

.button {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 20px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #241C14;
    --card: #2E251B;
    --border: #4A3D2C;
    --title-ink: #F1E7D5;
    --body-ink: #DCD2C2;
    --meta: #B3A48C;
  }
  .callout { background: #3A2A22; }
  th { background: #3A2F22; }
  input, textarea, select { background: #241C14; }
}
