/* Shared by privacy.html, terms.html and get.html.
 *
 * Plain CSS and no JavaScript on purpose: these are the pages somebody reaches
 * when they want to know what is being done with their data, or when something
 * has gone wrong. They should render on anything, instantly, including for an
 * App Review tester on a bad connection. */

@font-face {
  font-family: 'Press Start 2P';
  src: url('/fonts/press-start-2p-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: 'Pixelify Sans';
  src: url('/fonts/pixelify-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: block;
}

:root {
  --ink: #1b1b2f;
  --cream: #fdfbf3;
  --tile: #efe7d2;
  --green: #4caf30;
  --dkgreen: #2f6b1c;
  --sky: #9cd4f5;
  --sky-deep: #6fb8e8;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 16px calc(48px + env(safe-area-inset-bottom, 0px));
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, var(--sky), var(--sky-deep));
  color: var(--ink);
  font-family: 'Pixelify Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  border: 4px solid var(--ink);
  background: var(--cream);
  box-shadow: 4px 4px 0 rgba(27, 27, 47, 0.35);
}

header {
  border-bottom: 4px solid var(--ink);
  background: var(--tile);
  padding: 14px 20px;
}

header a {
  color: var(--dkgreen);
}

h1 {
  margin: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  line-height: 1.5;
  text-transform: uppercase;
}

.body {
  padding: 20px;
}

h2 {
  margin: 28px 0 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  line-height: 1.6;
  color: var(--dkgreen);
  text-transform: uppercase;
}

h2:first-child {
  margin-top: 0;
}

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

ul {
  padding-left: 20px;
}

a {
  color: #2f6bd0;
}

strong {
  font-weight: 700;
}

.updated {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  text-transform: uppercase;
  opacity: 0.5;
}

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

th,
td {
  border: 2px solid rgba(27, 27, 47, 0.2);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--tile);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  text-transform: uppercase;
}

footer {
  max-width: 44rem;
  margin: 16px auto 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  text-transform: uppercase;
  text-align: center;
  color: rgba(27, 27, 47, 0.55);
}

footer a {
  color: rgba(27, 27, 47, 0.75);
}
