{% extends 'expat_life/base.html' %}
{% load static %}

{% block title %}Cookie Policy | Ensolanka Guest Portal{% endblock %}

{% block content %}

<style>
    .cookie-page {
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.09), transparent 28%),
            radial-gradient(circle at 85% 25%, rgba(13, 110, 253, 0.08), transparent 30%),
            linear-gradient(180deg, #f5f9ff 0%, #ffffff 48%, #f8fbff 100%);
        overflow: hidden;
    }

    .cookie-hero {
        position: relative;
        padding: 6rem 0 5rem;
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.14), transparent 32%),
            radial-gradient(circle at bottom right, rgba(32, 201, 151, 0.16), transparent 34%),
            linear-gradient(
                90deg,
                rgba(7, 19, 28, 0.94) 0%,
                rgba(7, 19, 28, 0.86) 36%,
                rgba(11, 61, 145, 0.72) 66%,
                rgba(15, 118, 110, 0.62) 100%
            ),
            url("{% static 'expat_life/images/sri_lanka_living_hero.webp' %}") center/cover no-repeat;
        color: #fff;
        overflow: hidden;
    }

    .cookie-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 35%),
            radial-gradient(circle at 80% 10%, rgba(255, 193, 7, 0.10), transparent 28%);
        pointer-events: none;
    }

    .cookie-hero::after {
        content: "";
        position: absolute;
        right: -160px;
        bottom: -180px;
        width: 480px;
        height: 480px;
        border-radius: 50%;
        background: rgba(255, 193, 7, 0.08);
        pointer-events: none;
    }

    .cookie-hero .container {
        position: relative;
        z-index: 2;
    }

    .cookie-mini-title {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        padding: .45rem .9rem;
        border-radius: 999px;
        background: rgba(255, 193, 7, 0.16);
        border: 1px solid rgba(255, 193, 7, 0.32);
        color: #ffd36b;
        font-size: .82rem;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
        margin-bottom: 1rem;
        backdrop-filter: blur(10px);
    }

    .cookie-mini-title i {
        color: #ffc107;
    }

    .cookie-hero h1 {
        font-size: clamp(2.35rem, 4.5vw, 4.35rem);
        font-weight: 900;
        letter-spacing: -0.045em;
        line-height: 1.05;
        color: #fff;
    }

    .cookie-hero .lead {
        color: rgba(255, 255, 255, 0.88);
        font-size: 1.12rem;
        line-height: 1.85;
        max-width: 880px;
        margin-left: auto;
        margin-right: auto;
    }

    .cookie-meta-row {
        margin-top: 2rem;
    }

    .cookie-meta-card {
        height: 100%;
        padding: 1.2rem;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(10px);
    }

    .cookie-meta-card i {
        color: #ffd36b;
        font-size: 1.55rem;
        margin-bottom: .75rem;
    }

    .cookie-meta-card h5 {
        font-weight: 800;
        margin-bottom: .35rem;
    }

    .cookie-meta-card p {
        color: rgba(255, 255, 255, 0.78);
        margin-bottom: 0;
        font-size: .94rem;
        line-height: 1.6;
    }

    .cookie-section-wrap {
        margin-top: -3rem;
        position: relative;
        z-index: 5;
        padding-bottom: 5rem;
    }

    .cookie-main-card {
        border-radius: 32px;
        background: #ffffff;
        border: 1px solid rgba(13, 110, 253, 0.10);
        box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
        overflow: hidden;
    }

    .cookie-sidebar {
        background: linear-gradient(180deg, #f5f9ff, #ffffff);
        border-right: 1px solid rgba(13, 110, 253, 0.10);
        height: 100%;
        padding: 1.5rem;
        position: sticky;
        top: 90px;
    }

    .cookie-sidebar-title {
        font-weight: 900;
        color: #102033;
        margin-bottom: 1rem;
    }

    .cookie-sidebar a {
        display: flex;
        align-items: center;
        gap: .55rem;
        padding: .7rem .8rem;
        color: #475569;
        text-decoration: none;
        border-radius: 15px;
        font-weight: 700;
        font-size: .92rem;
        transition: all .2s ease;
    }

    .cookie-sidebar a:hover {
        background: #eef5ff;
        color: #0d6efd;
        transform: translateX(3px);
    }

    .cookie-content {
        padding: 2rem;
    }

    @media (min-width: 992px) {
        .cookie-content {
            padding: 3rem;
        }
    }

    .cookie-alert {
        display: flex;
        gap: .85rem;
        padding: 1rem 1.1rem;
        border-radius: 20px;
        background: #fffbeb;
        border-left: 4px solid #ffc107;
        color: #78350f;
        line-height: 1.65;
        margin-bottom: 2rem;
    }

    .cookie-alert i {
        color: #d97706;
        font-size: 1.25rem;
        margin-top: .15rem;
        flex: 0 0 auto;
    }

    .cookie-section {
        scroll-margin-top: 100px;
        padding-bottom: 2.5rem;
        margin-bottom: 2.5rem;
        border-bottom: 1px solid rgba(13, 110, 253, 0.10);
    }

    .cookie-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .cookie-section-label {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        background: rgba(15, 118, 110, 0.10);
        color: #0f766e;
        border: 1px solid rgba(15, 118, 110, 0.16);
        font-size: .76rem;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
        padding: .42rem .8rem;
        border-radius: 999px;
        margin-bottom: .75rem;
    }

    .cookie-section h2 {
        color: #102033;
        font-weight: 900;
        letter-spacing: -0.035em;
        margin-bottom: 1rem;
    }

    .cookie-section h3 {
        color: #0d6efd;
        font-weight: 850;
        font-size: 1.15rem;
        margin-top: 1.5rem;
        margin-bottom: .75rem;
    }

    .cookie-section p {
        color: #475569;
        line-height: 1.8;
        margin-bottom: 1rem;
    }

    .cookie-section ul {
        color: #475569;
        line-height: 1.8;
        padding-left: 1.25rem;
    }

    .cookie-section li {
        margin-bottom: .35rem;
    }

    .cookie-info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .cookie-info-card {
        border-radius: 22px;
        border: 1px solid rgba(13, 110, 253, 0.10);
        background: #f8fbff;
        padding: 1.2rem;
        height: 100%;
    }

    .cookie-info-card i {
        font-size: 1.6rem;
        color: #0f766e;
        margin-bottom: .75rem;
    }

    .cookie-info-card h5 {
        color: #102033;
        font-weight: 850;
        margin-bottom: .5rem;
    }

    .cookie-info-card p {
        margin-bottom: 0;
        font-size: .94rem;
    }

    .cookie-soft-box {
        background: #f8fbff;
        border: 1px solid rgba(13, 110, 253, 0.14);
        border-left: 4px solid #0f766e;
        border-radius: 22px;
        padding: 1.25rem;
        margin: 1.25rem 0;
    }

    .cookie-soft-box h4 {
        color: #0f766e;
        font-weight: 850;
        font-size: 1.08rem;
        margin-bottom: .65rem;
    }

    .cookie-warning-box {
        background: #fff7ed;
        border: 1px solid #fed7aa;
        border-left: 4px solid #ffc107;
        border-radius: 22px;
        padding: 1.25rem;
        margin: 1.25rem 0;
    }

    .cookie-warning-box h4 {
        color: #c2410c;
        font-weight: 850;
        font-size: 1.08rem;
        margin-bottom: .65rem;
    }

    .cookie-table-wrap {
        border-radius: 22px;
        overflow: hidden;
        border: 1px solid rgba(13, 110, 253, 0.12);
        margin: 1.5rem 0;
    }

    .cookie-table-wrap table {
        margin-bottom: 0;
    }

    .cookie-table-wrap thead {
        background: linear-gradient(135deg, #07131c, #0d6efd);
        color: #fff;
    }

    .cookie-table-wrap th {
        font-weight: 800;
        white-space: nowrap;
    }

    .cookie-table-wrap td {
        color: #475569;
        vertical-align: top;
    }

    .cookie-contact-card {
        border-radius: 24px;
        background: #f8fbff;
        border: 1px solid rgba(13, 110, 253, 0.10);
        padding: 1.5rem;
    }

    .cookie-contact-card span {
        color: #0d6efd;
        text-transform: uppercase;
        font-weight: 900;
        letter-spacing: .08em;
        font-size: .76rem;
    }

    .cookie-cta-box {
        position: relative;
        overflow: hidden;
        border-radius: 30px;
        padding: 2rem;
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.16), transparent 32%),
            linear-gradient(135deg, rgba(7, 19, 28, 0.98), rgba(11, 61, 145, 0.94), rgba(15, 118, 110, 0.90));
        color: #fff;
        margin-top: 2rem;
    }

    .cookie-cta-box::after {
        content: "";
        position: absolute;
        right: -90px;
        bottom: -120px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(255, 193, 7, 0.10);
    }

    .cookie-cta-box > * {
        position: relative;
        z-index: 2;
    }

    .cookie-cta-box p {
        color: rgba(255, 255, 255, 0.84);
        line-height: 1.7;
    }

    .cookie-cta-box .btn {
        border-radius: 999px;
        font-weight: 800;
        padding: .75rem 1.35rem;
    }

    html {
        scroll-behavior: smooth;
    }

    @media (max-width: 991.98px) {
        .cookie-hero {
            padding: 4.5rem 0;
        }

        .cookie-sidebar {
            position: relative;
            top: auto;
            border-right: none;
            border-bottom: 1px solid rgba(13, 110, 253, 0.10);
        }
    }

    @media (max-width: 575.98px) {
        .cookie-hero {
            padding: 3.5rem 0;
        }

        .cookie-content {
            padding: 1.25rem;
        }

        .cookie-main-card,
        .cookie-cta-box {
            border-radius: 24px;
        }
    }
