{% extends 'dating_app/base_dating.html' %}
{% load static %}

{% block title %}Cookie Policy | Ensolanka Dating{% endblock %}

{% block content %}

<style>
    .cookie-hero {
        background:
            linear-gradient(135deg, rgba(42, 13, 31, 0.94), rgba(194, 24, 91, 0.88)),
            url("{% static 'expat_life/images/dating_partner_hero.webp' %}") center center / cover no-repeat;
        padding: 110px 0 90px;
        color: #fff;
    }

    .cookie-hero-badge {
        background: rgba(255, 193, 7, 0.18);
        color: #ffc107;
        border: 1px solid rgba(255, 193, 7, 0.35);
        padding: 8px 16px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        display: inline-block;
        margin-bottom: 18px;
    }

    .cookie-wrapper {
        background: #f8fafc;
    }

    .cookie-card {
        background: #fff;
        border-radius: 28px;
        padding: 34px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    }

    .cookie-card h2 {
        font-weight: 800;
        margin-top: 34px;
        margin-bottom: 16px;
        color: #2a0d1f;
    }

    .cookie-card h2:first-child {
        margin-top: 0;
    }

    .cookie-card h3 {
        font-weight: 700;
        margin-top: 24px;
        margin-bottom: 12px;
        color: #9b1b60;
        font-size: 1.15rem;
    }

    .cookie-card p,
    .cookie-card li {
        color: #475569;
        line-height: 1.75;
    }

    .cookie-card ul,
    .cookie-card ol {
        padding-left: 1.25rem;
    }

    .cookie-note {
        background: #fff7e6;
        border-left: 5px solid #ffc107;
        border-radius: 18px;
        padding: 18px 20px;
        color: #5c3b00;
    }

    .cookie-soft-note {
        background: #fff1f6;
        border: 1px solid #ffd6e6;
        color: #7a123f;
        border-radius: 18px;
        padding: 18px 20px;
    }

    .cookie-info-note {
        background: #eff6ff;
        border-left: 5px solid #3b82f6;
        border-radius: 18px;
        padding: 18px 20px;
        color: #1e3a8a;
    }

    .cookie-toc {
        background: #2a0d1f;
        border-radius: 24px;
        padding: 26px;
        position: sticky;
        top: 100px;
    }

    .cookie-toc h5 {
        color: #fff;
        font-weight: 800;
        margin-bottom: 16px;
    }

    .cookie-toc a {
        display: block;
        color: rgba(255, 255, 255, 0.82);
        text-decoration: none;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.95rem;
    }

    .cookie-toc a:hover {
        color: #ffc107;
    }

    .cookie-date-box {
        background: #fff1f6;
        border: 1px solid #ffd6e6;
        color: #7a123f;
        border-radius: 18px;
        padding: 16px 18px;
        font-weight: 600;
    }

    .cookie-type-card {
        background: #f8fafc;
        border: 1px solid #edf2f7;
        border-radius: 22px;
        padding: 24px;
        margin-bottom: 18px;
    }

    .cookie-type-card h4 {
        color: #2a0d1f;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .cookie-type-icon {
        width: 52px;
        height: 52px;
        border-radius: 18px;
        background: #fff1f6;
        color: #c2185b;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.45rem;
        margin-bottom: 16px;
    }

    .cookie-table-wrapper {
        overflow-x: auto;
        border-radius: 20px;
        border: 1px solid #e2e8f0;
        margin-top: 18px;
    }

    .cookie-table {
        margin-bottom: 0;
        min-width: 720px;
    }

    .cookie-table thead th {
        background: #2a0d1f;
        color: #fff;
        font-weight: 700;
        border: none;
        padding: 16px;
    }

    .cookie-table tbody td {
        padding: 16px;
        color: #475569;
        vertical-align: top;
    }

    .cookie-table tbody tr:nth-child(even) {
        background: #f8fafc;
    }

    .cookie-icon-list {
        list-style: none;
        padding-left: 0 !important;
    }

    .cookie-icon-list li {
        display: flex;
        gap: 12px;
        margin-bottom: 14px;
    }

    .cookie-icon-list i {
        color: #c2185b;
        font-size: 1.15rem;
        margin-top: 3px;
        flex-shrink: 0;
    }

    @media (max-width: 991.98px) {
        .cookie-toc {
            position: static;
        }

        .cookie-card {
            padding: 24px;
        }
    }
</style>


<!-- HERO -->
<section class="cookie-hero">
    <div class="container">
        <div class="row justify-content-center text-center">
            <div class="col-lg-9">
                <span class="cookie-hero-badge">Website Technology Notice</span>

                <h1 class="display-5 fw-bold mb-3">
                    Cookie Policy
                </h1>

                <p class="lead mb-0">
                    This Cookie Policy explains how Ensolanka Dating may use cookies,
                    session tools, and similar technologies to support secure access,
                    account functions, preferences, and platform performance.
                </p>
            </div>
        </div>
    </div>
