/*
  The legal pages of Mima (privacy policy, terms, account deletion), hosted on Cloudflare Pages.
  The colors are those of Strata (src/theme/tokens.ts, `palette.light` and `palette.dark`), the
  fonts its own two (Familjen Grotesk for the titles, Hanken Grotesk for the text), served from
  this folder: no third-party request, no script.
*/

@font-face {
  font-family: 'Familjen Grotesk';
  src: url('fonts/FamiljenGrotesk_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/HankenGrotesk_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/HankenGrotesk_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #f9f6f2;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #67615a;
  --line: #e6e0d9;
  --fill: #f2eee8;
  --focus: #e7a23e;
  --keyword: #7e5410;
  --honey-soft: #fbebd2;
  --rose-soft: #fee6e7;
  --rose-ink: #a33949;
  --rose: #c55865;
  --peri-ink: #434a93;
  --shadow: 0 1px 2px rgba(28, 26, 23, 0.04), 0 8px 24px rgba(28, 26, 23, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #131110;
    --surface: #22201d;
    --ink: #f2eee8;
    --muted: #aba49b;
    --line: #383530;
    --fill: #191715;
    --focus: #edb35f;
    --keyword: #f2c27e;
    --honey-soft: #3a2a12;
    --rose-soft: #3a1e21;
    --rose-ink: #f8bcbf;
    --rose: #d9808a;
    --peri-ink: #c3c8f2;
    --shadow: 0 0 0 1px #383530;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family:
    'Hanken Grotesk',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* The bar on top: the name, the languages. */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.brand {
  font-family: 'Familjen Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.languages {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.languages a {
  display: inline-block;
  min-width: 44px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
}

.languages a[aria-current='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* The three pages, as a segmented control. */
.pages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 24px;
  padding: 4px;
  list-style: none;
  background: var(--fill);
  /* 24, not a pill: on a phone the three labels can wrap on two rows (German). */
  border-radius: 24px;
}

.pages li {
  flex: 1 1 auto;
}

.pages a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
}

.pages a[aria-current='page'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

article {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px 24px 32px;
}

h1,
h2,
h3 {
  font-family: 'Familjen Grotesk', system-ui, sans-serif;
  font-weight: 600;
  color: var(--ink);
}

h1 {
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

h3 {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 17px;
  line-height: 22px;
  margin: 24px 0 8px;
}

p,
li,
dd {
  font-size: 16px;
  line-height: 24px;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--peri-ink);
  text-underline-offset: 3px;
}

strong {
  font-weight: 600;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.lead {
  font-size: 18px;
  line-height: 28px;
}

/* The promise at the top: the honey says « this matters now ». */
.promise {
  margin: 20px 0 8px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--honey-soft);
}

.promise p:last-child,
.promise ul:last-child {
  margin-bottom: 0;
}

/* The facts of one kind of data: why, on what basis, how long. */
.facts {
  margin: 8px 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--fill);
}

.facts div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 8px;
  padding: 4px 0;
}

.facts dt {
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

@media (max-width: 520px) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* The providers: a table that becomes cards on a phone. */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 15px;
  line-height: 22px;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

.table th {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 620px) {
  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .table td {
    border: 0;
    padding: 2px 0;
  }

  .table td:first-child {
    font-weight: 600;
  }
}

/* The steps of the deletion in the app. */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  min-height: 32px;
  margin-bottom: 12px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--fill);
  font-weight: 600;
  text-align: center;
  line-height: 32px;
}

.note {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/*
  A field Ivan has to fill before the pages go online: impossible to miss. Search the folder for
  class="todo" (README.md).
*/
mark.todo {
  background: var(--rose-soft);
  color: var(--rose-ink);
  border: 1.5px dashed var(--rose);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 600;
  white-space: nowrap;
}

footer {
  margin-top: 24px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

footer a {
  color: var(--muted);
}

/* The index of the folder. */
.index-list {
  list-style: none;
  padding: 0;
}

.index-list li {
  margin-bottom: 16px;
}

.index-list a {
  font-weight: 600;
}

@media print {
  body {
    background: #ffffff;
  }

  .languages,
  .pages {
    display: none;
  }

  article {
    box-shadow: none;
    padding: 0;
  }
}

/* The cosmetic warning of the terms (18/11/2026): a white card that stands apart from the text. */
.caution {
  margin: 12px 0 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.caution ul:last-child,
.caution p:last-child {
  margin-bottom: 0;
}

/* The contents at the top of a long page (18/11/2026). */
.toc {
  margin: 8px 0 24px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--fill);
  font-size: 14px;
  line-height: 24px;
}
.toc ol {
  margin: 0;
}
