/* Shared styling for the Motmot static pages (privacy, support, landing).
 *
 * Deliberately one small stylesheet with no build step and no dependencies:
 * these pages exist to satisfy two App Store URL requirements and to be
 * readable, and anything that can break between here and a static host is a
 * submission blocker for no gain.
 *
 * Colours are lifted from lib/theme.ts so the pages read as the same product.
 */

:root {
  --bg: #12100e;
  --surface: #262220;
  --border: #6a6255;
  --text: #f5f0e8;
  --muted: #8b8275;
  --accent: #4fbfae;
  --correct: #2e9e8f;
  --present: #d99a2b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
}

header {
  padding: 44px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand b {
  font-size: 28px;
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--muted);
  font-size: 14px;
}

/* The two tiles in the wordmark echo the board's two states, which is the
 * cheapest possible way to make these pages look like they belong to the app. */
.tile {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  color: #12100e;
  font-weight: 700;
  font-size: 15px;
  line-height: 26px;
  text-align: center;
  vertical-align: middle;
}

.tile.c {
  background: var(--correct);
}

.tile.p {
  background: var(--present);
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 6px;
}

h2 {
  font-size: 21px;
  margin: 40px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 16px;
  margin: 26px 0 4px;
}

p,
li {
  color: var(--text);
}

.lede,
.meta {
  color: var(--muted);
}

.meta {
  font-size: 14px;
  margin-top: 0;
}

ul {
  padding-left: 22px;
}

li {
  margin: 7px 0;
}

a {
  color: var(--accent);
}

/* Language switch. Both languages ship on every page rather than behind a
 * negotiated redirect: the primary store locale is fr-CA and the secondary is
 * en-CA, and a reviewer in either one has to be able to read the policy without
 * changing any setting. */
.langs {
  display: flex;
  gap: 8px;
  margin: 22px 0 0;
}

.langs a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 15px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
}

.langs a.on {
  background: #17685e;
  border-color: #17685e;
  color: #fff;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 22px 0;
}

.card p:first-child {
  margin-top: 0;
}

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

footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer a {
  margin-right: 16px;
}

@media (max-width: 600px) {
  h1 {
    font-size: 25px;
  }
  body {
    font-size: 15px;
  }
}
