:root {
  color-scheme: dark;
  --background: #000;
  --ink: #fff;
  --copy: #c0c0c0;
  --muted: #aaa9a3;
  --line: rgb(255 255 255 / 14%);
  --surface: rgb(255 255 255 / 6%);
  --max-width: 800px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.privacy-policy-page {
  color-scheme: light;
  --background: #fff;
  --ink: #0a0a0a;
  --copy: #3f3f3f;
  --muted: #626262;
  --line: rgb(0 0 0 / 13%);
  --surface: #fff;
}

/* La page de suppression rejoint la page de confidentialité sur fond blanc. */
.account-deletion-page {
  color-scheme: light;
  --background: #fff;
  --ink: #0a0a0a;
  --copy: #3f3f3f;
  --muted: #626262;
  --line: rgb(0 0 0 / 13%);
  --surface: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--sans);
}

body {
  padding: 32px 0 48px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.top {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto clamp(42px, 7vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand-home-links {
  position: relative;
  justify-self: start;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand img {
  object-fit: contain;
}

.privacy-policy-page .brand img,
.account-deletion-page .brand img {
  filter: invert(1);
}

h1 {
  margin: 0;
  font-size: clamp(18px, 2.3vw, 26px);
  line-height: 1.2;
  text-align: center;
}

.back-link {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--copy);
  text-decoration: none;
}

.back-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.wrap {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.summary,
.callout,
nav {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.summary {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}

.callout {
  margin: 18px 0 0;
  color: var(--copy);
  line-height: 1.65;
}

nav {
  margin-top: 18px;
}

/* [PRIVACY-SOMMAIRE-TWOCOL-20260921] Sur la seule page de confidentialité,
   le sommaire occupe toute la largeur en deux colonnes de 8 lignes, lignes
   noires en minuscules, sans contour ni séparateurs. */
.privacy-policy-page nav {
  width: 100%;
  margin: 18px auto 0;
  border: 0;
}

.privacy-policy-page nav ol,
.account-deletion-page nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}

.account-deletion-page nav {
  width: 100%;
  margin: 18px auto 0;
  border: 0;
  padding: 0;
}

.privacy-policy-page nav li,
.account-deletion-page nav li {
  break-inside: avoid;
}

.privacy-policy-page .privacy-page-link,
.account-deletion-page .privacy-page-link {
  color: var(--ink);
  text-transform: lowercase;
}

.privacy-policy-page details summary {
  color: var(--ink);
  text-transform: lowercase;
}

.privacy-policy-page nav li,
.account-deletion-page nav li {
  margin: 0;
}

.privacy-page-link {
  display: block;
  padding: 12px 28px 12px 0;
  color: var(--copy);
  font-size: 13px;
  text-decoration: none;
}

.privacy-policy-page details summary {
  position: relative;
  padding: 12px 28px 12px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.privacy-policy-page details summary::-webkit-details-marker {
  display: none;
}

.privacy-policy-page details summary::after {
  position: absolute;
  top: 50%;
  right: 2px;
  content: "›";
  font-size: 20px;
  font-weight: 500;
  transform: translateY(-50%);
  transition: transform 0.15s ease;
}

.privacy-policy-page details[open] summary {
  color: var(--ink);
}

.privacy-policy-page details[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.privacy-section-content {
  padding: 2px 0 18px;
  color: var(--copy);
  font-weight: 400;
  text-transform: lowercase;
}

.privacy-section-content p {
  margin: 0;
}

.privacy-section-content p + p {
  margin-top: 12px;
}

.privacy-section-content ul {
  margin: 14px 0 0;
}

section {
  padding: 34px 0 4px;
  border-top: 1px solid var(--line);
}

nav + section,
.summary + section,
.callout + section {
  margin-top: 34px;
}

section + section {
  margin-top: 26px;
}

h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

p,
li {
  color: var(--copy);
  font-size: 14px;
  line-height: 1.72;
}

section p {
  margin: 0;
}

section p + p {
  margin-top: 12px;
}

ul,
ol {
  padding-left: 22px;
}

section ul,
section ol {
  margin: 14px 0 0;
}

section li + li {
  margin-top: 8px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 54px;
}

footer a {
  color: var(--muted);
  font-size: 12px;
}

.page-footer {
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(8px, 2.4vw, 24px);
  text-align: center;
}

.page-footer span {
  color: var(--ink);
  font-size: 11.5px;
  white-space: nowrap;
}

@media (max-width: 680px) {
  body {
    padding-top: 20px;
  }

  .top {
    width: min(calc(100% - 28px), 1240px);
    grid-template-columns: auto 1fr;
  }

  .top h1 {
    text-align: right;
  }

  .wrap {
    width: min(calc(100% - 28px), var(--max-width));
  }

  /* [PRIVACY-SOMMAIRE-MOBILE-FULL-20260921] Sur téléphone, le sommaire
     reprend toute la largeur : les titres tiennent sur une ligne, colonne unique. */
  .privacy-policy-page nav {
    width: 100%;
  }

  .privacy-policy-page nav ol,
  .account-deletion-page nav ol {
    columns: 1;
  }

}
