/*
 * The privacy policy and the terms.
 *
 * WHY THESE TWO PAGES ARE PLAIN HTML AND CSS while the rest of this site is a
 * React application. Both are documents that other software has to be able to
 * READ: Google fetches the privacy policy URL when an OAuth app is configured
 * and again when it is reviewed, and neither that fetch nor a crawler nor a
 * link preview can be relied on to run JavaScript. Served through the single
 * page app these would answer 200 with an empty body -- which looks like a
 * working page to anything counting status codes and like a missing policy to
 * anything reading one.
 *
 * So the whole document arrives in the response, and there is nothing to
 * execute. The cost is that the styling here is written out rather than
 * inherited from the application's Tailwind build; the colours and the three
 * typefaces are copied from src/index.css deliberately, and a change there is
 * a change to make here too.
 */

:root {
  --ink: #0b2436;
  --body: #5b6c74;
  --muted: #8b9aa1;
  --line: #e7e7e4;
  --paper: #f5f5f3;
  --blue: #00a7f7;
  --edge: #cde9f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}

.site-header img {
  height: 24px;
  width: auto;
  display: block;
}

.site-header nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-header nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--ink);
}

/* Opening ----------------------------------------------------------------- */

.opening {
  padding-block: 64px;
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.opening h1 {
  margin: 26px 0 0;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 600;
  line-height: 1.15;
}

.opening .lede {
  margin: 26px 0 0;
  font-size: 18px;
}

.updated {
  margin: 22px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--muted);
}

/* Body -------------------------------------------------------------------- */

.document {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding-block: 64px;
}

.document section {
  margin-bottom: 52px;
}

.document section:last-child {
  margin-bottom: 0;
}

.document h2 {
  margin: 0 0 18px;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
}

.document h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}

.document p {
  margin: 0 0 16px;
}

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

.lead-in {
  color: var(--ink);
  font-weight: 600;
  margin-top: 26px;
}

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

code {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  color: var(--ink);
}

ul {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}

ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* The one block a reviewer is looking for, and the one a customer cares most
   about. Lifted off the page so neither has to hunt. */
.highlight {
  margin: 28px 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 16px;
}

.highlight h3 {
  margin-top: 0;
}

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

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding-block: 32px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer nav a {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .opening {
    padding-block: 44px;
  }

  .document {
    padding-block: 44px;
  }

  .site-header nav {
    display: none;
  }
}
