/* Legal pages: the app's colour tokens (src/global.css), type scale and cards, without its JS. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-soft: #ecfdf5;
  --background: #f4f6f8;
  --surface: #ffffff;
  --subtle: #f1f3f6;
  --border: #edeff2;
  --ink: #14181f;
  --body: #3f4754;
  --dim: #5c646e;
  --muted: #69707a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-dark: #34d399;
    --accent-soft: #10291f;
    --background: #0f1217;
    --surface: #181c23;
    --subtle: #20252d;
    --border: #272d36;
    --ink: #eef1f5;
    --body: #cdd3db;
    --dim: #aab2bd;
    --muted: #9ca4af;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--body);
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.page {
  max-width: 632px;
  margin: 0 auto;
  padding: 12px 16px 48px;
}

/* Top bar: the app's name, and the language pill of the welcome screen */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--subtle);
}
.lang a,
.lang span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.lang a:hover {
  color: var(--ink);
}
.lang [aria-current] {
  background: var(--accent);
  color: #ffffff;
}

h1 {
  margin: 20px 0 2px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.updated {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

/* Cards, numbered like steps */
main {
  counter-reset: section;
}
.card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.card h2 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.card h2::before {
  counter-increment: section;
  content: counter(section);
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: -1px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 800;
}
.card p {
  margin: 0;
}
.card * + p,
.card * + .list {
  margin-top: 10px;
}
.card strong {
  color: var(--ink);
  font-weight: 700;
}
.card a {
  color: var(--accent-dark);
  font-weight: 700;
  text-underline-offset: 2px;
}

/* "In short": the summary, as the app's check list */
.summary h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.summary h2::before {
  content: none;
  counter-increment: none;
}
.checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}
.checks li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.list {
  margin: 0;
  padding-left: 20px;
}
.list li + li {
  margin-top: 4px;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}

.foot {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
  text-align: center;
}
.foot p {
  margin: 0;
}
.foot a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
.foot code {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--dim);
  font:
    600 11.5px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
