feat: cookie policy & consent banner per Moldova law 195/2024

- Settings page: new "Politica Cookie" section — toggle banner on/off,
  editable RO/RU policy text (defaults to full 14-section template)
- Public route GET /cookie-policy → CookiePolicyController returns
  locale-aware full policy page with tenant branding
- Cookie banner partial (Alpine.js, localStorage) shown on tracking and
  landing pages; Accept/Reject stores consent, banner dismisses
- Translation keys added to lang/ro/portal.php and lang/ru/portal.php
- Alpine.js (CDN) added to tracking and landing pages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-16 17:52:23 +00:00
parent 753e81d292
commit 68f58cbcdc
9 changed files with 591 additions and 0 deletions
+10
View File
@@ -153,4 +153,14 @@ return [
'reset_title' => 'Setează o parolă nouă',
'reset_button' => 'Setează parola',
],
'cookie' => [
'policy_title' => 'Politica de utilizare a fișierelor cookie',
'back' => 'Înapoi',
'banner_title' => 'Utilizăm fișiere cookie',
'banner_body' => 'Folosim module cookie pentru funcționarea site-ului și îmbunătățirea experienței. Cookies strict necesare sunt utilizate fără consimțământ (Legea nr. 195/2024).',
'read_policy' => 'Politica cookie',
'accept' => 'Acceptă toate',
'reject' => 'Doar esențiale',
],
];