</style>

<div class="cookie-page">

    <!-- HERO -->
    <section class="cookie-hero text-center">
        <div class="container">
            <span class="cookie-mini-title">
                <i class="bi bi-cookie"></i>
                Ensolanka Guest Portal
            </span>

            <h1>Cookie Policy</h1>

            <p class="lead mt-3 mb-0">
                This Cookie Policy explains how Ensolanka may use cookies, sessions, referral tracking,
                analytics, security technologies, and similar tools when you visit our website, create an account,
                use the Guest Dashboard, browse listings, or interact with our services.
            </p>

            <div class="row g-3 cookie-meta-row">
                <div class="col-md-4">
                    <div class="cookie-meta-card">
                        <i class="bi bi-calendar-check"></i>
                        <h5>Effective Date</h5>
                        <p>May 25, 2026</p>
                    </div>
                </div>

                <div class="col-md-4">
                    <div class="cookie-meta-card">
                        <i class="bi bi-shield-lock"></i>
                        <h5>Purpose</h5>
                        <p>Login sessions, security, preferences, analytics, and referral tracking.</p>
                    </div>
                </div>

                <div class="col-md-4">
                    <div class="cookie-meta-card">
                        <i class="bi bi-building-check"></i>
                        <h5>Company</h5>
                        <p>Ensolanka LLC / Ensolanka Holdings and related service divisions.</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- BODY -->
    <section class="cookie-section-wrap">
        <div class="container">
            <div class="cookie-main-card">
                <div class="row g-0">

                    <!-- Sidebar -->
                    <div class="col-lg-3">
                        <aside class="cookie-sidebar">
                            <div class="cookie-sidebar-title">Policy Sections</div>

                            <nav>
                                <a href="#overview"><i class="bi bi-chevron-right"></i> Overview</a>
                                <a href="#what-are-cookies"><i class="bi bi-chevron-right"></i> What Are Cookies?</a>
                                <a href="#types"><i class="bi bi-chevron-right"></i> Types We Use</a>
                                <a href="#essential"><i class="bi bi-chevron-right"></i> Essential Cookies</a>
                                <a href="#preferences"><i class="bi bi-chevron-right"></i> Preferences</a>
                                <a href="#analytics"><i class="bi bi-chevron-right"></i> Analytics</a>
                                <a href="#affiliate"><i class="bi bi-chevron-right"></i> Referral Tracking</a>
                                <a href="#payments"><i class="bi bi-chevron-right"></i> Payments</a>
                                <a href="#third-party"><i class="bi bi-chevron-right"></i> Third Parties</a>
                                <a href="#manage"><i class="bi bi-chevron-right"></i> Manage Cookies</a>
                                <a href="#updates"><i class="bi bi-chevron-right"></i> Updates</a>
                                <a href="#contact"><i class="bi bi-chevron-right"></i> Contact</a>
                            </nav>
                        </aside>
                    </div>

                    <!-- Content -->
                    <div class="col-lg-9">
                        <div class="cookie-content">

                            <div class="cookie-alert">
                                <i class="bi bi-exclamation-triangle-fill"></i>
                                <div>
                                    <strong>Important Notice:</strong>
                                    This Cookie Policy should be read together with Ensolanka’s Privacy Policy,
                                    Terms & Conditions, Refund & Payment Policy, Disclaimer, and FAQ.
                                </div>
                            </div>

                            <!-- 1 -->
                            <section class="cookie-section" id="overview">
                                <span class="cookie-section-label">1. Overview</span>
                                <h2>Purpose of This Cookie Policy</h2>

                                <p>
                                    Ensolanka uses cookies, sessions, local storage, referral codes, analytics tools,
                                    security technologies, and similar tracking or storage technologies to operate
                                    the Guest Portal and related services.
                                </p>

                                <p>
                                    These technologies help us keep users signed in, protect accounts, remember
                                    preferences, improve the website, support payment flows, track affiliate or
                                    ambassador referrals, understand website performance, and provide a smoother
                                    Resident Guest experience.
                                </p>

                                <div class="cookie-soft-box">
                                    <h4><i class="bi bi-info-circle-fill me-2"></i>Simple Explanation</h4>
                                    <p class="mb-0">
                                        Cookies are small files or pieces of data stored on your browser or device.
                                        They help the website remember useful information, such as whether you are
                                        logged in, which referral link brought you to the site, or what language or
                                        settings you prefer.
                                    </p>
                                </div>
                            </section>

                            <!-- 2 -->
                            <section class="cookie-section" id="what-are-cookies">
                                <span class="cookie-section-label">2. Cookies Explained</span>
                                <h2>What Are Cookies and Similar Technologies?</h2>

                                <p>
                                    Cookies are small text files placed on your device when you visit a website.
                                    They may store information such as a session ID, preference, referral code,
                                    security token, or analytics identifier.
                                </p>

                                <p>Similar technologies may include:</p>

                                <ul>
                                    <li>Browser session storage.</li>
                                    <li>Local storage.</li>
                                    <li>Server-side sessions.</li>
                                    <li>Tracking pixels.</li>
                                    <li>Analytics scripts.</li>
                                    <li>Referral or affiliate tracking codes.</li>
                                    <li>Security and fraud-prevention identifiers.</li>
                                </ul>

                                <p>
                                    Some cookies are necessary for the platform to function. Others may be optional
                                    and used for analytics, marketing, performance, or referral attribution.
                                </p>
                            </section>

                            <!-- 3 -->
                            <section class="cookie-section" id="types">
                                <span class="cookie-section-label">3. Cookie Types</span>
                                <h2>Types of Cookies We May Use</h2>

                                <div class="cookie-info-grid">
                                    <div class="cookie-info-card">
                                        <i class="bi bi-shield-check"></i>
                                        <h5>Essential</h5>
                                        <p>Required for login, sessions, dashboard access, form security, and account protection.</p>
                                    </div>

                                    <div class="cookie-info-card">
                                        <i class="bi bi-sliders"></i>
                                        <h5>Preference</h5>
                                        <p>Remember language, display preferences, form choices, and user settings where enabled.</p>
                                    </div>

                                    <div class="cookie-info-card">
                                        <i class="bi bi-bar-chart-line"></i>
                                        <h5>Analytics</h5>
                                        <p>Help us understand traffic, page views, user journeys, and website performance.</p>
                                    </div>

                                    <div class="cookie-info-card">
                                        <i class="bi bi-link-45deg"></i>
                                        <h5>Referral</h5>
                                        <p>Help identify affiliate, ambassador, or referral links connected to Guest signups.</p>
                                    </div>
                                </div>

                                <div class="cookie-table-wrap table-responsive">
                                    <table class="table table-striped align-middle">
                                        <thead>
                                            <tr>
                                                <th>Cookie Category</th>
                                                <th>Purpose</th>
                                                <th>Can You Disable?</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td><strong>Essential Cookies</strong></td>
                                                <td>Login, account security, CSRF protection, dashboard sessions, form submissions.</td>
                                                <td>Not recommended; the site may not work properly.</td>
                                            </tr>
                                            <tr>
                                                <td><strong>Preference Cookies</strong></td>
                                                <td>Remember language, display, package, form, or user experience preferences.</td>
                                                <td>Yes, but some preferences may reset.</td>
                                            </tr>
                                            <tr>
                                                <td><strong>Analytics Cookies</strong></td>
                                                <td>Understand site usage, improve content, diagnose issues, and measure performance.</td>
                                                <td>Yes, depending on browser and consent tools.</td>
                                            </tr>
                                            <tr>
                                                <td><strong>Affiliate / Referral Cookies</strong></td>
                                                <td>Track ambassador, affiliate, or referral source for signup attribution and commissions.</td>
                                                <td>Yes, but referral attribution may not work.</td>
                                            </tr>
                                            <tr>
                                                <td><strong>Payment-Related Cookies</strong></td>
                                                <td>Support secure checkout, payment flow, fraud prevention, and gateway redirection.</td>
                                                <td>Some may be essential for payment completion.</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </section>

                            <!-- 4 -->
                            <section class="cookie-section" id="essential">
                                <span class="cookie-section-label">4. Essential Cookies</span>
                                <h2>Cookies Required for the Website to Work</h2>

                                <p>
                                    Essential cookies and sessions are necessary for core platform features. Without
                                    them, the Guest Portal may not function properly.
                                </p>

                                <p>Essential cookies may be used for:</p>

                                <ul>
                                    <li>User login and authentication.</li>
                                    <li>Keeping you signed in during your session.</li>
                                    <li>Protecting forms from unauthorized submissions.</li>
                                    <li>Guest dashboard access.</li>
                                    <li>Admin dashboard and role-based access control.</li>
                                    <li>Account security and suspicious activity detection.</li>
                                    <li>Remembering temporary session data during signup or checkout.</li>
                                    <li>Preventing fraud, abuse, and unauthorized access.</li>
                                </ul>

                                <div class="cookie-warning-box">
                                    <h4><i class="bi bi-shield-lock-fill me-2"></i>Essential Cookie Notice</h4>
                                    <p class="mb-0">
                                        If you disable essential cookies, you may not be able to log in, submit forms,
                                        access your dashboard, complete payment steps, or use important account features.
                                    </p>
                                </div>
                            </section>

                            <!-- 5 -->
                            <section class="cookie-section" id="preferences">
                                <span class="cookie-section-label">5. Preferences</span>
                                <h2>Preference and Functionality Cookies</h2>

                                <p>
                                    Preference cookies help the website remember choices you make so your experience
                                    is smoother when you return.
                                </p>

                                <p>These may include:</p>

                                <ul>
                                    <li>Language selection.</li>
                                    <li>Country or region preferences.</li>
                                    <li>Selected lifestyle package or package comparison state.</li>
                                    <li>Form progress or temporary signup choices.</li>
                                    <li>Dashboard display preferences.</li>
                                    <li>Remembered filters for rental listings, service partners, or public profiles.</li>
                                </ul>

                                <p>
                                    If these cookies are disabled, the website may still work, but you may need to
                                    reselect preferences or re-enter information.
                                </p>
                            </section>

                            <!-- 6 -->
                            <section class="cookie-section" id="analytics">
                                <span class="cookie-section-label">6. Analytics</span>
                                <h2>Analytics and Performance Cookies</h2>

                                <p>
                                    Ensolanka may use analytics cookies or similar technologies to understand how
                                    visitors use the website and how the platform can be improved.
                                </p>

                                <p>Analytics may help us understand:</p>

                                <ul>
                                    <li>Which pages are visited most often.</li>
                                    <li>How visitors find the website.</li>
                                    <li>Which countries or regions generate interest.</li>
                                    <li>Which package pages, guide pages, or signup pages perform better.</li>
                                    <li>Where users may experience difficulty or errors.</li>
                                    <li>How to improve page speed, structure, and content.</li>
                                </ul>

                                <p>
                                    Analytics data is usually aggregated or pseudonymous where possible. However,
                                    third-party analytics providers may process data according to their own privacy
                                    and cookie policies.
                                </p>
                            </section>

                            <!-- 7 -->
                            <section class="cookie-section" id="affiliate">
                                <span class="cookie-section-label">7. Referral Tracking</span>
                                <h2>Affiliate, Ambassador, and Referral Cookies</h2>

                                <p>
                                    Ensolanka may use referral cookies or session data to identify whether a visitor
                                    arrived through an Ensolanka Global Ambassador, affiliate partner, referral link,
                                    QR code, campaign link, or promotional campaign.
                                </p>

                                <p>Referral tracking may be used to:</p>

                                <ul>
                                    <li>Attribute a Guest signup to the correct affiliate or ambassador.</li>
                                    <li>Store a referral code for a limited time.</li>
                                    <li>Calculate eligible commissions where applicable.</li>
                                    <li>Prevent duplicate or fraudulent referral claims.</li>
                                    <li>Measure marketing campaign effectiveness.</li>
                                    <li>Improve multilingual promotional campaigns.</li>
                                </ul>

                                <div class="cookie-soft-box">
                                    <h4><i class="bi bi-link-45deg me-2"></i>Referral Attribution</h4>
                                    <p class="mb-0">
                                        If you block or delete referral cookies, Ensolanka may not be able to identify
                                        the affiliate, ambassador, or campaign that introduced you to the platform.
                                    </p>
                                </div>
                            </section>

                            <!-- 8 -->
                            <section class="cookie-section" id="payments">
                                <span class="cookie-section-label">8. Payments</span>
                                <h2>Payment-Related Cookies and Secure Checkout</h2>

                                <p>
                                    Payment-related cookies or session data may be used when you access the Payment
                                    Center, select payable items, proceed to checkout, return from a payment gateway,
                                    or complete a payment transaction.
                                </p>

                                <p>These technologies may support:</p>

                                <ul>
                                    <li>Cart or selected payable item state.</li>
                                    <li>Checkout session creation.</li>
                                    <li>Payment gateway redirection.</li>
                                    <li>Payment confirmation or failure handling.</li>
                                    <li>Fraud prevention and transaction security.</li>
                                    <li>Wallet credit or payment status updates.</li>
                                </ul>

                                <p>
                                    Third-party payment processors such as Stripe, PayPal, banks, or card networks
                                    may use their own cookies and tracking technologies during payment processing.
                                    Those cookies are governed by their own policies.
                                </p>
                            </section>

                            <!-- 9 -->
                            <section class="cookie-section" id="third-party">
                                <span class="cookie-section-label">9. Third Parties</span>
                                <h2>Third-Party Cookies and External Tools</h2>

                                <p>
                                    Some third-party services integrated with the Ensolanka website may set or use
                                    cookies, pixels, scripts, or similar technologies.
                                </p>

                                <p>These third parties may include:</p>

                                <ul>
                                    <li>Payment processors such as Stripe or PayPal.</li>
                                    <li>Analytics providers.</li>
                                    <li>Advertising or retargeting platforms where enabled.</li>
                                    <li>Email, SMS, WhatsApp, or communication tools.</li>
                                    <li>Video hosting or embedded media providers.</li>
                                    <li>Map, location, or address tools where used.</li>
                                    <li>Security, spam-prevention, or fraud-prevention providers.</li>
                                    <li>Affiliate or campaign tracking tools.</li>
                                </ul>

                                <p>
                                    Ensolanka does not fully control third-party cookies. You should review the cookie
                                    and privacy policies of relevant third-party providers for more information.
                                </p>
                            </section>

                            <!-- 10 -->
                            <section class="cookie-section" id="manage">
                                <span class="cookie-section-label">10. Managing Cookies</span>
                                <h2>How You Can Control Cookies</h2>

                                <p>
                                    You can usually manage or delete cookies through your browser settings. Most
                                    browsers allow you to block cookies, delete existing cookies, or receive alerts
                                    before cookies are stored.
                                </p>

                                <p>You may control cookies through:</p>

                                <ul>
                                    <li>Your browser privacy settings.</li>
                                    <li>Device settings.</li>
                                    <li>Cookie consent tools where available on the website.</li>
                                    <li>Analytics opt-out tools provided by analytics platforms.</li>
                                    <li>Advertising preference tools provided by advertising networks.</li>
                                </ul>

                                <div class="cookie-warning-box">
                                    <h4><i class="bi bi-exclamation-triangle-fill me-2"></i>Effect of Blocking Cookies</h4>
                                    <p class="mb-0">
                                        If you block or delete cookies, some features may not work correctly. You may
                                        lose login sessions, referral attribution, saved preferences, dashboard access,
                                        form progress, or checkout continuity.
                                    </p>
                                </div>
                            </section>

                            <!-- 11 -->
                            <section class="cookie-section" id="retention">
                                <span class="cookie-section-label">11. Retention</span>
                                <h2>How Long Cookies Stay on Your Device</h2>

                                <p>
                                    Cookies may be session cookies or persistent cookies.
                                </p>

                                <ul>
                                    <li>
                                        <strong>Session cookies</strong> usually expire when you close your browser
                                        or when your login/session ends.
                                    </li>
                                    <li>
                                        <strong>Persistent cookies</strong> may remain on your device for a set period
                                        unless you delete them earlier.
                                    </li>
                                </ul>

                                <p>
                                    Referral cookies, preference cookies, analytics cookies, and security cookies may
                                    each have different retention periods depending on their purpose, system settings,
                                    legal requirements, and third-party provider rules.
                                </p>
                            </section>

                            <!-- 12 -->
                            <section class="cookie-section" id="do-not-track">
                                <span class="cookie-section-label">12. Browser Signals</span>
                                <h2>Do Not Track and Similar Signals</h2>

                                <p>
                                    Some browsers may send “Do Not Track” or similar privacy signals. Because there is
                                    no single universal standard for how websites must respond to such signals,
                                    Ensolanka may not respond to all browser-based tracking signals in the same way.
                                </p>

                                <p>
                                    Where legally required or technically supported, Ensolanka may provide cookie
                                    controls or consent options for certain non-essential cookies.
                                </p>
                            </section>

                            <!-- 13 -->
                            <section class="cookie-section" id="updates">
                                <span class="cookie-section-label">13. Updates</span>
                                <h2>Changes to This Cookie Policy</h2>

                                <p>
                                    Ensolanka may update this Cookie Policy from time to time due to new platform
                                    features, payment tools, affiliate tracking methods, analytics tools, legal
                                    requirements, security improvements, or business model changes.
                                </p>

                                <p>
                                    Updated versions may be posted on the website with a new effective date. Continued
                                    use of the website after changes means you accept the updated Cookie Policy.
                                </p>
                            </section>

                            <!-- 14 -->
                            <section class="cookie-section" id="contact">
                                <span class="cookie-section-label">14. Contact</span>
                                <h2>Contact Information</h2>

                                <p>
                                    For questions about this Cookie Policy or how Ensolanka uses cookies and similar
                                    technologies, please contact us through official channels.
                                </p>

                                <div class="cookie-contact-card">
                                    <div class="row g-3">
                                        <div class="col-md-6">
                                            <span>Company</span>
                                            <p class="mb-0 fw-semibold text-dark">Ensolanka LLC</p>
                                        </div>

                                        <div class="col-md-6">
                                            <span>Email</span>
                                            <p class="mb-0 fw-semibold text-dark">info@ensolanka.com</p>
                                        </div>

                                        <div class="col-md-6">
                                            <span>Phone / WhatsApp</span>
                                            <p class="mb-0 fw-semibold text-dark">+94 71 697 8355 / +1 307 218-2541</p>
                                        </div>

                                        <div class="col-md-6">
                                            <span>Website</span>
                                            <p class="mb-0 fw-semibold text-dark">ensolanka.lk</p>
                                        </div>

                                        <div class="col-12">
                                            <span>Address</span>
                                            <p class="mb-0 fw-semibold text-dark">30 N Gould St Ste R, Sheridan, WY, 82801, USA</p>
                                        </div>
                                    </div>
                                </div>
                            </section>

                            <!-- CTA -->
                            <div class="cookie-cta-box">
                                <div class="row align-items-center g-3">
                                    <div class="col-lg-8">
                                        <h3 class="fw-bold mb-2">Cookie settings help support your Guest Portal experience.</h3>
                                        <p class="mb-lg-0">
                                            This Cookie Policy works together with our Privacy Policy, Terms, Refund & Payment Policy,
                                            Disclaimer, and FAQ to explain how the platform operates.
                                        </p>
                                    </div>

                                    <div class="col-lg-4 text-lg-end">
                                        <div class="d-flex flex-wrap gap-2 justify-content-lg-end">
                                            <a href="{% url 'expat_life:privacy_policy' %}" class="btn btn-warning">
                                                Privacy
                                            </a>

                                            <a href="{% url 'expat_life:terms' %}" class="btn btn-light">
                                                Terms
                                            </a>

                                            <a href="{% url 'expat_life:faq' %}" class="btn btn-outline-light">
                                                FAQ
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                    <!-- End Content -->

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

</div>

{% endblock %}