/*
 * The two legal pages, and nothing else, share this.
 *
 * They are plain files in `public/` rather than routes in the app because of
 * who reads them: an App Store reviewer pasting a URL into a browser, and a
 * person who wants to know what happens to their voice before they install
 * anything. Neither should need a 462 kB bundle to boot, and the App Store
 * Connect privacy field wants a URL that answers on its own.
 *
 * The colours below are the app's own, read off a running build rather than
 * guessed at: Pantone & Rose Gold on the lighter ground, which is what the
 * app opens on before anybody has chosen anything. They are written out as
 * literal values instead of following the palette a reader picked in
 * Settings, and that is deliberate — the alternative is a second copy of the
 * theme's HSL arithmetic living in a static file, drifting from the real one,
 * to serve a page most people reach with no app state at all.
 */
:root {
  color-scheme: dark;

  --bg-deep: 13 32 48;
  --bg-raise: 27 55 80;
  --hairline: 147 99 88;
  --ink-mid: 183 189 194;
  --metal: 199 138 122;
  --accent: 226 199 193;

  --ink: 235 240 245;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 0 96px;
  /* The app's own ground: deep at the foot, raised at the head, so the page
     opens in the same room the sheet it was linked from sits in. */
  background:
    linear-gradient(180deg, rgb(var(--bg-raise)) 0%, rgb(var(--bg-deep)) 420px)
    rgb(var(--bg-deep));
  color: rgb(var(--ink));
  font: 400 15.5px/1.75 Manrope, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------------------------------------------------------------- the head */

.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 22px 14px;
  /* Blurred rather than opaque, so the gradient keeps showing through as the
     text runs under it — the same trick the app's own bars use. */
  background: rgb(var(--bg-raise) / .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/*
 * The mark and the word, as one link home.
 *
 * `favicon.svg` and not a copy: it is the mic disc the app puts on the home
 * screen, it is already in `public/`, and a second copy of a logo is a second
 * logo to forget when the first one changes. The `alt` is empty on purpose —
 * the word beside it already names the link, and a screen reader saying
 * "LACA LACA" is worse than one that does not.
 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.logo {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  /* The disc is metal; a hairline round it keeps it from floating on the
     blurred bar the way an unedged circle does. */
  box-shadow: 0 0 0 1px rgb(var(--hairline) / .3);
}

.wordmark {
  font-family: Jost, system-ui, sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgb(var(--metal));
  text-decoration: none;
}

/*
 * The way back.
 *
 * These pages are opened from inside the app, in a new tab on a phone, and
 * without this the only way out is whatever chrome the browser happens to
 * show. It is a link to `/` rather than a `history.back()` button because it
 * has to work for the reader who arrived from the App Store listing and has
 * no history to go back to — for them it is not an exit but an invitation.
 */
.close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgb(var(--hairline) / .4);
  background: rgb(var(--bg-deep) / .55);
  color: rgb(var(--accent));
  font-family: Jost, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: transform .12s ease, border-color .2s ease;
}
.close:hover { border-color: rgb(var(--hairline) / .75); }
.close:active { transform: scale(.94); }

/* -------------------------------------------------------------- the titles */

.eyebrow {
  margin: 34px 0 8px;
  font-family: Jost, system-ui, sans-serif;
  font-weight: 300;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgb(var(--ink-mid) / .8);
}

h1 {
  margin: 0 0 6px;
  font-family: Jost, system-ui, sans-serif;
  font-weight: 300;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgb(var(--metal));
}

.updated {
  margin: 0 0 40px;
  color: rgb(var(--ink-mid) / .75);
  font-size: 13px;
}

h2 {
  margin: 42px 0 12px;
  padding-top: 26px;
  border-top: 1px solid rgb(var(--hairline) / .28);
  font-family: Jost, system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(var(--metal));
}

h3 {
  margin: 28px 0 7px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .02em;
  color: rgb(var(--ink));
}

/* --------------------------------------------------------------- the prose */

p, li { color: rgb(var(--accent) / .88); }
p { margin: 0 0 15px; }
ul { margin: 0 0 15px; padding-left: 20px; }
li { margin-bottom: 8px; }
li::marker { color: rgb(var(--hairline)); }
strong { color: rgb(var(--ink)); font-weight: 600; }

a {
  color: rgb(var(--metal));
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(var(--hairline) / .6);
}
a:hover { text-decoration-color: rgb(var(--metal)); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14px;
}
th, td {
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgb(var(--hairline) / .22);
}
th {
  font-family: Jost, system-ui, sans-serif;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgb(var(--ink-mid));
}
td { color: rgb(var(--accent) / .88); }

/* The one paragraph on either page that has to stop somebody. */
.note {
  margin: 0 0 15px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgb(var(--hairline) / .35);
  background: rgb(var(--bg-raise) / .5);
  color: rgb(var(--accent));
  font-size: 15px;
}

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgb(var(--hairline) / .28);
  font-family: Jost, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(var(--ink-mid) / .7);
}
footer a { color: rgb(var(--ink-mid)); text-decoration-color: rgb(var(--hairline) / .5); }

@media (max-width: 480px) {
  body { font-size: 15px; padding-bottom: 72px; }
  main { padding: 0 20px; }
  .bar { padding: 14px 20px 12px; }
  h1 { font-size: 25px; }
  h2 { font-size: 15.5px; }
}
