/* Shared look of the legal pages (mentions, privacy, terms, account deletion), version D chosen by
   Jordan on 13/11/2026: the app's colours (lib/theme/colors.dart), one centred column on every
   screen, numbered sections with a contents box, a violet footer. */
:root {
  --primary: #7E78CC;      /* AppColors.primary: logo, numbers, underline */
  --primary-ink: #6A63C2;  /* AppColors.primaryInk: links and violet text on white (5:1) */
  --primary-soft: #EFEEFA; /* AppColors.primarySoft: rules */
  --primary-tint: #F6F5FB; /* AppColors.primaryTint: boxes */
  --text: #1A1A1A;         /* AppColors.textPrimary */
  --muted: #666666;        /* AppColors.textSecondary */
  --bg: #FFFFFF;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--primary-ink); text-underline-offset: 2px; }
a:hover { color: #5A53B0; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

.column {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.site-header .column { height: 64px; display: flex; align-items: center; }
.wordmark { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--primary); text-decoration: none; }
.wordmark:hover { color: var(--primary); }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--primary-soft); overflow-x: auto; }
.tabs a {
  padding: 12px 0; margin-bottom: -1px; white-space: nowrap;
  font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.tabs a[aria-current="page"] { color: var(--primary-ink); font-weight: 600; border-bottom-color: var(--primary); }

.page-title { padding-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-ink); }
h1 { margin: 0; font-size: clamp(32px, 7vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.updated { margin: 0; font-size: 14px; color: var(--muted); }

.toc { margin-top: 28px; border-radius: 16px; background: var(--primary-tint); }
.toc summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--primary-ink); border-bottom: 2px solid var(--primary-ink);
  transform: rotate(45deg) translateY(-3px); transition: transform .15s;
}
.toc[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.toc ol { margin: 0; padding: 0 20px 18px; list-style: none; display: grid; gap: 8px 32px; grid-template-columns: minmax(0, 1fr); }
.toc a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.toc a:hover { color: var(--primary-ink); }
.toc .n { color: var(--primary); font-variant-numeric: tabular-nums; margin-right: 6px; }
@media (min-width: 700px) {
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 3), auto); }
}

main { padding-bottom: 72px; }
section { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--primary-soft); scroll-margin-top: 16px; }
section:first-of-type { border-top: 0; padding-top: 4px; }
h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
h2 .n { color: var(--primary); font-variant-numeric: tabular-nums; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
ul, ol.steps { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--primary); }
strong { font-weight: 600; }

.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; line-height: 1.6; }
@media (min-width: 700px) {
  .facts { grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; row-gap: 12px; }
  .facts div { display: contents; }
  .facts dt { padding-top: 2px; }
}

.note {
  border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0;
  background: var(--primary-tint); padding: 16px 20px;
}
.note ul { margin: 10px 0 0; }

.site-footer { background: var(--primary-ink); color: #FFFFFF; }
.site-footer .column { padding-top: 32px; padding-bottom: max(36px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.site-footer .wordmark { color: #FFFFFF; font-size: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: #FFFFFF; font-size: 14px; font-weight: 500; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #FFFFFF; }
.site-footer small { font-size: 13px; }

@media (prefers-reduced-motion: reduce) { .toc summary::after { transition: none; } }
