/* WP1: the privacy policy, Terms of Use and account deletion pages, in the app's own colours (apps/mobile/src/ui/tokens.ts,
   COLOR_TOKENS) and its typeface (the phone's system font, as the app uses). Phone width first; light and dark. */
:root {
  color-scheme: light dark;
  --surface-base: #F6F2FB;
  --surface-raised: #FFFFFF;
  --ink-primary: #352645;
  --ink-secondary: #685875;
  --primary: #684496;
  --on-primary: #FFFFFF;
  --surface-tint: #EEE4F7;
  --border-subtle: #E1D5EB;
  --warning-surface: #FFF0D3;
  --warning-ink: #735016;
  --completion: #24664E;
  --destructive: #93405D;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-base: #251B31;
    --surface-raised: #33253F;
    --ink-primary: #F6EFFA;
    --ink-secondary: #D0BDD9;
    --primary: #D6B9F4;
    --on-primary: #352044;
    --surface-tint: #493451;
    --border-subtle: #60476E;
    --warning-surface: #493A20;
    --warning-ink: #F4D59C;
    --completion: #AADEBC;
    --destructive: #F4B5CC;
  }
}

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

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

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--ink-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  padding: 8px 14px;
  border-radius: 13px;
  background: var(--primary);
  color: var(--on-primary);
  z-index: 1;
}

header, main, footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

header {
  padding-top: 20px;
  padding-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  display: inline-block;
  padding: 10px 0;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ink-secondary);
}

nav a[aria-current="page"] { color: var(--primary); }

h1 {
  margin: 20px 0 4px;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.effective {
  margin: 0 0 20px;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

section {
  margin: 0 0 16px;
  padding: 18px 18px 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  background: var(--surface-raised);
}

section.summary { background: var(--surface-tint); border-color: transparent; }

h2 {
  margin: 0 0 8px;
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -0.01em;
}

h3 {
  margin: 18px 0 4px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 730;
}

p, ul, ol { margin: 0 0 12px; }

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

li { margin: 0 0 6px; }

a { color: var(--primary); text-underline-offset: 2px; }

a:focus-visible, .skip:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

strong { font-weight: 700; }

.note {
  padding: 12px 14px;
  border-radius: 17px;
  background: var(--warning-surface);
  color: var(--warning-ink);
}

.kept { color: var(--completion); }

.steps li { padding-left: 4px; }

.ui { font-weight: 700; }

.contact {
  font-size: 1.0625rem;
  font-weight: 700;
  word-break: break-all;
}

footer {
  padding-top: 8px;
  padding-bottom: 32px;
  color: var(--ink-secondary);
  font-size: 0.875rem;
}

@media (min-width: 40rem) {
  section { padding: 22px 26px 10px; }
  h1 { font-size: 2rem; }
}
