/* The web surface. Four small pages that exist because the app links to
   them: an unsubscribe link in every email, a deep-link bridge from every
   email button, and the two documents an app store will not accept a
   submission without.

   Deliberately plain HTML and CSS with no build step and no framework: these
   pages have to work in a mail client's in-app browser on a five-year-old
   phone, and they must not stop working because a bundle failed. */

:root {
  --green: #16A34A; --green-deep: #15803D; --green-dark: #14532D;
  --ink: #111827; --body: #4B5563; --muted: #6B7280; --faint: #9CA3AF;
  --rule: #E5E7EB; --bg: #F7F8F7; --surface: #FFFFFF; --mint: #DCFCE7;
}

* { box-sizing: border-box; }

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

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.card {
  background: var(--surface);
  border-radius: 22px;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .07);
}

.brand {
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--green-deep);
  text-decoration: none;
  font-size: .95rem;
}

h1 {
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -.6px;
  color: var(--ink);
  margin: .75rem 0 .5rem;
  text-wrap: balance;
}

/* Google Play rejects a privacy policy whose page does not say the words
   "Privacy Policy" at the top — an automated check, and it reads the heading,
   not the prose. So the label is the h1 and the sentence that used to be the
   h1 sits under it. */
.h1sub {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--body);
  letter-spacing: -.2px;
  margin: -.15rem 0 .55rem;
}

h2 {
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -.2px;
  margin: 2rem 0 .5rem;
}

p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin: .35rem 0; }

a { color: var(--green-deep); }

.btn {
  display: inline-block;
  padding: .95rem 1.6rem;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
}
.btn.quiet { background: var(--bg); color: var(--body); }

.small {
  font-size: .85rem;
  /* --muted, not --faint: at 4.8:1 this is readable, where the faint grey is
     about 2.6:1 on white and fails as body text. Faint is for a timestamp,
     not for a sentence somebody has to read. */
  color: var(--muted);
  line-height: 1.55;
}
.note { background: var(--mint); color: var(--green-dark);
        border-radius: 14px; padding: .9rem 1rem; font-size: .9rem; }

footer { max-width: 40rem; margin: 0 auto; padding: 0 1.25rem 3rem; }
footer a { color: var(--muted); margin-right: 1rem; font-size: .85rem; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 0 1rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .5rem;
         border-bottom: 1px solid var(--rule); }
th { color: var(--muted); font-weight: 700; font-size: .8rem;
     text-transform: uppercase; letter-spacing: .06em; }

@media (prefers-color-scheme: dark) {
  :root { --bg: #0B0F0C; --surface: #151A16; --ink: #F3F4F6;
          --body: #C6CBC7; --muted: #9AA29C; --faint: #7C847E; --rule: #262C27;
          --mint: #14532D; }
}
