/* Legal pages. Quicksand to match the app (see the App font system note in the
   iOS project), otherwise deliberately plain: these documents are read, not
   browsed, and they must stay legible when Apple's reviewer opens them on a
   phone. */

@font-face {
  font-family: "Quicksand";
  src: url("fonts/Quicksand-Regular.5845af22f839.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("fonts/Quicksand-Medium.95906e2457ee.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("fonts/Quicksand-SemiBold.dc8fa3ed1fa1.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("fonts/Quicksand-Bold.8003228962d5.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #16181d;
  --ink-soft: #5b6270;
  --rule: #e3e6ec;
  --accent: #1f6feb;
  --surface: #ffffff;
  --canvas: #f6f7f9;
  --warning-ink: #7a2e0e;
  --warning-bg: #fdf2ec;
  --warning-rule: #f0c3a8;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9ecf1;
    --ink-soft: #9aa3b2;
    --rule: #2a2f3a;
    --accent: #6ea8ff;
    --surface: #14161b;
    --canvas: #0d0f13;
    --warning-ink: #f6c9ab;
    --warning-bg: #2a1a12;
    --warning-rule: #6b3a1f;
  }
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border-radius: 8px;
}

.site-header,
main,
.site-footer {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding-block: 1.75rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.9375rem;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
.site-header nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

main {
  padding-block: 2rem 3rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
  scroll-margin-top: 1rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}

p,
ul,
ol,
table {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.4rem;
}

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

strong {
  font-weight: 700;
}

.doc-meta {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
}

/* Definition-style rows used for the data tables in the privacy policy. */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: 700;
  white-space: nowrap;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

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

.identity-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-rule);
  color: var(--warning-ink);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  font-size: 0.9375rem;
  margin: 0 0 2rem;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.doc-list a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
}

.doc-list a:hover,
.doc-list a:focus-visible {
  border-color: var(--accent);
}

.doc-list .doc-list-title {
  font-weight: 700;
  color: var(--accent);
}

.doc-list .doc-list-summary {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem 3rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.footer-identity strong {
  color: var(--ink);
}

.footer-note {
  margin-bottom: 0;
}
