<script lang="ts">
	import * as m from '$lib/paraglide/messages.js';
</script>

<svelte:head>
	<title>{m.privacy_page_title()}</title>
</svelte:head>

<div class="max-w-2xl mx-auto py-10 px-4">
	<h1 class="text-2xl font-bold text-(--color-text) mb-6">Privacy Policy</h1>

	<div class="space-y-5 text-sm text-(--color-muted) leading-relaxed">
		<p>
			This policy describes what limited data libnovel collects and how it is used.
		</p>

		<h2 class="text-base font-semibold text-(--color-text) mt-6">Data we collect</h2>
		<ul class="list-disc list-inside space-y-2 pl-1">
			<li>
				<span class="text-(--color-text)">Session cookies</span> — a short-lived cookie is set when you
				visit the site to track reading progress across pages. No account is required.
			</li>
			<li>
				<span class="text-(--color-text)">Account data (optional)</span> — if you create an account,
				we store your username and a hashed password. No email address is required.
			</li>
			<li>
				<span class="text-(--color-text)">Reading progress</span> — the last chapter you read for each
				book is stored server-side, tied to your session or account, so you can resume reading.
			</li>
			<li>
				<span class="text-(--color-text)">Saved books</span> — books you explicitly bookmark are stored
				server-side tied to your session or account.
			</li>
		</ul>

		<h2 class="text-base font-semibold text-(--color-text) mt-6">What we do not collect</h2>
		<ul class="list-disc list-inside space-y-2 pl-1">
			<li>No email addresses (unless you choose to provide one).</li>
			<li>No tracking pixels, analytics scripts, or third-party ad networks.</li>
			<li>No selling or sharing of data with third parties.</li>
		</ul>

		<h2 class="text-base font-semibold text-(--color-text) mt-6">Third-party content</h2>
		<p>
			Cover images and chapter content are fetched from third-party sources (e.g.
			<a href="https://novelfire.net" target="_blank" rel="noopener noreferrer" class="text-(--color-brand) hover:text-(--color-brand-dim) transition-colors">novelfire.net</a>).
			Your browser may make requests directly to those domains when loading images.
		</p>

		<h2 class="text-base font-semibold text-(--color-text) mt-6">Data deletion</h2>
		<p>
			You can delete your reading progress and saved books from your profile page at any time.
			To request full account deletion, contact us via the <a href="/dmca" class="text-(--color-brand) hover:text-(--color-brand-dim) transition-colors">contact address listed in our DMCA policy</a>.
		</p>

		<p class="text-(--color-muted) text-xs mt-8">Last updated: {new Date().getFullYear()}</p>
	</div>
</div>