</section>


<!-- CONTENT -->
<section class="cookie-wrapper py-5">
    <div class="container">
        <div class="row g-4">

            <!-- SIDE NAV -->
            <div class="col-lg-4">
                <div class="cookie-toc">
                    <h5>Page Sections</h5>
                    <a href="#introduction">1. Introduction</a>
                    <a href="#what-are-cookies">2. What Are Cookies?</a>
                    <a href="#why-we-use">3. Why We Use Cookies</a>
                    <a href="#types-of-cookies">4. Types of Cookies</a>
                    <a href="#cookie-summary">5. Cookie Summary</a>
                    <a href="#third-party">6. Third-Party Cookies</a>
                    <a href="#payments">7. Payment-Related Technologies</a>
                    <a href="#controls">8. Managing Cookies</a>
                    <a href="#disabled">9. If Cookies Are Disabled</a>
                    <a href="#privacy">10. Relationship with Privacy Policy</a>
                    <a href="#updates">11. Policy Updates</a>
                    <a href="#contact">12. Contact</a>
                </div>
            </div>


            <!-- MAIN CONTENT -->
            <div class="col-lg-8">
                <div class="cookie-card">

                    <div class="cookie-date-box mb-4">
                        Last Updated: May 12, 2026
                    </div>

                    <div class="cookie-note mb-4">
                        <strong>Important:</strong>
                        Some cookies and session technologies are essential for the dating platform to work properly,
                        including secure login, dashboard access, form submission, and protection against unauthorized actions.
                    </div>


                    <h2 id="introduction">1. Introduction</h2>

                    <p>
                        This Cookie Policy applies to the Ensolanka Dating platform and explains how we may use
                        cookies, session identifiers, and similar technologies when you browse the dating website,
                        create an account, log in, manage your dating profile, access the dashboard, use the Payment Center,
                        or communicate through platform forms.
                    </p>

                    <p>
                        Cookies are small text files or browser-based storage items that may be placed on your device
                        when you use a website. They help a platform remember important technical information,
                        maintain secure sessions, improve navigation, and support a smoother user experience.
                    </p>


                    <h2 id="what-are-cookies">2. What Are Cookies and Similar Technologies?</h2>

                    <p>
                        Cookies and similar technologies may include:
                    </p>

                    <ul>
                        <li>Browser cookies</li>
                        <li>Session identifiers</li>
                        <li>Security tokens</li>
                        <li>Temporary preferences stored during a session</li>
                        <li>Local storage or similar browser-based technologies, where used</li>
                    </ul>

                    <p>
                        Some are temporary and expire when you close your browser. Others may remain for a longer period
                        so that a website can remember certain settings or recognize a returning browser.
                    </p>


                    <h2 id="why-we-use">3. Why Ensolanka Dating May Use Cookies</h2>

                    <p>
                        Cookies and related technologies may help us:
                    </p>

                    <ul class="cookie-icon-list">
                        <li>
                            <i class="bi bi-check-circle-fill"></i>
                            <span>Keep users securely logged in during an active session.</span>
                        </li>

                        <li>
                            <i class="bi bi-check-circle-fill"></i>
                            <span>Protect forms and account actions against unauthorized or malicious requests.</span>
                        </li>

                        <li>
                            <i class="bi bi-check-circle-fill"></i>
                            <span>Support account registration, login, logout, password reset, and dashboard navigation.</span>
                        </li>

                        <li>
                            <i class="bi bi-check-circle-fill"></i>
                            <span>Maintain temporary session information necessary for user flow and platform functionality.</span>
                        </li>

                        <li>
                            <i class="bi bi-check-circle-fill"></i>
                            <span>Help remember selected preferences or interface behaviour where such features are implemented.</span>
                        </li>

                        <li>
                            <i class="bi bi-check-circle-fill"></i>
                            <span>Understand general website performance or usage patterns if analytics tools are enabled in the future.</span>
                        </li>

                        <li>
                            <i class="bi bi-check-circle-fill"></i>
                            <span>Support secure third-party payment processing where payment gateways are integrated.</span>
                        </li>
                    </ul>


                    <h2 id="types-of-cookies">4. Types of Cookies We May Use</h2>

                    <div class="cookie-type-card">
                        <div class="cookie-type-icon">
                            <i class="bi bi-shield-lock-fill"></i>
                        </div>
                        <h4>4.1 Strictly Necessary Cookies</h4>
                        <p class="mb-0">
                            These cookies are required for the platform to function securely and correctly.
                            They may support login sessions, security protections, form submission,
                            and account-level navigation. Without them, important parts of the dating platform
                            may not work properly.
                        </p>
                    </div>

                    <div class="cookie-type-card">
                        <div class="cookie-type-icon">
                            <i class="bi bi-person-badge-fill"></i>
                        </div>
                        <h4>4.2 Authentication and Session Cookies</h4>
                        <p class="mb-0">
                            These cookies help recognize that you are logged in and allow you to move between pages
                            such as your dating dashboard, profile area, interest pages, and payment center
                            without needing to sign in repeatedly during the same session.
                        </p>
                    </div>

                    <div class="cookie-type-card">
                        <div class="cookie-type-icon">
                            <i class="bi bi-ui-checks-grid"></i>
                        </div>
                        <h4>4.3 Preference or Functional Cookies</h4>
                        <p class="mb-0">
                            Where implemented, these cookies or similar technologies may remember user preferences,
                            page behaviour, or selected interface options to make the platform easier to use.
                        </p>
                    </div>

                    <div class="cookie-type-card">
                        <div class="cookie-type-icon">
                            <i class="bi bi-graph-up-arrow"></i>
                        </div>
                        <h4>4.4 Analytics or Performance Cookies</h4>
                        <p class="mb-0">
                            If Ensolanka enables analytics or performance measurement tools, these technologies may help
                            us understand how visitors use the platform, which pages are useful, and where usability can improve.
                            If such tools are activated, they may be addressed through a consent banner or additional notice
                            where appropriate.
                        </p>
                    </div>

                    <div class="cookie-type-card">
                        <div class="cookie-type-icon">
                            <i class="bi bi-credit-card-2-front-fill"></i>
                        </div>
                        <h4>4.5 Payment-Related Third-Party Technologies</h4>
                        <p class="mb-0">
                            If the platform uses third-party payment gateways such as Stripe, PayPal, or similar providers,
                            those services may use their own cookies, security technologies, or browser tools
                            to process transactions, prevent fraud, and confirm checkout status.
                        </p>
                    </div>


                    <h2 id="cookie-summary">5. Typical Cookie and Session Use Summary</h2>

                    <p>
                        The exact cookie names may vary depending on platform configuration, hosting, security settings,
                        and future technology updates. Typical Django-based website functionality may include the following
                        categories:
                    </p>

                    <div class="cookie-table-wrapper">
                        <table class="table cookie-table">
                            <thead>
                                <tr>
                                    <th>Category</th>
                                    <th>Typical Purpose</th>
                                    <th>Likely Status</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>Session Cookie</td>
                                    <td>
                                        Maintains the user’s session and supports authenticated dashboard use.
                                    </td>
                                    <td>Essential</td>
                                </tr>

                                <tr>
                                    <td>CSRF / Security Token</td>
                                    <td>
                                        Helps protect forms and account actions from unauthorized requests.
                                    </td>
                                    <td>Essential</td>
                                </tr>

                                <tr>
                                    <td>Login State Support</td>
                                    <td>
                                        Supports secure access to user-specific pages and account processes.
                                    </td>
                                    <td>Essential</td>
                                </tr>

                                <tr>
                                    <td>Preference Storage</td>
                                    <td>
                                        May remember selected settings or temporary interface choices where implemented.
                                    </td>
                                    <td>Functional / Optional</td>
                                </tr>

                                <tr>
                                    <td>Analytics Tools</td>
                                    <td>
                                        May help understand site usage and performance where such tools are enabled.
                                    </td>
                                    <td>Optional / If Used</td>
                                </tr>

                                <tr>
                                    <td>Payment Provider Tools</td>
                                    <td>
                                        May support secure checkout, fraud prevention, and transaction processing.
                                    </td>
                                    <td>Third-Party / If Used</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>


                    <h2 id="third-party">6. Third-Party Cookies and External Services</h2>

                    <p>
                        Some pages or future features may rely on third-party services. These providers may use their own
                        cookies or tracking technologies according to their own policies.
                    </p>

                    <p>
                        Third-party services may include, where implemented:
                    </p>

                    <ul>
                        <li>Payment gateways</li>
                        <li>Security or fraud-prevention tools</li>
                        <li>Analytics services</li>
                        <li>Embedded media, maps, or external widgets</li>
                    </ul>

                    <p>
                        Ensolanka does not control the cookie practices of third-party providers. Users should review
                        the relevant third-party policies where such services are used.
                    </p>


                    <h2 id="payments">7. Payment-Related Cookie Use</h2>

                    <p>
                        The dating platform may include payment features connected with:
                    </p>

                    <ul>
                        <li>Optional Featured Profile payments</li>
                        <li>One-time Profile Confirmation Fee payments</li>
                        <li>Any future payable dating service or arrangement-related charge clearly shown before checkout</li>
                    </ul>

                    <p>
                        If payment gateways are activated, those providers may use cookies or similar technologies
                        to:
                    </p>

                    <ul>
                        <li>Secure the checkout process</li>
                        <li>Detect fraud or suspicious payment activity</li>
                        <li>Maintain payment-session continuity</li>
                        <li>Confirm transaction outcomes</li>
                    </ul>

                    <div class="cookie-info-note mt-4">
                        <strong>Note:</strong>
                        Payment-processing technologies are usually governed partly by the payment provider’s own systems
                        and policies, in addition to Ensolanka’s platform policies.
                    </div>


                    <h2 id="controls">8. Managing Cookies</h2>

                    <p>
                        Most web browsers allow you to control cookies through browser settings. Depending on your browser,
                        you may be able to:
                    </p>

                    <ul>
                        <li>View cookies stored on your device</li>
                        <li>Delete existing cookies</li>
                        <li>Block future cookies</li>
                        <li>Allow only certain types of cookies</li>
                        <li>Receive alerts before cookies are stored</li>
                    </ul>

                    <p>
                        Cookie controls vary by browser and device. You can usually find these options in your browser’s
                        privacy, security, or site settings.
                    </p>


                    <h2 id="disabled">9. What Happens If Cookies Are Disabled?</h2>

                    <p>
                        If you disable essential cookies, some important features of the Ensolanka Dating platform
                        may stop working or may not function correctly.
                    </p>

                    <p>
                        This may affect:
                    </p>

                    <ul>
                        <li>Logging in to your account</li>
                        <li>Staying signed in during a session</li>
                        <li>Using registration or contact forms</li>
                        <li>Accessing your dashboard</li>
                        <li>Viewing secure profile-management pages</li>
                        <li>Completing payment-related steps where required</li>
                    </ul>

                    <p>
                        For the best experience, essential cookies should remain enabled.
                    </p>


                    <h2 id="privacy">10. Relationship with Our Privacy Policy</h2>

                    <p>
                        This Cookie Policy should be read together with the Ensolanka Dating Privacy Policy.
                        The Privacy Policy explains more broadly how we collect, use, store, display, and protect
                        personal information related to:
                    </p>

                    <ul>
                        <li>Account registration</li>
                        <li>Dating profile listings</li>
                        <li>Profile photos</li>
                        <li>Interest and Mutual Interest records</li>
                        <li>Contact-detail access</li>
                        <li>Payments</li>
                        <li>Dating-event coordination</li>
                    </ul>

                    <div class="cookie-soft-note mt-4">
                        <strong>Privacy Link:</strong>
                        Once your Privacy Policy route is active, you can link this paragraph directly to the dating app
                        Privacy Policy page.
                    </div>


                    <h2 id="updates">11. Changes to This Cookie Policy</h2>

                    <p>
                        Ensolanka may update this Cookie Policy from time to time to reflect:
                    </p>

                    <ul>
                        <li>Changes in website technology</li>
                        <li>New login, session, or security features</li>
                        <li>Payment gateway integrations</li>
                        <li>Analytics or performance tools</li>
                        <li>Legal, operational, or privacy improvements</li>
                    </ul>

                    <p>
                        Any updated version will be published on this page with a revised “Last Updated” date.
                    </p>


                    <h2 id="contact">12. Contact Us</h2>

                    <p>
                        If you have questions about this Cookie Policy, technical cookies, payment-related technologies,
                        or the way cookies support your dating app experience, please contact Ensolanka through the
                        official dating app contact page.
                    </p>

                    <div class="mt-4 d-flex flex-wrap gap-3">
                        <a href="{% url 'dating_app:contact_page' %}" class="btn btn-dark px-4">
                            Contact Ensolanka
                        </a>

                        {% if request.user.is_authenticated and request.user.dating_profile %}
                            <a href="{% url 'dating_app:dating_partner_dashboard' %}" class="btn btn-warning px-4">
                                My Dating Dashboard
                            </a>
                        {% else %}
                            <a href="{% url 'dating_app:partner_register' %}" class="btn btn-warning px-4">
                                Become a Dating Partner
                            </a>
                        {% endif %}
                    </div>

                    <div class="cookie-note mt-5">
                        <strong>Legal Review Recommended:</strong>
                        This Cookie Policy is prepared as a professional website draft for the dating app.
                        Before publishing, Ensolanka should review the final cookie names, analytics setup,
                        payment gateway integrations, consent-banner requirements, and hosting configuration
                        so the policy matches the exact live implementation.
                    </div>

                </div>
            </div>

        </div>
    </div>
</section>

{% endblock %}