/*
 * The document pages — privacy and support.
 *
 * A separate stylesheet rather than more inline <style>, because these two
 * pages are the same page with different words in it, and a policy that
 * disagrees with its own support page about what a heading looks like reads
 * as two documents from two companies.
 *
 * index.html keeps its styles inline on purpose (see the note in its head):
 * the landing page must render even if nothing else on the host does. These
 * pages are allowed one request.
 *
 * The tokens are the app's, verbatim from apps/web/src/index.css, same as
 * index.html. Change them there first.
 */

:root {
  --ink: #202b32;
  --ink-2: #404d46;
  --ink-3: #707b81;
  --ink-4: #8b948e;

  --line: #e4e9e6;
  --line-2: #dae2dc;
  --surface: #ffffff;
  --canvas: #f6f8f7;
  --raised: #f8faf8;

  --accent: #225d4d;
  --accent-2: #174c3e;
  --accent-soft: #eaf3ee;
  --accent-line: #cfe3d6;

  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  --display: 'Manrope', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-card: 12px;
  --gutter: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* -- header (identical to index.html) ---------------------------------- */

header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  flex: none;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  background: var(--raised);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

/* -- the document ------------------------------------------------------ */

/*
 * Narrower than the marketing page. Nobody reads a privacy policy for
 * pleasure, and 68 characters a line is the difference between skimming it
 * and giving up on it.
 */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px var(--gutter) 88px;
}

.doc .eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 20px;
}

.doc h1 {
  font-size: 38px;
  font-weight: 800;
}

.doc .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 18px 0 0;
}

.doc .updated {
  font-size: 13.5px;
  color: var(--ink-4);
  margin: 24px 0 0;
}

.doc h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 44px 0 0;
}

.doc h3 {
  font-size: 16.5px;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: -0.01em;
  margin: 28px 0 0;
}

.doc p {
  color: var(--ink-2);
  margin: 14px 0 0;
}

.doc ul {
  color: var(--ink-2);
  margin: 14px 0 0;
  padding-left: 22px;
}

.doc li {
  margin: 7px 0;
}

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

.doc a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/*
 * The one piece of furniture these pages have: a bordered block for the
 * things somebody is actually hunting for — an address to write to, a table
 * of who processes what.
 */
.panel {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 20px 22px;
}

.panel h3:first-child,
.panel p:first-child {
  margin-top: 0;
}

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

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

th {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

td:first-child {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

/* -- footer (identical to index.html) ---------------------------------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 32px 0;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-3);
}

.foot a {
  color: var(--ink-2);
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
}

/*
 * Narrow phones.
 *
 * These pages carry a Pricing button as well as a sign-in, and at 320px that
 * row runs past the edge. Same answer as index.html: keep both buttons and
 * shrink the chrome, because the one somebody came for is never the one you
 * would have guessed.
 */
@media (max-width: 460px) {
  .bar {
    gap: 8px;
  }

  .bar nav {
    gap: 6px;
  }

  .bar nav .btn {
    padding: 0 11px;
    font-size: 13.5px;
  }

  .wordmark {
    font-size: 17px;
  }
}

/* The oldest phones still in use. Two buttons, tighter again. */
@media (max-width: 380px) {
  .bar nav {
    gap: 4px;
  }

  .bar nav .btn {
    padding: 0 8px;
    font-size: 13px;
  }
}

@media (max-width: 860px) {
  .doc {
    padding: 40px var(--gutter) 64px;
  }

  .doc h1 {
    font-size: 30px;
  }

  .hide-sm {
    display: none;
  }

  td:first-child {
    white-space: normal;
  }
}
