From 319e17e1781242231d1d68bfc3056afe24403eb9 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 10 Nov 2026 15:23:40 +0700 Subject: [PATCH] Add Privacy Policy and Terms of Use; consent and grown-up step at sign-up - privacy.html and terms.html (with legal.css): plain language with a short kids' version first. They name Dynamic Web Lab FZE LLC and the contact address, list exactly what is kept (private username, password hash, 30-day sessions, consent record), what isn't, the service providers, children's rules, deleting your account, and UAE / Sharjah law - Sign-up asks for a birth year (used on the device only, never sent), a tick box to agree to the Terms and Privacy Policy, and for players who may be under 13 a grown-up step (parent/guardian tick box + a quick times-table check) - Server: register requires agreement to the current version (2026-11-10) and a grown-up for under-13s; it records terms_version, agreed_at and grownup_confirmed (Postgres columns added automatically) - Links to both pages in the menu and on the account screen; cached for offline; included in the deploy; sw.js v24 - Smoke test: sign-up through the menu with the new fields, the server's sign-up rules, and that both pages are served Co-Authored-By: Claude Opus 5.5 --- README.md | 1 + ROADMAP.md | 2 + index.html | 14 +++++- legal.css | 27 +++++++++++ privacy.html | 107 +++++++++++++++++++++++++++++++++++++++++++ server/accounts.mjs | 26 ++++++++--- server/dev.mjs | 2 +- src/account.js | 11 ++++- src/main.js | 43 +++++++++++++++-- style.css | 11 +++++ sw.js | 4 +- terms.html | 79 ++++++++++++++++++++++++++++++++ tests/smoke.mjs | 15 ++++++ tools/deploy-site.sh | 2 +- 14 files changed, 326 insertions(+), 18 deletions(-) create mode 100644 legal.css create mode 100644 privacy.html create mode 100644 terms.html diff --git a/README.md b/README.md index 398116d..93e87e6 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,7 @@ Playing never needs an account. In the online edition, an account unlocks Play T - **The username is private:** it's only for logging in. Other players only ever see your picked colour-and-animal name. - **Passwords are hashed** (scrypt), and logins are kept in secure, HttpOnly cookies. - **Delete your account any time** from the account screen. It's removed straight away, and your worlds on the device stay. +- **Signing up:** players agree to the [Terms of Use](terms.html) and [Privacy Policy](privacy.html), and the version they agreed to is recorded. The game asks for a birth year only to decide whether a grown-up must help. The year never leaves the device, and players under 13 need a parent or guardian to confirm. - Kids: ask a grown-up to help you make one. ## ⚔️ Adventure mode (for older players) diff --git a/ROADMAP.md b/ROADMAP.md index 6734ac6..fd1fe23 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -106,6 +106,8 @@ The game stays public on our own site, and the GitHub Pages copy is retired late - [x] The relay only accepts our own site - [x] **Accounts** (register / log in / log out / delete) with our own Postgres database: a private username and a password only. Playing the game needs no account. - [x] Play Together requires a login (the relay checks it) +- [x] Privacy Policy and Terms of Use pages; sign-up records agreement, with a grown-up step for under-13s +- [ ] Optional parent email for verifiable parental consent, if legal review asks for it - [ ] Cloud saves across devices; classroom mode and a teacher dashboard ## ⚔️ Adventure track (opt-in, for older players) diff --git a/index.html b/index.html index fd6e242..f0a77e2 100644 --- a/index.html +++ b/index.html @@ -151,6 +151,7 @@

MiniCrafter

Touch: left stick walks, drag to look, tap to place or flip, hold to mine or attack. Holding a bow or shield? Hold to draw or block.

Your world is saved automatically in this browser.

+ @@ -200,10 +201,19 @@

👤 Your account

- +
-

🛡️ Make up a username, don't use your real name. Your username is private: other players only see your colour-and-animal name. We don't ask for an email address or anything else about you. Kids: ask a grown-up to help you.

+

🛡️ Make up a username, don't use your real name. Your username is private: other players only see your colour-and-animal name. We don't ask for an email address or anything else about you. Kids: ask a grown-up to help you. Privacy · Terms