{% extends 'affiliates_app/base_affiliate.html' %}
{% load static %}

{% block title %}Affiliate Terms & Conditions | Partner with Ensolanka{% endblock %}

{% block extra_css %}
<style>
    .affiliate-terms-hero {
        position: relative;
        padding: 95px 0 80px;
        background:
            linear-gradient(135deg, rgba(4, 47, 46, 0.97), rgba(15, 118, 110, 0.93)),
            url("{% static 'expat_life/images/affiliates_hero.webp' %}") center center / cover no-repeat;
        color: #fff;
        overflow: hidden;
    }

    .affiliate-terms-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at top right, rgba(255, 193, 7, 0.18), transparent 35%),
            radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 30%);
        pointer-events: none;
    }

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

    .legal-hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 193, 7, 0.18);
        border: 1px solid rgba(255, 193, 7, 0.38);
        color: #ffd65c;
        padding: 9px 17px;
        border-radius: 999px;
        font-weight: 800;
        font-size: 0.84rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .terms-meta-card {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 22px;
        padding: 22px;
        backdrop-filter: blur(10px);
        height: 100%;
    }

    .terms-meta-card i {
        color: #ffc107;
        font-size: 1.35rem;
    }

    .terms-meta-card h6 {
        font-weight: 800;
        margin-bottom: 6px;
    }

    .terms-main-section {
        background: #f8fafc;
        padding: 70px 0;
    }

    .terms-summary-card {
        background: #fff;
        border-radius: 28px;
        border: 1px solid #e8eef3;
        padding: 30px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    }

    .terms-summary-icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        background: #ecfdf5;
        color: #047857;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.55rem;
        margin-bottom: 18px;
    }

    .terms-nav-card {
        position: sticky;
        top: 120px;
        background: #fff;
        border-radius: 28px;
        padding: 26px;
        border: 1px solid #e8eef3;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    }

    .terms-nav-title {
        font-weight: 900;
        color: #0f172a;
        margin-bottom: 18px;
    }

    .terms-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .terms-nav-list li {
        margin-bottom: 10px;
    }

    .terms-nav-list a {
        display: block;
        text-decoration: none;
        color: #475569;
        font-weight: 600;
        font-size: 0.94rem;
        padding: 9px 12px;
        border-radius: 12px;
        transition: 0.2s ease;
    }

    .terms-nav-list a:hover {
        background: #ecfdf5;
        color: #047857;
    }

    .terms-content-card {
        background: #fff;
        border-radius: 30px;
        border: 1px solid #e8eef3;
        padding: 42px;
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    }

    .legal-section {
        scroll-margin-top: 125px;
        padding-bottom: 36px;
        margin-bottom: 36px;
        border-bottom: 1px solid #e7edf3;
    }

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

    .legal-section h2 {
        font-size: 1.55rem;
        font-weight: 900;
        color: #0f172a;
        margin-bottom: 18px;
    }

    .legal-section h3 {
        font-size: 1.15rem;
        font-weight: 800;
        color: #0f766e;
        margin-top: 24px;
        margin-bottom: 12px;
    }

    .legal-section p,
    .legal-section li {
        color: #475569;
        line-height: 1.82;
    }

    .legal-section strong {
        color: #0f172a;
    }

    .legal-list {
        padding-left: 1.2rem;
    }

    .legal-list li {
        margin-bottom: 9px;
    }

    .important-note {
        background: #fff7ed;
        border: 1px solid #fed7aa;
        border-radius: 20px;
        padding: 22px;
        color: #9a3412;
    }

    .important-note strong {
        color: #9a3412;
    }

    .success-note {
        background: #ecfdf5;
        border: 1px solid #bbf7d0;
        border-radius: 20px;
        padding: 22px;
        color: #065f46;
    }

    .success-note strong {
        color: #065f46;
    }

    .commission-table-wrap {
        border-radius: 22px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        margin-top: 20px;
    }

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

    .commission-table-wrap thead th {
        background: #064e3b;
        color: #fff;
        font-size: 0.84rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 15px;
        white-space: nowrap;
    }

    .commission-table-wrap tbody td {
        padding: 15px;
        vertical-align: middle;
        color: #334155;
    }

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

    .commission-badge {
        display: inline-block;
        background: #dcfce7;
        color: #166534;
        border-radius: 999px;
        padding: 6px 12px;
        font-weight: 800;
        font-size: 0.9rem;
    }

    .acceptance-box {
        background: linear-gradient(135deg, #052e25 0%, #0f766e 100%);
        border-radius: 30px;
        padding: 42px;
        color: #fff;
        margin-top: 42px;
    }

    .acceptance-box p {
        color: rgba(255, 255, 255, 0.9);
    }

    .policy-mini-title {
        display: inline-block;
        color: #0f766e;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 0.82rem;
        margin-bottom: 12px;
    }

    .mobile-legal-toc {
        display: none;
        background: #fff;
        border-radius: 22px;
        border: 1px solid #e8eef3;
        padding: 22px;
        box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
    }

    .mobile-legal-toc .form-select {
        border-radius: 14px;
        padding: 12px 14px;
    }

    @media (max-width: 991px) {
        .terms-nav-card {
            display: none;
        }

        .mobile-legal-toc {
            display: block;
            margin-bottom: 28px;
        }

        .terms-content-card {
            padding: 28px 22px;
        }

        .affiliate-terms-hero {
            padding: 78px 0 65px;
        }

        .acceptance-box {
            padding: 30px 24px;
        }
    }
</style>
{% endblock %}


{% block content %}

<!-- HERO -->
<section class="affiliate-terms-hero">
    <div class="container">
        <div class="row align-items-center g-5">
            <div class="col-lg-8">
                <span class="legal-hero-badge mb-3">
                    <i class="bi bi-shield-check"></i>
                    Affiliate Program Legal Terms
                </span>

                <h1 class="display-5 fw-bold mb-3">
                    Terms & Conditions for Ensolanka Global Ambassadors
                </h1>

                <p class="lead mb-4">
                    These Terms & Conditions explain how the Partner with Ensolanka Affiliate Program works,
                    how referral tracking and commissions are handled, and the responsibilities of every
                    Ensolanka Global Ambassador.
                </p>

                <div class="d-flex flex-wrap gap-3">
                    <a href="{% url 'affiliates_app:affiliate_register' %}" class="btn btn-warning btn-lg px-4">
                        Become an Affiliate
                    </a>

                    <a href="{% url 'affiliates_app:contact_page_aff' %}" class="btn btn-outline-light btn-lg px-4">
                        Contact Ensolanka
                    </a>
                </div>
            </div>

            <div class="col-lg-4">
                <div class="row g-3">
                    <div class="col-12">
                        <div class="terms-meta-card">
                            <div class="d-flex gap-3 align-items-start">
                                <i class="bi bi-calendar-check-fill"></i>
                                <div>
                                    <h6>Effective Date</h6>
                                    <p class="mb-0 small">12 May 2026</p>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-12">
                        <div class="terms-meta-card">
                            <div class="d-flex gap-3 align-items-start">
                                <i class="bi bi-globe2"></i>
                                <div>
                                    <h6>Program Scope</h6>
                                    <p class="mb-0 small">Worldwide affiliate participation</p>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-12">
                        <div class="terms-meta-card">
                            <div class="d-flex gap-3 align-items-start">
                                <i class="bi bi-cash-coin"></i>
                                <div>
                                    <h6>Core Earning Model</h6>
                                    <p class="mb-0 small">Referral commissions from eligible guest payments</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>


<!-- QUICK SUMMARY -->
<section class="py-5 bg-white">
    <div class="container">
        <div class="text-center mb-5">
            <span class="policy-mini-title">Program Summary</span>
            <h2 class="fw-bold">A Clear Framework for Promotion, Referrals, and Earnings</h2>
            <p class="text-muted mb-0">
                These terms are designed to protect affiliates, guests, and Ensolanka while creating a transparent referral ecosystem.
            </p>
        </div>

        <div class="row g-4">
            <div class="col-md-6 col-lg-3">
                <div class="terms-summary-card h-100">
                    <div class="terms-summary-icon">
                        <i class="bi bi-person-badge-fill"></i>
                    </div>
                    <h5 class="fw-bold">Global Ambassador Role</h5>
                    <p class="text-muted mb-0">
                        Affiliates promote Sri Lanka responsibly under the title “Ensolanka Global Ambassador.”
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="terms-summary-card h-100">
                    <div class="terms-summary-icon">
                        <i class="bi bi-qr-code-scan"></i>
                    </div>
                    <h5 class="fw-bold">Tracking Tools</h5>
                    <p class="text-muted mb-0">
                        Referral links, QR codes, and business cards connect guests to the affiliate system.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="terms-summary-card h-100">
                    <div class="terms-summary-icon">
                        <i class="bi bi-wallet2"></i>
                    </div>
                    <h5 class="fw-bold">Commission Eligibility</h5>
                    <p class="text-muted mb-0">
                        Commissions arise only from qualifying guest payments properly recorded by Ensolanka.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="terms-summary-card h-100">
                    <div class="terms-summary-icon">
                        <i class="bi bi-shield-lock-fill"></i>
                    </div>
                    <h5 class="fw-bold">Ethical Standards</h5>
                    <p class="text-muted mb-0">
                        Promotion must remain honest, privacy-conscious, non-spammy, and professionally responsible.
                    </p>
                </div>
            </div>
        </div>
    </div>
</section>


<!-- MAIN TERMS -->
<section class="terms-main-section">
    <div class="container">

        <!-- MOBILE TABLE OF CONTENTS -->
        <div class="mobile-legal-toc">
            <label for="mobileTermsNav" class="form-label fw-bold mb-2">Jump to a Section</label>
            <select id="mobileTermsNav" class="form-select"
                    onchange="if(this.value){window.location.href=this.value;}">
                <option value="">Select a topic</option>
                <option value="#section-1">1. Purpose of the Program</option>
                <option value="#section-2">2. Global Ambassador Identity</option>
                <option value="#section-3">3. Eligibility & Registration</option>
                <option value="#section-4">4. Dashboard & Program Access</option>
                <option value="#section-5">5. Tracking Links & QR Codes</option>
                <option value="#section-6">6. 30-Day Referral Tracking</option>
                <option value="#section-7">7. Referral Status Categories</option>
                <option value="#section-8">8. Guest Contact Details</option>
                <option value="#section-9">9. Commission Structure</option>
                <option value="#section-10">10. Commission Conditions</option>
                <option value="#section-11">11. Payout Requests</option>
                <option value="#section-12">12. Marketing Resources</option>
                <option value="#section-13">13. Business Cards & Customized Materials</option>
                <option value="#section-14">14. Ethical Promotion</option>
                <option value="#section-15">15. Affiliate Disclosure</option>
                <option value="#section-16">16. Intellectual Property</option>
                <option value="#section-17">17. Training, Events & Awards</option>
                <option value="#section-18">18. No Income Guarantee</option>
                <option value="#section-19">19. Suspension & Termination</option>
                <option value="#section-20">20. Independent Relationship</option>
                <option value="#section-21">21. Liability & Program Changes</option>
                <option value="#section-22">22. Contact</option>
            </select>
        </div>

        <div class="row g-4">

            <!-- SIDE NAV -->
            <div class="col-lg-3">
                <aside class="terms-nav-card">
                    <h5 class="terms-nav-title">
                        Terms Overview
                    </h5>

                    <ul class="terms-nav-list">
                        <li><a href="#section-1">1. Purpose</a></li>
                        <li><a href="#section-2">2. Global Ambassador Identity</a></li>
                        <li><a href="#section-3">3. Registration</a></li>
                        <li><a href="#section-4">4. Dashboard Access</a></li>
                        <li><a href="#section-5">5. Referral Tools</a></li>
                        <li><a href="#section-6">6. Tracking Window</a></li>
                        <li><a href="#section-7">7. Referral Status</a></li>
                        <li><a href="#section-8">8. Contact Details</a></li>
                        <li><a href="#section-9">9. Commissions</a></li>
                        <li><a href="#section-10">10. Commission Rules</a></li>
                        <li><a href="#section-11">11. Payouts</a></li>
                        <li><a href="#section-12">12. Resources</a></li>
                        <li><a href="#section-13">13. Business Cards</a></li>
                        <li><a href="#section-14">14. Ethical Promotion</a></li>
                        <li><a href="#section-15">15. Affiliate Disclosure</a></li>
                        <li><a href="#section-16">16. Brand Use</a></li>
                        <li><a href="#section-17">17. Training & Events</a></li>
                        <li><a href="#section-18">18. Income Disclaimer</a></li>
                        <li><a href="#section-19">19. Suspension</a></li>
                        <li><a href="#section-20">20. Independent Role</a></li>
                        <li><a href="#section-21">21. Liability & Changes</a></li>
                        <li><a href="#section-22">22. Contact</a></li>
                    </ul>
                </aside>
            </div>


            <!-- CONTENT -->
            <div class="col-lg-9">
                <article class="terms-content-card">

                    <!-- INTRO -->
                    <div class="legal-section">
                        <h2>Affiliate Terms & Conditions</h2>

                        <p>
                            Welcome to the <strong>Ensolanka Global Ambassador Affiliate Program</strong>,
                            operated by <strong>Ensolanka LLC</strong> (“Ensolanka,” “we,” “our,” or “us”).
                        </p>

                        <p>
                            These Terms & Conditions govern participation in the affiliate program connected
                            to the <strong>Live in Sri Lanka</strong> platform and the
                            <strong>Partner with Ensolanka</strong> affiliate portal.
                        </p>

                        <p>
                            By signing up, accessing the affiliate dashboard, using referral tools,
                            generating business cards, downloading resources, or promoting Ensolanka’s approved
                            landing pages, you agree to comply with these Terms & Conditions.
                        </p>
                    </div>


                    <!-- 1 -->
                    <section class="legal-section" id="section-1">
                        <h2>1. Purpose of the Program</h2>

                        <p>
                            The Ensolanka Global Ambassador Affiliate Program is designed to create a worldwide
                            network of individuals who proudly promote Sri Lanka as an attractive destination for
                            long-stay living, tropical lifestyle relocation, retirement, digital nomad living,
                            social connection, and supported settlement opportunities.
                        </p>

                        <p>
                            Affiliates may include:
                        </p>

                        <ul class="legal-list">
                            <li>Sri Lankans living, working, or studying abroad</li>
                            <li>Travellers who genuinely love Sri Lanka</li>
                            <li>Digital creators, influencers, and online community builders</li>
                            <li>Digital nomads and remote professionals</li>
                            <li>Students, professionals, and network-based promoters</li>
                            <li>Anyone who wishes to promote living in Sri Lanka responsibly while building a commission-based income stream</li>
                        </ul>

                        <p>
                            The program allows approved affiliates to access educational materials, marketing tools,
                            training resources, affiliate tracking links, QR codes, personalized business cards,
                            multilingual promotional content, and commission opportunities linked to qualifying guest referrals.
                        </p>
                    </section>


                    <!-- 2 -->
                    <section class="legal-section" id="section-2">
                        <h2>2. Program Identity: Ensolanka Global Ambassador</h2>

                        <p>
                            Approved affiliates may be referred to within the program as:
                        </p>

                        <div class="success-note mb-4">
                            <strong>Ensolanka Global Ambassador</strong>
                        </div>

                        <p>
                            This title is a program designation that recognizes the affiliate’s role in promoting
                            Ensolanka’s Sri Lanka lifestyle opportunity. It does not create an employment,
                            legal agency, franchise, partnership, joint venture, or official representative relationship.
                        </p>

                        <p>Affiliates are not authorized to:</p>

                        <ul class="legal-list">
                            <li>Sign contracts on behalf of Ensolanka</li>
                            <li>Collect guest payments directly unless separately authorized in writing</li>
                            <li>Guarantee visa approvals, property availability, relationship outcomes, or income levels</li>
                            <li>Make binding commitments on behalf of Ensolanka</li>
                            <li>Represent themselves as employees, officers, legal agents, or authorized decision-makers of Ensolanka</li>
                        </ul>
                    </section>


                    <!-- 3 -->
                    <section class="legal-section" id="section-3">
                        <h2>3. Eligibility and Registration</h2>

                        <p>
                            To participate, an applicant must complete the affiliate signup process with accurate,
                            truthful, and up-to-date information.
                        </p>

                        <p>Ensolanka may:</p>

                        <ul class="legal-list">
                            <li>Approve or reject any affiliate registration</li>
                            <li>Request clarification or additional information where needed</li>
                            <li>Restrict or suspend participation where the application or activity appears misleading, unlawful, or inconsistent with program values</li>
                            <li>Update eligibility requirements when necessary</li>
                        </ul>

                        <p>
                            Registration alone does not guarantee commissions. Commission eligibility depends on valid
                            referral tracking, guest action, qualifying payments, compliance with these Terms, and system confirmation.
                        </p>
                    </section>


                    <!-- 4 -->
                    <section class="legal-section" id="section-4">
                        <h2>4. Affiliate Dashboard and Program Access</h2>

                        <p>
                            Approved affiliates may receive access to a dashboard that may include:
                        </p>

                        <ul class="legal-list">
                            <li>Unique affiliate referral links</li>
                            <li>Referral code details</li>
                            <li>QR code generation tools</li>
                            <li>Business card generation tools</li>
                            <li>Marketing resources in multiple international languages</li>
                            <li>Training resources in English, Sinhala, and Tamil</li>
                            <li>Pending guest referrals</li>
                            <li>Confirmed client details</li>
                            <li>Completed client details</li>
                            <li>Possible future earnings</li>
                            <li>Pending, earned, and available commission balances</li>
                            <li>Payout request tools</li>
                            <li>Generated card history or related resource history where available</li>
                        </ul>

                        <p>
                            Ensolanka may update dashboard features, labels, calculations, resources, or access levels
                            as the program develops.
                        </p>
                    </section>


                    <!-- 5 -->
                    <section class="legal-section" id="section-5">
                        <h2>5. Affiliate Links, Referral Codes, and QR Codes</h2>

                        <p>
                            Affiliates may use approved promotional links and QR codes to refer prospective guests
                            to selected Ensolanka or Live in Sri Lanka pages.
                        </p>

                        <p>Promotional link destinations may include:</p>

                        <ul class="legal-list">
                            <li>Live in Sri Lanka home page</li>
                            <li>Guest signup page</li>
                            <li>Package information pages</li>
                            <li>Digital Nomad Visa information</li>
                            <li>About Sri Lanka pages</li>
                            <li>Rental-related landing pages</li>
                            <li>Dating-related landing pages</li>
                            <li>Local assistant or service partner pages</li>
                            <li>Other pages approved by Ensolanka</li>
                        </ul>

                        <p>Affiliates must not:</p>

                        <ul class="legal-list">
                            <li>Alter tracking links to mislead users</li>
                            <li>Use another affiliate’s code or QR assets</li>
                            <li>Manipulate browser tracking or attribution logic</li>
                            <li>Create deceptive redirects</li>
                            <li>Use bots, fraudulent clicks, or artificial referral traffic</li>
                            <li>Attempt to interfere with another affiliate’s referrals</li>
                        </ul>
                    </section>


                    <!-- 6 -->
                    <section class="legal-section" id="section-6">
                        <h2>6. Thirty-Day Referral Tracking Window</h2>

                        <p>
                            When a prospective guest visits the Live in Sri Lanka website through an affiliate’s
                            approved tracking link or QR code, the system may store the affiliate referral code
                            within the visitor’s browser for up to:
                        </p>

                        <div class="success-note mb-4">
                            <strong>30 days</strong>
                        </div>

                        <p>
                            If the prospective guest signs up during that tracking period and the referral is properly
                            recorded, the guest may be attributed to the relevant affiliate.
                        </p>

                        <p>
                            Tracking and attribution may be affected by factors such as:
                        </p>

                        <ul class="legal-list">
                            <li>Cleared browser cookies or stored site data</li>
                            <li>Use of private browsing or incognito mode</li>
                            <li>Ad blockers, privacy tools, or browser restrictions</li>
                            <li>Switching devices or browsers</li>
                            <li>Technical interruptions outside reasonable platform control</li>
                            <li>Direct signup without retaining the referral session</li>
                        </ul>

                        <p>
                            Ensolanka’s internal system records shall be the primary reference for determining whether
                            a referral has been validly attributed.
                        </p>
                    </section>


                    <!-- 7 -->
                    <section class="legal-section" id="section-7">
                        <h2>7. Referral Status Categories</h2>

                        <h3>7.1 Pending Guests</h3>
                        <p>
                            A pending guest is a person who signed up through the affiliate’s valid tracked referral
                            pathway but has not yet completed the applicable guest confirmation payment.
                        </p>

                        <h3>7.2 Confirmed Clients</h3>
                        <p>
                            A confirmed client is a referred guest who has completed the required confirmation stage,
                            including payment of the applicable confirmation fee, currently described as
                            <strong>USD 100</strong>, and whose confirmation status has been recognized by Ensolanka.
                        </p>

                        <h3>7.3 Completed Clients</h3>
                        <p>
                            A completed client is a referred guest who proceeds beyond confirmation and completes
                            the applicable final stage recognized by Ensolanka, including payment of the
                            one-time service fee connected to the guest’s selected package.
                        </p>
                    </section>


                    <!-- 8 -->
                    <section class="legal-section" id="section-8">
                        <h2>8. Guest Contact Details and Follow-Up Responsibility</h2>

                        <p>
                            The affiliate dashboard may provide contact details of referred guests so that the
                            affiliate can support and responsibly follow up with them.
                        </p>

                        <p>Affiliates may use such contact information only to:</p>

                        <ul class="legal-list">
                            <li>Guide the referred guest regarding Ensolanka’s process</li>
                            <li>Explain available resources and approved information</li>
                            <li>Encourage the guest to review materials and complete next steps voluntarily</li>
                            <li>Respond to questions respectfully and honestly</li>
                        </ul>

                        <p>Affiliates must not:</p>

                        <ul class="legal-list">
                            <li>Sell, rent, share, or trade guest contact details</li>
                            <li>Use guest information for unrelated marketing or personal business promotions</li>
                            <li>Harass, pressure, or repeatedly contact guests who request no further communication</li>
                            <li>Use data in a way that violates applicable privacy or communication laws</li>
                        </ul>
                    </section>


                    <!-- 9 -->
                    <section class="legal-section" id="section-9">
                        <h2>9. Affiliate Commission Structure</h2>

                        <p>
                            Affiliates may earn commission only when validly referred guests complete eligible
                            payment events and those transactions are properly recognized by Ensolanka.
                        </p>

                        <h3>9.1 Commission on Guest Confirmation Fee</h3>

                        <div class="commission-table-wrap">
                            <div class="table-responsive">
                                <table class="table align-middle">
                                    <thead>
                                        <tr>
                                            <th>Payment Type</th>
                                            <th>Guest Payment</th>
                                            <th>Affiliate Percentage</th>
                                            <th>Affiliate Commission</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td><strong>Guest Confirmation Fee</strong></td>
                                            <td>USD 100.00</td>
                                            <td>20%</td>
                                            <td><span class="commission-badge">USD 20.00</span></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>


                        <h3>9.2 Commission on One-Time Service Fee</h3>

                        <div class="commission-table-wrap">
                            <div class="table-responsive">
                                <table class="table align-middle">
                                    <thead>
                                        <tr>
                                            <th>Package</th>
                                            <th>Monthly Package Value</th>
                                            <th>Service Fee Basis</th>
                                            <th>One-Time Service Fee</th>
                                            <th>Affiliate Percentage</th>
                                            <th>Affiliate Commission</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td><strong>Startup</strong></td>
                                            <td>USD 500</td>
                                            <td>90% of monthly package</td>
                                            <td>USD 450.00</td>
                                            <td>20%</td>
                                            <td><span class="commission-badge">USD 90.00</span></td>
                                        </tr>

                                        <tr>
                                            <td><strong>Comfort</strong></td>
                                            <td>USD 1,000</td>
                                            <td>75% of monthly package</td>
                                            <td>USD 750.00</td>
                                            <td>20%</td>
                                            <td><span class="commission-badge">USD 150.00</span></td>
                                        </tr>

                                        <tr>
                                            <td><strong>Premium</strong></td>
                                            <td>USD 2,000</td>
                                            <td>50% of monthly package</td>
                                            <td>USD 1,000.00</td>
                                            <td>20%</td>
                                            <td><span class="commission-badge">USD 200.00</span></td>
                                        </tr>

                                        <tr>
                                            <td><strong>Luxury</strong></td>
                                            <td>USD 3,000</td>
                                            <td>40% of monthly package</td>
                                            <td>USD 1,200.00</td>
                                            <td>20%</td>
                                            <td><span class="commission-badge">USD 240.00</span></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>


                        <h3>9.3 Total Possible Earning Per Fully Qualifying Guest</h3>

                        <div class="commission-table-wrap">
                            <div class="table-responsive">
                                <table class="table align-middle">
                                    <thead>
                                        <tr>
                                            <th>Package</th>
                                            <th>Confirmation Commission</th>
                                            <th>Service Fee Commission</th>
                                            <th>Total Possible Affiliate Earning</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td><strong>Startup</strong></td>
                                            <td>USD 20.00</td>
                                            <td>USD 90.00</td>
                                            <td><span class="commission-badge">USD 110.00</span></td>
                                        </tr>

                                        <tr>
                                            <td><strong>Comfort</strong></td>
                                            <td>USD 20.00</td>
                                            <td>USD 150.00</td>
                                            <td><span class="commission-badge">USD 170.00</span></td>
                                        </tr>

                                        <tr>
                                            <td><strong>Premium</strong></td>
                                            <td>USD 20.00</td>
                                            <td>USD 200.00</td>
                                            <td><span class="commission-badge">USD 220.00</span></td>
                                        </tr>

                                        <tr>
                                            <td><strong>Luxury</strong></td>
                                            <td>USD 20.00</td>
                                            <td>USD 240.00</td>
                                            <td><span class="commission-badge">USD 260.00</span></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>

                        <div class="important-note mt-4">
                            <strong>Important:</strong>
                            These commission figures are based on the current affiliate structure.
                            Ensolanka may revise future rates, fee models, or package calculations prospectively.
                            Dashboard records and officially confirmed calculations shall control.
                        </div>
                    </section>


                    <!-- 10 -->
                    <section class="legal-section" id="section-10">
                        <h2>10. Commission Conditions and Limitations</h2>

                        <p>Affiliate commissions become valid only when:</p>

                        <ul class="legal-list">
                            <li>The guest referral is properly tracked and attributed</li>
                            <li>The guest completes the relevant qualifying payment</li>
                            <li>The payment is successfully received and accepted by Ensolanka</li>
                            <li>The transaction is not refunded, reversed, disputed, or charged back</li>
                            <li>The affiliate remains compliant with these Terms</li>
                        </ul>

                        <p>Ensolanka reserves the right to:</p>

                        <ul class="legal-list">
                            <li>Review any referral or commission record</li>
                            <li>Correct dashboard, display, or calculation errors</li>
                            <li>Cancel or reverse commission linked to refunds, reversals, disputes, or invalid transactions</li>
                            <li>Withhold payment where fraud, manipulation, policy abuse, or suspicious activity is reasonably suspected</li>
                        </ul>
                    </section>


                    <!-- 11 -->
                    <section class="legal-section" id="section-11">
                        <h2>11. Payout Requests</h2>

                        <p>
                            Affiliates may request payouts from their available balance through the dashboard,
                            subject to internal review and verification.
                        </p>

                        <p>Payout requests may depend on:</p>

                        <ul class="legal-list">
                            <li>Availability of earned and approved commission balance</li>
                            <li>Completion of payout details requested by Ensolanka</li>
                            <li>Verification that the underlying guest payments are settled</li>
                            <li>Confirmation that no dispute, refund, or chargeback is pending</li>
                            <li>Affiliate compliance with program rules</li>
                        </ul>

                        <p>
                            Payout methods may include direct bank transfer, Stripe-supported systems, or other
                            payment methods selected by Ensolanka from time to time.
                        </p>

                        <p>
                            Affiliates are responsible for any tax reporting or financial obligations that apply
                            in their own country or jurisdiction.
                        </p>
                    </section>


                    <!-- 12 -->
                    <section class="legal-section" id="section-12">
                        <h2>12. Marketing Resources and Training Access</h2>

                        <p>
                            Approved affiliates may receive access to a wide range of promotional and educational resources,
                            including:
                        </p>

                        <ul class="legal-list">
                            <li>Training materials in English, Sinhala, and Tamil</li>
                            <li>Marketing PDFs and overview documents</li>
                            <li>Promotional presentations</li>
                            <li>Video resources and lifestyle explainers</li>
                            <li>Language-specific brochures in major global languages</li>
                            <li>Guidance on referral strategy and income improvement</li>
                            <li>Online affiliate training sessions</li>
                        </ul>

                        <p>
                            Marketing materials may be available in up to 11 or more major international languages,
                            depending on the resource library maintained by Ensolanka.
                        </p>

                        <p>
                            Ensolanka may update, improve, remove, localize, or replace resources whenever necessary.
                        </p>
                    </section>


                    <!-- 13 -->
                    <section class="legal-section" id="section-13">
                        <h2>13. Business Card Generator, QR Downloads, and Customized Documents</h2>

                        <h3>13.1 Personalized Business Cards</h3>

                        <p>
                            Affiliates may generate personalized print-quality business cards for selected promotional
                            tracking links available through the dashboard.
                        </p>

                        <p>Cards may include:</p>

                        <ul class="legal-list">
                            <li>Affiliate name</li>
                            <li>Phone or WhatsApp number</li>
                            <li>Email address</li>
                            <li>Title: <strong>Ensolanka Global Ambassador</strong></li>
                            <li>QR code for the selected landing page</li>
                            <li>Affiliate tracking logic embedded in the QR destination</li>
                        </ul>

                        <h3>13.2 Direct QR Code Downloads</h3>

                        <p>
                            Affiliates may also directly download QR codes for available promotional landing pages and
                            use them in approved print or digital marketing activities.
                        </p>

                        <h3>13.3 Customized Marketing Requests</h3>

                        <p>
                            Affiliates may request customized PDFs, presentations, or overview documents containing
                            their own referral URL, QR code, and contact details.
                        </p>

                        <p>
                            Customized material requests are subject to Ensolanka’s review, operational capacity,
                            brand standards, and resource availability.
                        </p>
                    </section>


                    <!-- 14 -->
                    <section class="legal-section" id="section-14">
                        <h2>14. Ethical Promotion and Prohibited Conduct</h2>

                        <p>
                            Every Ensolanka Global Ambassador is expected to promote Sri Lanka and Ensolanka with
                            honesty, dignity, responsibility, and sincerity.
                        </p>

                        <p>Affiliates must:</p>

                        <ul class="legal-list">
                            <li>Use accurate and responsible language</li>
                            <li>Represent the program honestly</li>
                            <li>Avoid unrealistic promises or pressure tactics</li>
                            <li>Respect prospective guests’ privacy and decisions</li>
                            <li>Follow approved messaging and truthful program information</li>
                        </ul>

                        <p>Prohibited conduct includes:</p>

                        <ul class="legal-list">
                            <li>Spam messages, bulk unsolicited outreach, or irrelevant mass posting</li>
                            <li>False promises about guaranteed income, visa approval, or relocation outcomes</li>
                            <li>Misleading statements about Ensolanka’s services</li>
                            <li>Unauthorized discounts or financial promises</li>
                            <li>Fake referrals, manipulated signups, or artificial tracking activity</li>
                            <li>Misuse of guest contact details</li>
                            <li>Impersonating Ensolanka staff or legal representatives</li>
                        </ul>
                    </section>


                    <!-- 15 -->
                    <section class="legal-section" id="section-15">
                        <h2>15. Affiliate Relationship Disclosure</h2>

                        <p>
                            Affiliates should clearly disclose their commission-based relationship with Ensolanka
                            wherever such disclosure is required by applicable law, platform rules, advertising standards,
                            or the nature of the promotional content.
                        </p>

                        <p>Examples of appropriate disclosures may include:</p>

                        <ul class="legal-list">
                            <li>“I may earn a commission if you proceed through my referral link.”</li>
                            <li>“This is an affiliate referral connected to the Ensolanka Global Ambassador Program.”</li>
                            <li>“I may receive a referral commission from qualifying guest payments.”</li>
                        </ul>

                        <p>
                            Disclosures should be clear, visible, understandable, and placed close to the relevant
                            recommendation, link, post, video, or promotional statement.
                        </p>
                    </section>


                    <!-- 16 -->
                    <section class="legal-section" id="section-16">
                        <h2>16. Intellectual Property and Brand Use</h2>

                        <p>
                            All Ensolanka logos, brand assets, brochures, presentations, resource documents,
                            training materials, videos, QR card designs, platform interfaces, and written content remain
                            the intellectual property of Ensolanka LLC or its licensors.
                        </p>

                        <p>
                            Affiliates receive a limited, revocable, non-exclusive right to use approved promotional
                            materials only for the purpose of participating in the affiliate program.
                        </p>

                        <p>Affiliates must not:</p>

                        <ul class="legal-list">
                            <li>Modify brand assets in misleading ways</li>
                            <li>Sell or redistribute Ensolanka resources as independent products</li>
                            <li>Create unauthorized websites, domains, pages, or social accounts pretending to be Ensolanka</li>
                            <li>Use the Ensolanka brand after account termination except where written permission exists</li>
                        </ul>
                    </section>


                    <!-- 17 -->
                    <section class="legal-section" id="section-17">
                        <h2>17. Training Sessions, Networking Events, and Recognition Programs</h2>

                        <p>
                            Ensolanka may organize activities for affiliates, including:
                        </p>

                        <ul class="legal-list">
                            <li>Online training sessions focused on ethical promotion and income improvement</li>
                            <li>Affiliate growth workshops</li>
                            <li>Global networking opportunities</li>
                            <li>Selected country-based affiliate events</li>
                            <li>Annual or periodic felicitation and award ceremonies</li>
                        </ul>

                        <p>
                            Participation, invitations, awards, locations, dates, and eligibility criteria may differ
                            by event and may be adjusted by Ensolanka.
                        </p>
                    </section>


                    <!-- 18 -->
                    <section class="legal-section" id="section-18">
                        <h2>18. No Guaranteed Income</h2>

                        <p>
                            The affiliate program provides a genuine commission opportunity, but Ensolanka does not
                            guarantee any specific earning level, monthly income, commission volume, or number of referrals.
                        </p>

                        <p>Affiliate earnings depend on factors such as:</p>

                        <ul class="legal-list">
                            <li>Referral quality</li>
                            <li>Prospective guest interest</li>
                            <li>Successful tracking attribution</li>
                            <li>Guest signup completion</li>
                            <li>Guest confirmation payment</li>
                            <li>One-time service fee payment</li>
                            <li>Package selection</li>
                            <li>Refunds, reversals, or cancellations</li>
                            <li>Affiliate communication skill and promotional consistency</li>
                        </ul>
                    </section>


                    <!-- 19 -->
                    <section class="legal-section" id="section-19">
                        <h2>19. Suspension or Termination</h2>

                        <p>
                            Ensolanka may suspend, restrict, or terminate an affiliate account where necessary,
                            including where:
                        </p>

                        <ul class="legal-list">
                            <li>These Terms are breached</li>
                            <li>False information is provided</li>
                            <li>Spam or unethical promotion occurs</li>
                            <li>Guest privacy is violated</li>
                            <li>Referral or commission manipulation is suspected</li>
                            <li>The Ensolanka brand is harmed or misrepresented</li>
                        </ul>

                        <p>
                            Upon suspension or termination, Ensolanka may restrict dashboard access, disable tracking links,
                            review pending commissions, and require the affiliate to stop using the title
                            “Ensolanka Global Ambassador” in active promotional capacity.
                        </p>
                    </section>


                    <!-- 20 -->
                    <section class="legal-section" id="section-20">
                        <h2>20. Independent Relationship</h2>

                        <p>
                            Affiliates participate independently. Nothing in this program creates:
                        </p>

                        <ul class="legal-list">
                            <li>Employment</li>
                            <li>Agency</li>
                            <li>Legal partnership</li>
                            <li>Joint venture</li>
                            <li>Franchise relationship</li>
                            <li>Formal representative authority</li>
                        </ul>

                        <p>
                            Affiliates are responsible for their own promotional activities, taxes, communication expenses,
                            printing costs, operational costs, and any local compliance obligations that apply to them.
                        </p>
                    </section>


                    <!-- 21 -->
                    <section class="legal-section" id="section-21">
                        <h2>21. Limitation of Liability and Program Modifications</h2>

                        <p>
                            To the fullest extent permitted by applicable law, Ensolanka shall not be liable for
                            indirect, incidental, consequential, special, or loss-of-profit damages arising from:
                        </p>

                        <ul class="legal-list">
                            <li>Tracking interruptions beyond reasonable control</li>
                            <li>Guest cancellation or non-payment</li>
                            <li>Browser or device-related tracking limitations</li>
                            <li>Changes in program rules or commission structures</li>
                            <li>Technical outages, dashboard errors, or temporary interruptions</li>
                            <li>Affiliate reliance on estimated future earnings</li>
                        </ul>

                        <p>
                            Ensolanka may update these Terms, commission rates, dashboard features, program resources,
                            payout processes, or operational rules from time to time. Updated versions may be published
                            on the website and take effect from the stated revision date.
                        </p>
                    </section>


                    <!-- 22 -->
                    <section class="legal-section" id="section-22">
                        <h2>22. Contact and Program Questions</h2>

                        <p>
                            For questions about these Terms & Conditions, affiliate commissions, payout requests,
                            customized marketing resources, or dashboard support, affiliates may contact Ensolanka
                            through the official contact channels provided on this website.
                        </p>

                        <a href="{% url 'affiliates_app:contact_page_aff' %}" class="btn btn-dark px-4">
                            Contact Ensolanka
                        </a>
                    </section>


                    <!-- ACCEPTANCE BOX -->
                    <div class="acceptance-box">
                        <div class="row align-items-center g-4">
                            <div class="col-lg-8">
                                <h3 class="fw-bold mb-3">
                                    By Participating, You Accept These Affiliate Terms
                                </h3>

                                <p class="mb-0">
                                    By registering, using the affiliate dashboard, generating tracking cards,
                                    downloading resources, or promoting Ensolanka referral links, you confirm that
                                    you have read, understood, and agreed to these Terms & Conditions.
                                </p>
                            </div>

                            <div class="col-lg-4">
                                <div class="d-grid gap-2">
                                    <a href="{% url 'affiliates_app:affiliate_register' %}" class="btn btn-warning btn-lg">
                                        Become an Affiliate
                                    </a>

                                    <a href="{% url 'affiliates_app:home_affiliates' %}" class="btn btn-outline-light btn-lg">
                                        Back to Affiliate Home
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>

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

{% endblock %}