---
import Layout from '../layouts/Layout.astro';
---

<Layout seo={{ title: "Privacy Policy", description: "Privacy policy for the ReFL website" }}>
  <div class="max-w-3xl mx-auto prose prose-invert">
    <h1>Privacy Policy</h1>
    <p class="text-base-content/70">Last updated: December 2025</p>

    <h2>Introduction</h2>
    <p>
      ReFL (Réflexions sur les Fondements de la Logique) is committed to protecting your privacy.
      This policy explains how we collect, use, and safeguard information when you visit our website.
    </p>

    <h2>Information We Collect</h2>
    <h3>Analytics Data</h3>
    <p>
      With your consent, we use Google Analytics to collect anonymous usage data to help us understand
      how visitors interact with our website. This includes:
    </p>
    <ul>
      <li>Pages visited and time spent on pages</li>
      <li>Referring websites</li>
      <li>Browser type and device information</li>
      <li>Approximate geographic location (country/city level)</li>
    </ul>
    <p>
      This data is aggregated and does not personally identify you. Google Analytics uses cookies
      to collect this information. You can opt out of analytics tracking by declining cookies when
      prompted.
    </p>

    <h3>Local Storage</h3>
    <p>
      We use your browser's local storage to remember:
    </p>
    <ul>
      <li>Your cookie consent preference</li>
      <li>Your theme preference (light/dark mode)</li>
    </ul>
    <p>
      This data is stored only in your browser and is not transmitted to our servers.
    </p>

    <h2>How We Use Information</h2>
    <p>
      We use the collected analytics data solely to:
    </p>
    <ul>
      <li>Understand which content is most useful to our visitors</li>
      <li>Improve the website's structure and content</li>
      <li>Ensure the website works correctly across different browsers and devices</li>
    </ul>

    <h2>Third-Party Services</h2>
    <p>
      We use the following third-party services:
    </p>
    <ul>
      <li>
        <strong>Google Analytics</strong> - For website analytics.
        <a href="https://policies.google.com/privacy" target="_blank" rel="noopener noreferrer" class="link link-primary">
          Google's Privacy Policy
        </a>
      </li>
      <li>
        <strong>Google Fonts</strong> - For typography. Font files are loaded from Google's servers.
      </li>
    </ul>

    <h2>Your Rights</h2>
    <p>You have the right to:</p>
    <ul>
      <li>Decline analytics cookies when visiting our website</li>
      <li>Clear your browser's cookies and local storage at any time</li>
      <li>Use browser extensions to block tracking scripts</li>
    </ul>

    <h2>Managing Your Consent</h2>
    <p>
      You can change your cookie preferences at any time by clearing your browser's local storage
      for this website. The consent banner will appear again on your next visit.
    </p>

    <h2>Contact</h2>
    <p>
      If you have questions about this privacy policy, please contact us at
      <a href="mailto:refl@framalistes.org" class="link link-primary">refl@framalistes.org</a>.
    </p>

    <h2>Changes to This Policy</h2>
    <p>
      We may update this privacy policy from time to time. Any changes will be posted on this page
      with an updated revision date.
    </p>
  </div>
</Layout>
