/*
 * Styling for the privacy, terms and support pages.
 *
 * These are deliberately plain static HTML rather than app routes: the web app
 * is a client-rendered SPA that renders nothing without JavaScript, and these
 * URLs are fetched directly by Google's OAuth consent-screen review and by app
 * store reviewers. They also have to be readable by someone with no account,
 * which the auth gate would otherwise prevent.
 */

:root {
  --navy: #1f2933;
  --road: #ffffff;
  --orange: #f26b1d;
  --accent: #b3480b; /* the darker shade, 5.46:1 on white */
  --text: #1f2933;
  --muted: #55606b;
  --rule: #e2e6ea;
  --bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --accent: #f26b1d; /* 4.85:1 on the navy */
    --text: #e8eaed;
    --muted: #a9b2bc;
    --rule: #333d47;
    --bg: #1f2933;
  }
}

:root[data-theme='dark'] {
  --accent: #f26b1d;
  --text: #e8eaed;
  --muted: #a9b2bc;
  --rule: #333d47;
  --bg: #1f2933;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 16px 96px;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.65 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

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

.brand svg {
  width: 28px;
  height: 28px;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 40px 0 8px;
}

h3 {
  font-size: 1.05rem;
  margin: 24px 0 4px;
}

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

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

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

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

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

th {
  color: var(--muted);
  font-weight: 600;
}

/* Wraps rather than scrolls on a phone: a table that scrolls sideways hides
   the thing it is explaining. */
@media (max-width: 34rem) {
  table,
  tbody,
  tr,
  td,
  th {
    display: block;
    border: 0;
    padding-left: 0;
  }

  tr {
    border-bottom: 1px solid var(--rule);
    padding: 12px 0;
  }

  th {
    padding-bottom: 2px;
  }
}

.note {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 16px;
  margin: 24px 0;
  color: var(--muted);
}

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

footer a {
  margin-right: 16px;
}
