{% extends 'rental_app/base_rental.html' %}
{% load static %}

{% block title %}Cookie Policy | Rent in Sri Lanka{% endblock %}

{% block content %}

<style>
    /* =========================================================
       RENT IN SRI LANKA - COOKIE POLICY PAGE
    ========================================================= */

    .rental-cookie-hero {
        position: relative;
        min-height: 540px;
        display: flex;
        align-items: center;
        overflow: hidden;
        background-color: #0d1b2a;
    }

    .rental-cookie-hero-bg {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(
                90deg,
                rgba(8, 20, 32, 0.95) 0%,
                rgba(8, 20, 32, 0.87) 45%,
                rgba(8, 20, 32, 0.72) 100%
            ),
            url("{% static 'expat_life/images/rental_hero.webp' %}") center center / cover no-repeat;
        transform: scale(1.03);
        z-index: 0;
    }

    .rental-cookie-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 20% 40%, rgba(255, 193, 7, 0.18), transparent 35%),
            radial-gradient(circle at 80% 65%, rgba(13, 110, 253, 0.18), transparent 38%);
        z-index: 1;
    }

    .rental-cookie-hero-content {
        position: relative;
        z-index: 2;
        padding-top: 90px;
        padding-bottom: 90px;
    }

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

    .rental-cookie-hero h1 {
        color: #fff;
    }

    .rental-cookie-hero p {
        color: rgba(255, 255, 255, 0.88);
    }

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

    .cookie-highlight-card {
        height: 100%;
        border-radius: 28px;
        padding: 32px;
        color: #fff;
        background: linear-gradient(135deg, #0d1b2a 0%, #0d6efd 100%);
        box-shadow: 0 22px 45px rgba(13, 27, 42, 0.20);
    }

    .cookie-highlight-card i {
        color: #ffc107;
        font-size: 2rem;
    }

    .cookie-toc-card {
        background: #0d1b2a;
        color: #fff;
        border-radius: 28px;
        padding: 30px;
        position: sticky;
        top: 110px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    }

    .cookie-toc-card h5 {
        color: #ffc107;
    }

    .cookie-toc-card a {
        display: block;
        color: rgba(255, 255, 255, 0.88);
        text-decoration: none;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        transition: 0.2s ease;
    }

    .cookie-toc-card a:last-child {
        border-bottom: 0;
    }

    .cookie-toc-card a:hover {
        color: #ffc107;
        padding-left: 5px;
    }

    .cookie-section-card {
        background: #fff;
        border-radius: 26px;
        padding: 34px;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
        border: 1px solid rgba(15, 23, 42, 0.05);
        margin-bottom: 26px;
    }

    .cookie-section-card h2 {
        font-weight: 800;
        color: #0d1b2a;
        margin-bottom: 18px;
        font-size: 1.55rem;
    }

    .cookie-section-card h3 {
        font-weight: 700;
        color: #111827;
        font-size: 1.15rem;
        margin-top: 22px;
        margin-bottom: 12px;
    }

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

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

    .cookie-section-card li {
        margin-bottom: 10px;
    }

    .cookie-number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: #eaf3ff;
        color: #0d6efd;
        font-weight: 800;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .cookie-title-row {
        display: flex;
        align-items: center;
        margin-bottom: 18px;
    }

    .cookie-note-box {
        border-radius: 20px;
        padding: 20px;
        background: #fff7df;
        border-left: 5px solid #ffc107;
        margin-top: 20px;
        color: #334155;
    }

    .cookie-blue-box {
        border-radius: 20px;
        padding: 20px;
        background: #eef5ff;
        border-left: 5px solid #0d6efd;
        margin-top: 20px;
        color: #334155;
    }

    .cookie-green-box {
        border-radius: 20px;
        padding: 20px;
        background: #ecfdf5;
        border-left: 5px solid #198754;
        margin-top: 20px;
        color: #334155;
    }

    .cookie-danger-box {
        border-radius: 20px;
        padding: 20px;
        background: #fff1f2;
        border-left: 5px solid #dc3545;
        margin-top: 20px;
        color: #334155;
    }

    .cookie-grid-box {
        background: #f8fafc;
        border-radius: 22px;
        padding: 22px;
        border: 1px solid rgba(15, 23, 42, 0.06);
        margin-top: 20px;
    }

    .cookie-mini-card {
        height: 100%;
        background: #fff;
        border-radius: 18px;
        padding: 20px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    }

    .cookie-mini-card i {
        display: inline-block;
        font-size: 1.4rem;
        color: #0d6efd;
        margin-bottom: 10px;
    }

    .cookie-table-wrap {
        overflow-x: auto;
        margin-top: 20px;
        border-radius: 20px;
        border: 1px solid rgba(15, 23, 42, 0.08);
    }

    .cookie-table {
        margin-bottom: 0;
        background: #fff;
    }

    .cookie-table thead th {
        background: #0d1b2a;
        color: #fff;
        font-weight: 700;
        border: none;
        padding: 16px;
        white-space: nowrap;
    }

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

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

    .cookie-final-cta {
        border-radius: 32px;
        padding: 58px 36px;
        background:
            linear-gradient(
                135deg,
                rgba(13, 27, 42, 0.97) 0%,
                rgba(13, 110, 253, 0.93) 100%
            );
        box-shadow: 0 30px 65px rgba(13, 27, 42, 0.20);
    }

    @media (max-width: 991px) {
        .rental-cookie-hero {
            min-height: auto;
        }

        .rental-cookie-hero-content {
            padding-top: 70px;
            padding-bottom: 70px;
        }

        .cookie-toc-card {
            position: static;
            margin-bottom: 30px;
        }
    }

    @media (max-width: 767px) {
        .cookie-intro-card,
        .cookie-highlight-card,
        .cookie-toc-card,
        .cookie-section-card {
            padding: 24px;
        }

        .cookie-final-cta {
            padding: 42px 22px;
        }

        .cookie-title-row {
            align-items: flex-start;
        }
    }
</style>


<!-- =========================================================
     HERO
========================================================= -->
<section class="rental-cookie-hero">
    <div class="rental-cookie-hero-bg"></div>

    <div class="container rental-cookie-hero-content">
        <div class="row">
            <div class="col-lg-9">
                <span class="rental-cookie-badge mb-3">
                    Rent in Sri Lanka | Website Technology &amp; Preferences
                </span>

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

                <p class="lead mb-0">
                    This Cookie Policy explains how the Rent in Sri Lanka rental portal may use cookies,
                    session tools, and similar technologies to support account login, security,
                    dashboard functionality, forms, payment-related workflows, preferences,
                    and website performance.
                </p>
            </div>
        </div>
    </div>
</section>


<!-- =========================================================
     INTRO
========================================================= -->
<section class="py-5 bg-light">
    <div class="container">
        <div class="row g-4 align-items-stretch">

            <div class="col-lg-8">
                <div class="cookie-intro-card h-100">
                    <span class="section-mini-title">Why Cookies Matter</span>
                    <h2 class="fw-bold mb-3">
                        Cookies Help the Portal Work More Securely and Smoothly
                    </h2>

                    <p class="text-muted">
                        Cookies and similar technologies can help a website remember necessary session information,
                        protect forms, keep authenticated users signed in while navigating the portal,
                        support reliable checkout flows, and improve usability.
                    </p>

                    <p class="text-muted mb-0">
                        This Policy describes the types of cookies and related tools that may be used
                        on the Rent in Sri Lanka rental portal and explains how users can manage them.
                    </p>
                </div>
            </div>

            <div class="col-lg-4">
                <div class="cookie-highlight-card">
                    <i class="bi bi-cookie d-block mb-3"></i>

                    <h4 class="fw-bold mb-3">
                        Practical Principle
                    </h4>

                    <p class="mb-0">
                        Essential cookies may be needed for login, security, and core portal operation.
                        Optional cookies, where enabled, should support analytics, preferences, or service improvement.
                    </p>
                </div>
            </div>

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


<!-- =========================================================
     MAIN COOKIE POLICY CONTENT
========================================================= -->
<section class="py-5 bg-white">
    <div class="container">
        <div class="row g-5">

            <!-- TABLE OF CONTENTS -->
            <div class="col-lg-4">
                <div class="cookie-toc-card">
                    <h5 class="fw-bold mb-3">Cookie Policy Overview</h5>

                    <a href="#cookie-1">1. Scope of This Policy</a>
                    <a href="#cookie-2">2. What Are Cookies?</a>
                    <a href="#cookie-3">3. Why We May Use Cookies</a>
                    <a href="#cookie-4">4. Types of Cookies We May Use</a>
                    <a href="#cookie-5">5. Essential and Session Cookies</a>
                    <a href="#cookie-6">6. Security and Form Protection Tools</a>
                    <a href="#cookie-7">7. Preference and Convenience Cookies</a>
                    <a href="#cookie-8">8. Analytics and Performance Cookies</a>
                    <a href="#cookie-9">9. Payment and Third-Party Cookies</a>
                    <a href="#cookie-10">10. Social Media and External Platforms</a>
                    <a href="#cookie-11">11. Cookie Table</a>
                    <a href="#cookie-12">12. How to Manage Cookies</a>
                    <a href="#cookie-13">13. What Happens if Cookies Are Disabled?</a>
                    <a href="#cookie-14">14. Similar Technologies</a>
                    <a href="#cookie-15">15. Relationship with Privacy Policy</a>
                    <a href="#cookie-16">16. Changes to This Policy</a>
                    <a href="#cookie-17">17. Contact Us</a>
                </div>
            </div>


            <!-- POLICY SECTIONS -->
            <div class="col-lg-8">

                <!-- 1 -->
                <div class="cookie-section-card" id="cookie-1">
                    <div class="cookie-title-row">
                        <span class="cookie-number">01</span>
                        <h2 class="mb-0">Scope of This Cookie Policy</h2>
                    </div>

                    <p>
                        This Cookie Policy applies to the Rent in Sri Lanka rental portal and related pages,
                        including Rental Owner signup, login, profile pages, dashboards, listing creation,
                        contact forms, payment-center access, legal pages, and other rental portal features.
                    </p>

                    <p>
                        It explains the possible use of cookies, browser storage, session technologies,
                        embedded service tools, and similar website technologies used to operate or improve the portal.
                    </p>
                </div>


                <!-- 2 -->
                <div class="cookie-section-card" id="cookie-2">
                    <div class="cookie-title-row">
                        <span class="cookie-number">02</span>
                        <h2 class="mb-0">What Are Cookies?</h2>
                    </div>

                    <p>
                        Cookies are small data files that a website may store on a user’s browser or device.
                        They can help a site recognize a session, maintain a logged-in state,
                        remember limited preferences, protect forms, or understand how pages are used.
                    </p>

                    <p>
                        Some cookies are temporary and disappear when the browser session ends.
                        Others may remain for a longer period unless deleted by the user or expired automatically.
                    </p>

                    <div class="cookie-blue-box">
                        Cookies are not the same as software programs. They do not independently run code on your device.
                        Their role is generally to store or transmit limited browser-related information.
                    </div>
                </div>


                <!-- 3 -->
                <div class="cookie-section-card" id="cookie-3">
                    <div class="cookie-title-row">
                        <span class="cookie-number">03</span>
                        <h2 class="mb-0">Why We May Use Cookies</h2>
                    </div>

                    <p>
                        The portal may use cookies and similar technologies for purposes such as:
                    </p>

                    <ul>
                        <li>Keeping a Rental Owner signed in while moving through protected pages;</li>
                        <li>Supporting secure account access and session management;</li>
                        <li>Helping protect forms against misuse or automated abuse;</li>
                        <li>Maintaining continuity during contact form, login, or payment-related actions;</li>
                        <li>Remembering limited user preferences where enabled;</li>
                        <li>Understanding general website performance and usage patterns where analytics tools are enabled;</li>
                        <li>Supporting embedded or linked third-party services that may have their own cookie practices.</li>
                    </ul>
                </div>


                <!-- 4 -->
                <div class="cookie-section-card" id="cookie-4">
                    <div class="cookie-title-row">
                        <span class="cookie-number">04</span>
                        <h2 class="mb-0">Types of Cookies We May Use</h2>
                    </div>

                    <div class="cookie-grid-box">
                        <div class="row g-3">

                            <div class="col-md-6">
                                <div class="cookie-mini-card">
                                    <i class="bi bi-lock-fill"></i>
                                    <h6 class="fw-bold">Essential Cookies</h6>
                                    <p class="small text-muted mb-0">
                                        Needed for core features such as security, authentication,
                                        and basic portal functionality.
                                    </p>
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="cookie-mini-card">
                                    <i class="bi bi-person-check-fill"></i>
                                    <h6 class="fw-bold">Session Cookies</h6>
                                    <p class="small text-muted mb-0">
                                        Help keep a logged-in user connected during a browsing session
                                        and support form continuity.
                                    </p>
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="cookie-mini-card">
                                    <i class="bi bi-sliders2"></i>
                                    <h6 class="fw-bold">Preference Cookies</h6>
                                    <p class="small text-muted mb-0">
                                        May remember limited settings or choices to improve convenience.
                                    </p>
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="cookie-mini-card">
                                    <i class="bi bi-bar-chart-fill"></i>
                                    <h6 class="fw-bold">Analytics Cookies</h6>
                                    <p class="small text-muted mb-0">
                                        May help measure page performance and usage trends where enabled.
                                    </p>
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="cookie-mini-card">
                                    <i class="bi bi-credit-card-2-front-fill"></i>
                                    <h6 class="fw-bold">Payment-Related Cookies</h6>
                                    <p class="small text-muted mb-0">
                                        May be used by checkout providers or transaction tools
                                        when the user proceeds to a payment flow.
                                    </p>
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="cookie-mini-card">
                                    <i class="bi bi-share-fill"></i>
                                    <h6 class="fw-bold">Third-Party Service Cookies</h6>
                                    <p class="small text-muted mb-0">
                                        May be set by external services, social platforms,
                                        maps, videos, or payment providers where used.
                                    </p>
                                </div>
                            </div>

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


                <!-- 5 -->
                <div class="cookie-section-card" id="cookie-5">
                    <div class="cookie-title-row">
                        <span class="cookie-number">05</span>
                        <h2 class="mb-0">Essential and Session Cookies</h2>
                    </div>

                    <p>
                        Essential cookies may be necessary for the portal to function correctly.
                        Without them, certain important services may not work as intended.
                    </p>

                    <p>
                        These may support:
                    </p>

                    <ul>
                        <li>Secure login sessions for Rental Owners;</li>
                        <li>Protection of dashboard and profile pages;</li>
                        <li>Page-to-page continuity while submitting forms;</li>
                        <li>Session-based notifications or temporary system messages;</li>
                        <li>Security and abuse-prevention functions.</li>
                    </ul>

                    <div class="cookie-green-box">
                        Essential cookies are usually tied to the reliable operation of the site
                        rather than advertising or unrelated marketing.
                    </div>
                </div>


                <!-- 6 -->
                <div class="cookie-section-card" id="cookie-6">
                    <div class="cookie-title-row">
                        <span class="cookie-number">06</span>
                        <h2 class="mb-0">Security and Form Protection Tools</h2>
                    </div>

                    <p>
                        The portal may use cookie-based or session-based tools to help protect forms,
                        login processes, and dashboard actions against misuse, cross-site attacks,
                        automated abuse, or other suspicious behavior.
                    </p>

                    <p>
                        This may be relevant when users:
                    </p>

                    <ul>
                        <li>Create a Rental Owner account;</li>
                        <li>Sign in to their dashboard;</li>
                        <li>Submit contact forms;</li>
                        <li>Create or update property listings;</li>
                        <li>Proceed to payment-related actions.</li>
                    </ul>

                    <div class="cookie-note-box">
                        These protections support a safer portal experience for Rental Owners,
                        Guests, and Ensolanka’s operations.
                    </div>
                </div>


                <!-- 7 -->
                <div class="cookie-section-card" id="cookie-7">
                    <div class="cookie-title-row">
                        <span class="cookie-number">07</span>
                        <h2 class="mb-0">Preference and Convenience Cookies</h2>
                    </div>

                    <p>
                        Where enabled, the portal may use preference-related cookies or local browser storage
                        to remember limited choices that improve usability.
                    </p>

                    <p>
                        Examples may include:
                    </p>

                    <ul>
                        <li>Dismissed notices or messages;</li>
                        <li>Cookie-banner preference selections;</li>
                        <li>Language or interface-related choices where introduced;</li>
                        <li>Other simple convenience settings that make repeat use smoother.</li>
                    </ul>
                </div>


                <!-- 8 -->
                <div class="cookie-section-card" id="cookie-8">
                    <div class="cookie-title-row">
                        <span class="cookie-number">08</span>
                        <h2 class="mb-0">Analytics and Performance Cookies</h2>
                    </div>

                    <p>
                        The portal may use analytics or performance tools where enabled
                        to understand how visitors use the site and to improve content,
                        navigation, usability, and technical reliability.
                    </p>

                    <p>
                        Such tools may help identify:
                    </p>

                    <ul>
                        <li>Which pages are visited most often;</li>
                        <li>Whether visitors encounter navigation problems;</li>
                        <li>General device or browser trends;</li>
                        <li>Approximate traffic patterns and page performance;</li>
                        <li>Areas of the portal that may benefit from improvement.</li>
                    </ul>

                    <div class="cookie-blue-box">
                        Analytics tools, where used, should support service improvement and may be governed
                        by separate provider terms or settings.
                    </div>
                </div>


                <!-- 9 -->
                <div class="cookie-section-card" id="cookie-9">
                    <div class="cookie-title-row">
                        <span class="cookie-number">09</span>
                        <h2 class="mb-0">Payment and Third-Party Cookies</h2>
                    </div>

                    <p>
                        If a user proceeds from the rental portal into a payment flow,
                        third-party payment gateways or checkout providers may use their own cookies,
                        session tools, fraud-prevention mechanisms, or technical identifiers.
                    </p>

                    <p>
                        These may support:
                    </p>

                    <ul>
                        <li>Secure checkout sessions;</li>
                        <li>Fraud detection;</li>
                        <li>Transaction continuity;</li>
                        <li>Payment authentication steps;</li>
                        <li>Checkout troubleshooting or provider-side diagnostics.</li>
                    </ul>

                    <div class="cookie-note-box">
                        Third-party payment providers control their own systems and may have separate
                        privacy and cookie notices.
                    </div>
                </div>


                <!-- 10 -->
                <div class="cookie-section-card" id="cookie-10">
                    <div class="cookie-title-row">
                        <span class="cookie-number">10</span>
                        <h2 class="mb-0">Social Media, Embedded Content, and External Platforms</h2>
                    </div>

                    <p>
                        The rental portal may link to social media pages, external websites, video platforms,
                        messaging tools, map services, or other third-party resources.
                    </p>

                    <p>
                        When users interact with such external content or leave the Rent in Sri Lanka portal,
                        those third parties may set their own cookies or collect information under their own policies.
                    </p>

                    <div class="cookie-danger-box">
                        Ensolanka does not control cookies placed independently by external third-party platforms.
                        Users should review the relevant third-party notices when using those services.
                    </div>
                </div>


                <!-- 11 -->
                <div class="cookie-section-card" id="cookie-11">
                    <div class="cookie-title-row">
                        <span class="cookie-number">11</span>
                        <h2 class="mb-0">Illustrative Cookie Table</h2>
                    </div>

                    <p>
                        The exact cookies used may change as the portal develops. The table below describes
                        common cookie categories that may be relevant to the Rent in Sri Lanka portal.
                    </p>

                    <div class="cookie-table-wrap">
                        <table class="table cookie-table">
                            <thead>
                                <tr>
                                    <th>Cookie Category</th>
                                    <th>Typical Purpose</th>
                                    <th>Likely Status</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><strong>Session / Authentication</strong></td>
                                    <td>Maintains signed-in portal sessions and supports protected dashboard access.</td>
                                    <td>Essential</td>
                                </tr>
                                <tr>
                                    <td><strong>Security / Form Protection</strong></td>
                                    <td>Supports secure form submissions and protection against certain misuse patterns.</td>
                                    <td>Essential</td>
                                </tr>
                                <tr>
                                    <td><strong>User Preferences</strong></td>
                                    <td>Remembers certain interface or cookie-choice preferences where enabled.</td>
                                    <td>Optional or Functional</td>
                                </tr>
                                <tr>
                                    <td><strong>Analytics / Performance</strong></td>
                                    <td>Helps understand portal usage and improve the website experience where configured.</td>
                                    <td>Optional</td>
                                </tr>
                                <tr>
                                    <td><strong>Payment Provider Tools</strong></td>
                                    <td>Supports checkout security, continuity, and transaction-related provider functions.</td>
                                    <td>Third-Party / Transaction Dependent</td>
                                </tr>
                                <tr>
                                    <td><strong>External Service Cookies</strong></td>
                                    <td>May be set by embedded or linked third-party platforms.</td>
                                    <td>Third-Party</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>

                    <div class="cookie-note-box">
                        This table is descriptive rather than an exhaustive technical register.
                        A more detailed implementation-specific cookie list can be added later
                        if you introduce analytics scripts, ad pixels, cookie-banner tooling, or named third-party widgets.
                    </div>
                </div>


                <!-- 12 -->
                <div class="cookie-section-card" id="cookie-12">
                    <div class="cookie-title-row">
                        <span class="cookie-number">12</span>
                        <h2 class="mb-0">How Users Can Manage Cookies</h2>
                    </div>

                    <p>
                        Users may be able to manage cookies in several ways, depending on the technology implemented:
                    </p>

                    <ul>
                        <li>Using a cookie preference banner or settings tool where provided;</li>
                        <li>Changing browser settings to block, restrict, or delete cookies;</li>
                        <li>Clearing stored site data from the browser;</li>
                        <li>Adjusting settings offered by relevant third-party providers.</li>
                    </ul>

                    <div class="cookie-blue-box">
                        Browser-level cookie settings vary by browser and device.
                        Restricting cookies may affect how parts of the portal function.
                    </div>
                </div>


                <!-- 13 -->
                <div class="cookie-section-card" id="cookie-13">
                    <div class="cookie-title-row">
                        <span class="cookie-number">13</span>
                        <h2 class="mb-0">What Happens if Cookies Are Disabled?</h2>
                    </div>

                    <p>
                        If a user disables essential cookies or blocks session-related technologies,
                        some parts of the portal may not function properly.
                    </p>

                    <p>
                        This may affect:
                    </p>

                    <ul>
                        <li>Login and logout behavior;</li>
                        <li>Rental Owner dashboard access;</li>
                        <li>Secure submission of forms;</li>
                        <li>Use of profile-management features;</li>
                        <li>Payment-flow continuity;</li>
                        <li>Display of certain messages, notices, or session-based information.</li>
                    </ul>
                </div>


                <!-- 14 -->
                <div class="cookie-section-card" id="cookie-14">
                    <div class="cookie-title-row">
                        <span class="cookie-number">14</span>
                        <h2 class="mb-0">Similar Technologies</h2>
                    </div>

                    <p>
                        In addition to traditional cookies, the portal or its service providers may use similar technologies,
                        such as:
                    </p>

                    <ul>
                        <li>Local browser storage;</li>
                        <li>Session storage;</li>
                        <li>Security tokens;</li>
                        <li>Embedded service identifiers;</li>
                        <li>Technical logs and diagnostics connected to web usage.</li>
                    </ul>

                    <p>
                        These tools may support similar purposes to cookies, including security,
                        continuity, functionality, and service improvement.
                    </p>
                </div>


                <!-- 15 -->
                <div class="cookie-section-card" id="cookie-15">
                    <div class="cookie-title-row">
                        <span class="cookie-number">15</span>
                        <h2 class="mb-0">Relationship with the Privacy Policy</h2>
                    </div>

                    <p>
                        This Cookie Policy should be read together with the Rent in Sri Lanka Privacy Policy.
                        The Privacy Policy explains more broadly how Ensolanka may collect, use, store,
                        share, and protect personal information in connection with the rental portal.
                    </p>

                    <div class="cookie-green-box">
                        Where cookies or similar technologies involve personal information,
                        the Privacy Policy provides the broader data-handling context.
                    </div>
                </div>


                <!-- 16 -->
                <div class="cookie-section-card" id="cookie-16">
                    <div class="cookie-title-row">
                        <span class="cookie-number">16</span>
                        <h2 class="mb-0">Changes to This Cookie Policy</h2>
                    </div>

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

                    <ul>
                        <li>Changes in website features;</li>
                        <li>New portal functions or user preference tools;</li>
                        <li>Introduction or removal of analytics tools;</li>
                        <li>New payment providers or embedded services;</li>
                        <li>Changes in privacy practices or applicable compliance requirements.</li>
                    </ul>

                    <p>
                        Updated versions may be published on this page.
                    </p>
                </div>


                <!-- 17 -->
                <div class="cookie-section-card" id="cookie-17">
                    <div class="cookie-title-row">
                        <span class="cookie-number">17</span>
                        <h2 class="mb-0">Contact Us</h2>
                    </div>

                    <p>
                        Questions about this Cookie Policy or the use of website technologies
                        within the Rent in Sri Lanka rental portal may be sent to:
                    </p>

                    <ul>
                        <li><strong>Email:</strong> info@ensolanka.com</li>
                        <li><strong>Support Email:</strong> support@ensolanka.com</li>
                        <li><strong>Asia Regional Office:</strong> Ensolanka Holdings (Pvt) Ltd, Main Road, Wennappuwa, Sri Lanka</li>
                    </ul>

                    <div class="cookie-blue-box">
                        This Cookie Policy should be read together with the Terms &amp; Conditions,
                        Privacy Policy, Refund &amp; Payment Policy, Disclaimer,
                        and any other applicable portal notice.
                    </div>
                </div>

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


<!-- =========================================================
     FINAL CTA
========================================================= -->
<section class="py-5 bg-light">
    <div class="container">
        <div class="cookie-final-cta text-center text-white">

            <h2 class="fw-bold mb-3">
                Continue with a Clear and Trusted Rental Portal Experience
            </h2>

            <p class="lead mb-4">
                Explore rental listings, join as a Property Partner, and use the Rent in Sri Lanka portal
                with a clearer understanding of how essential website technologies support the experience.
            </p>

            <div class="d-flex flex-wrap justify-content-center gap-3">

                {% if request.user.is_authenticated and request.user.rental_owner_profile %}
                    <a href="{% url 'rental_app:rental_owner_dashboard' %}"
                       class="btn btn-warning btn-lg px-4">
                        My Owner Dashboard
                    </a>

                    <a href="{% url 'rental_app:rental_listing_create' %}"
                       class="btn btn-light btn-lg px-4">
                        Add New Property
                    </a>
                {% else %}
                    <a href="{% url 'rental_app:rental_owner_signup' %}"
                       class="btn btn-warning btn-lg px-4">
                        Become a Property Partner
                    </a>

                    <a href="{% url 'rental_app:rental_owner_login' %}"
                       class="btn btn-light btn-lg px-4">
                        Owner Sign In
                    </a>
                {% endif %}

                <a href="{% url 'rental_app:contact_page' %}"
                   class="btn btn-outline-light btn-lg px-4">
                    Contact Us
                </a>

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

{% endblock %}