/*
 * Shared stylesheet for every page in docs/.
 *
 * New page? Copy the <head>, <header> and <footer> from privacy-policy.html,
 * link this file and logo.png, and write the body. Both sit at the docs/ root
 * so every page can reference them as "style.css" and "logo.png".
 *
 * Plain document styling on purpose: one column, generous line height, no
 * decoration that gets in the way of reading or printing.
 */

:root {
  --teal: #0e7f7c;
  --teal-dark: #0a615f;
  --ink: #1d2321;
  --muted: #5c6b68;
  --rule: #dde4e2;
  --paper: #ffffff;
  --tint: #f5f9f8;
  --measure: 44rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

/* A thin brand rule across the very top of every page. */
body::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--teal);
}

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

/* ---------------------------------------------------------------- header -- */

.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--rule);
}

.masthead img {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  flex: none;
}

.masthead .app-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
}

.masthead .app-note {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ----------------------------------------------------------------- text -- */

main {
  padding: 36px 0 8px;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

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

h2 {
  font-size: 1.18rem;
  margin: 38px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

h3 {
  font-size: 1rem;
  margin: 24px 0 6px;
}

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

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--teal-dark);
}

a:hover {
  color: var(--teal);
}

strong {
  font-weight: 600;
}

/* The short statement at the top of the policy. */
.summary {
  background: var(--tint);
  border-left: 3px solid var(--teal);
  padding: 16px 18px;
  margin: 0 0 30px;
}

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

/* Contact block at the end. */
.contact {
  border: 1px solid var(--rule);
  padding: 16px 18px;
  margin-top: 8px;
}

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

/* ---------------------------------------------------------------- footer -- */

footer {
  margin-top: 44px;
  padding: 18px 0 40px;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}

footer p {
  margin: 0 0 4px;
}

/* ----------------------------------------------------------------- small -- */

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .masthead img {
    width: 44px;
    height: 44px;
  }
}

/* ----------------------------------------------------------------- print -- */

@media print {
  body {
    font-size: 11pt;
    color: #000;
  }

  body::before,
  footer {
    display: none;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  /* Spell out link targets, which are lost on paper. */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-all;
  }

  h2 {
    break-after: avoid;
  }
}
