Let Cards players delete their account and read a privacy notice

Add a Compte section with a privacy notice and a confirmed deletion that
anonymises the player row, erases their possessions and cancels open trades.
The public contact comes from CARDS_PRIVACY_CONTACT, which production now
requires before enabling the game. The admin E2E no longer relies on a pull
from the previous test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-05 18:05:41 +01:00
parent 155187d01f
commit e60fbd4e9b
16 changed files with 319 additions and 10 deletions

View file

@ -853,3 +853,17 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
.nebula-admin-collection-settings .nebula-admin-drop-table td:first-of-type .nds-input { width: 56px; }
.nebula-admin-collection-settings .nebula-admin-drop-table tbody th { padding-left: var(--space-2); }
}
// Compte du joueur et notice de confidentialité.
.nebula-account { display: grid; gap: var(--space-4); }
.nebula-account-summary dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-3); margin: var(--space-3) 0 0; }
.nebula-account-summary dt { color: var(--color-text-muted); font-size: var(--font-size-xs); }
.nebula-account-summary dd { margin: 0; overflow-wrap: anywhere; }
.nebula-account-delete > .nds-button { justify-self: start; margin-top: var(--space-3); }
.nebula-privacy-details { margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--font-size-xs); }
.nebula-privacy-details summary { width: fit-content; cursor: pointer; }
.nebula-privacy-details summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.nebula-privacy-notice { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.nebula-privacy-notice p { margin: 0; }
.nebula-privacy-notice h4 { margin: 0 0 var(--space-1); }
.nebula-privacy-contact a { overflow-wrap: anywhere; }