Files
myAi/web/wwwroot/legal/cookies-en.html
claude af5d9fd7ad refactor(web): enhance legal.js to inject topbar + footer; strip duplication from legal pages
legal.js now:
- Dynamically injects a common topbar (logo + language switcher) on all 6 pages
- Dynamically injects a language-aware footer (EN vs RO copyright text)
- Detects page language and builds appropriate language links
- Uses event delegation for language links (works on injected elements)
- Persists language preference to localStorage

All 6 legal HTML pages now:
- Removed the hardcoded topbar div (12 lines of identical HTML per file)
- Removed the hardcoded footer div (7 lines of HTML with language-specific content)
- Total savings: 114 lines of duplicated HTML across 6 pages
- Pages are 38% smaller (60 lines → 37 lines core content)

Closes #31

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 13:34:18 +03:00

59 lines
2.3 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cookies Policy - myAi</title>
<meta name="description" content="Information about how cookies are used on the myAi website and how browser preferences can be managed.">
<link rel="stylesheet" href="css/legal.css">
</head>
<body>
<div class="wrap">
<div class="hero">
<div class="kicker">Cookies</div>
<h1>Cookies Policy</h1>
<p>Information about how cookies are used on the myAi website and how browser preferences can be managed.</p>
</div>
<div class="content">
<div class="notice"><strong>Cookies Policy</strong> explains how myAi uses cookies for website operation, analytics, and improving user experience.</div>
<h2>1. What cookies are</h2>
<p>Cookies are small files stored on your device when you visit a website. They help the site function correctly and remember certain preferences.</p>
<h2>2. Types of cookies we may use</h2>
<ul>
<li><strong>Essential cookies</strong> required for the basic operation of the website</li>
<li><strong>Analytics cookies</strong> used to understand how the website is used</li>
<li><strong>Preference cookies</strong> used to remember language or other selected options</li>
<li><strong>Marketing cookies</strong> only if explicitly enabled and used</li>
</ul>
<h2>3. Why we use cookies</h2>
<p>We use cookies for:</p>
<ul>
<li>ensuring technical operation of the website</li>
<li>improving performance and usability</li>
<li>remembering visitor settings</li>
<li>aggregated statistical analysis</li>
</ul>
<h2>4. Managing cookies</h2>
<p>You can control or delete cookies from your browser settings. You can also block certain categories of cookies, but doing so may affect some parts of the website.</p>
<h2>5. Third-party cookies</h2>
<p>Some services embedded on the website may set their own cookies, for example analytics services or external content. Those cookies are governed by the respective providers policies.</p>
<h2>6. Updates</h2>
<p>This policy may be updated periodically. The current version will remain published on the website.</p>
<p class="meta">Last updated: 2026-03-26</p>
</div>
</div>
<script src="js/legal.js"></script>
</body>
</html>