<?php
// /htdocs/pages/terms.php — REVENDA TERMS OF SERVICE v2.1
// Covers: OTA (guest), PMS (property/management SaaS), payments (all modes),
// crypto, payouts, subscriptions, cancellations, property claims & OSM,
// platform features, AI, smart-tech, liability, disputes.
// Brand: revenda.com

if (!defined('APP_START')) { define('APP_START', 1); }

// ---------- helpers (namespaced to avoid clashes) ----------
if (!function_exists('tsSafe')) {
    function tsSafe($v) { return htmlspecialchars((string)$v, ENT_QUOTES, 'UTF-8'); }
}
if (!function_exists('tsEffective')) {
    function tsEffective(): string { return '2026-01-01'; }
}
if (!function_exists('tsLastUpdated')) {
    function tsLastUpdated(): string { return '2026-01-15'; }
}
if (!function_exists('tsCompany')) {
    function tsCompany(): array {
        return [
            'legal_name'     => 'Revenda Hospitality',
            'brand'          => 'Revenda',
            'site'           => defined('SITE_URL') ? SITE_URL : 'https://revenda.com',
            'email_legal'    => 'legal@revenda.com',
            'email_support'  => 'support@revenda.com',
            'email_privacy'  => 'privacy@revenda.com',
            'email_dpo'      => 'dpo@revenda.com',
            'email_disputes' => 'disputes@revenda.com',
            'email_security' => 'security@revenda.com',
            'address'        => 'Dar es Salaam, Tanzania',
            'governing_law'  => 'Tanzania',
            'venue'          => 'Courts of Dar es Salaam, Tanzania',
        ];
    }
}

$C         = tsCompany();
$effective = tsEffective();
$updated   = tsLastUpdated();

// ---------- Table of contents ----------
$toc = [
    ['id' => 'acceptance',     'title' => 'Acceptance of These Terms'],
    ['id' => 'definitions',    'title' => 'Definitions'],
    ['id' => 'eligibility',    'title' => 'Eligibility & Account'],
    ['id' => 'two-platforms',  'title' => 'OTA & PMS: Two Platforms, One Agreement'],
    ['id' => 'features',       'title' => 'Platform Features — What You Get'],
    ['id' => 'booking',        'title' => 'Booking Rules & Confirmation'],
    ['id' => 'pricing',        'title' => 'Pricing, Taxes & Fees'],
    ['id' => 'payments',       'title' => 'Payments — All Modes'],
    ['id' => 'crypto',         'title' => 'Crypto Payments & Refunds'],
    ['id' => 'at-hotel',       'title' => 'Pay-at-Hotel Bookings'],
    ['id' => 'ota-collection', 'title' => 'OTA-Processed Payments on Behalf of Properties'],
    ['id' => 'payouts',        'title' => 'Payouts to Property Owners'],
    ['id' => 'instant-payouts','title' => 'Instant Payouts'],
    ['id' => 'subscriptions',  'title' => 'Subscriptions & SaaS Plans'],
    ['id' => 'cancellation',   'title' => 'Cancellations, No-Shows & Refunds'],
    ['id' => 'guest-conduct',  'title' => 'Guest Conduct & Property Rules'],
    ['id' => 'owner-terms',    'title' => 'Property Owner & Manager Terms'],
    ['id' => 'claims',         'title' => 'Property Claims & OSM-Sourced Listings'],
    ['id' => 'listings',       'title' => 'Listing Content & Accuracy'],
    ['id' => 'pms-terms',      'title' => 'PMS Acceptable Use'],
    ['id' => 'smart-tech',     'title' => 'Smart-Room, Voice, Robot & IoT Services'],
    ['id' => 'ai',             'title' => 'AI Features & Disclaimers'],
    ['id' => 'ip',             'title' => 'Intellectual Property'],
    ['id' => 'thirdparty',     'title' => 'Third-Party Services'],
    ['id' => 'prohibited',     'title' => 'Prohibited Conduct'],
    ['id' => 'suspension',     'title' => 'Suspension & Termination'],
    ['id' => 'disclaimers',    'title' => 'Disclaimers'],
    ['id' => 'liability',      'title' => 'Limitation of Liability'],
    ['id' => 'indemnity',      'title' => 'Indemnity'],
    ['id' => 'disputes',       'title' => 'Dispute Resolution'],
    ['id' => 'governing-law',  'title' => 'Governing Law & Jurisdiction'],
    ['id' => 'changes',        'title' => 'Changes to These Terms'],
    ['id' => 'contact',        'title' => 'Contact'],
];

require_once __DIR__ . '/../includes/header.php';
?>

<style>
/* ═══════════════════════════════════════════════════════════
   REVENDA TERMS OF SERVICE — Premium Glass
   ═══════════════════════════════════════════════════════════ */
:root {
    --ts-bg: #0f0c29;
    --ts-glass: rgba(255,255,255,0.04);
    --ts-glass-hi: rgba(255,255,255,0.07);
    --ts-border: rgba(255,255,255,0.08);
    --ts-border-hi: rgba(102,126,234,0.4);
    --ts-text: #e6e8f0;
    --ts-text-dim: #a0aec0;
    --ts-text-hi: #a3bffa;
    --ts-indigo: #667eea;
    --ts-purple: #764ba2;
    --ts-pink: #f093fb;
    --ts-red: #f5576c;
    --ts-cyan: #00d4ff;
    --ts-gold: #ffd700;
    --ts-green: #00b894;
    --ts-orange: #f6ad55;
    --ts-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ts-grad-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --ts-grad-cyan: linear-gradient(135deg, #00d4ff 0%, #00b894 100%);
    --ts-grad-gold: linear-gradient(135deg, #ffd700 0%, #f6ad55 100%);
}

.ts-page {
    position: relative;
    background: var(--ts-bg);
    color: var(--ts-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.7;
    overflow-x: hidden;
    padding: 100px 0 100px;
}
.ts-page::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(700px 400px at 15% 5%, rgba(240,147,251,0.12), transparent 70%),
        radial-gradient(700px 400px at 85% 40%, rgba(102,126,234,0.14), transparent 70%),
        radial-gradient(700px 400px at 50% 100%, rgba(255,215,0,0.06), transparent 70%);
}
.ts-page::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(102,126,234,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102,126,234,0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 30%, black 15%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black 15%, transparent 75%);
}
.ts-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO */
.ts-hero { text-align: center; margin-bottom: 44px; }
.ts-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(240,147,251,0.10);
    border: 1px solid rgba(240,147,251,0.32);
    color: var(--ts-pink);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.ts-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ts-pink);
    animation: tsPulse 2s infinite;
}
@keyframes tsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.5); }
}
.ts-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
    background: linear-gradient(135deg, #fff 0%, #f093fb 45%, #a3bffa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ts-subtitle {
    font-size: 16px;
    color: var(--ts-text-dim);
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.ts-subtitle strong { color: white; font-weight: 700; }

.ts-meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.ts-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--ts-border);
    color: var(--ts-text-dim);
    font-size: 12px;
    font-weight: 700;
    font-family: 'SF Mono', Monaco, monospace;
}
.ts-chip i { color: var(--ts-text-hi); font-size: 11px; }

/* TRUST */
.ts-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 44px 0 52px;
}
.ts-trust-item {
    background: var(--ts-glass);
    border: 1px solid var(--ts-border);
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.ts-trust-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.ts-trust-item .label {
    font-size: 10px;
    color: var(--ts-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}
.ts-trust-item .value {
    font-size: 13px;
    color: white;
    font-weight: 700;
    margin-top: 1px;
}

/* LAYOUT */
.ts-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 44px;
    align-items: start;
}

/* TOC */
.ts-toc {
    position: sticky;
    top: 100px;
    background: var(--ts-glass);
    border: 1px solid var(--ts-border);
    border-radius: 18px;
    padding: 22px 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: thin;
}
.ts-toc::-webkit-scrollbar { width: 6px; }
.ts-toc::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
}
.ts-toc-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--ts-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
    padding-left: 6px;
}
.ts-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}
.ts-toc li { counter-increment: toc; }
.ts-toc a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    color: var(--ts-text-dim);
    text-decoration: none;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.15s;
}
.ts-toc a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 10px;
    color: var(--ts-pink);
    font-weight: 800;
    flex-shrink: 0;
    padding-top: 2px;
    opacity: 0.75;
}
.ts-toc a:hover {
    background: rgba(240,147,251,0.10);
    color: white;
}
.ts-toc a.active {
    background: linear-gradient(135deg, rgba(240,147,251,0.20), rgba(102,126,234,0.15));
    border: 1px solid rgba(240,147,251,0.35);
    color: white;
    padding: 7px 9px;
}

/* CONTENT */
.ts-content { min-width: 0; }
.ts-section {
    background: var(--ts-glass);
    border: 1px solid var(--ts-border);
    border-radius: 20px;
    padding: 32px 34px;
    margin-bottom: 22px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    scroll-margin-top: 100px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}
.ts-section:hover { border-color: rgba(240,147,251,0.25); }
.ts-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--ts-grad-pink);
    opacity: 0;
    transition: opacity 0.25s;
}
.ts-section:target::before,
.ts-section:hover::before { opacity: 0.7; }

.ts-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.ts-section-num {
    min-width: 44px; height: 36px;
    padding: 0 10px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(240,147,251,0.18), rgba(245,87,108,0.18));
    border: 1px solid rgba(240,147,251,0.35);
    color: var(--ts-pink);
    font-size: 12px;
    font-weight: 900;
    font-family: 'SF Mono', Monaco, monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ts-section h2 {
    font-size: 22px;
    font-weight: 900;
    color: white;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
    padding-top: 5px;
}
.ts-section h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--ts-pink);
    margin: 24px 0 10px;
    letter-spacing: -0.005em;
}
.ts-section h3:first-of-type { margin-top: 4px; }
.ts-section h4 {
    font-size: 13.5px;
    font-weight: 800;
    color: white;
    margin: 18px 0 8px;
}
.ts-section p {
    font-size: 14.5px;
    color: var(--ts-text-dim);
    line-height: 1.75;
    margin: 0 0 14px;
}
.ts-section p strong { color: white; font-weight: 700; }
.ts-section p em { color: var(--ts-text-hi); font-style: normal; font-weight: 700; }
.ts-section a {
    color: var(--ts-cyan);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,212,255,0.28);
    transition: all 0.15s;
}
.ts-section a:hover {
    color: white;
    border-bottom-color: white;
}
.ts-section ul,
.ts-section ol {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--ts-text-dim);
    font-size: 14.5px;
    line-height: 1.75;
}
.ts-section ul li,
.ts-section ol li {
    margin-bottom: 8px;
    padding-left: 4px;
}
.ts-section ul li::marker { color: var(--ts-pink); }
.ts-section ol li::marker { color: var(--ts-pink); font-weight: 800; }
.ts-section ul li strong,
.ts-section ol li strong { color: white; }

/* CALLOUTS */
.ts-note {
    padding: 16px 20px;
    border-radius: 14px;
    margin: 18px 0;
    font-size: 13.5px;
    line-height: 1.7;
    border-left: 3px solid;
    color: var(--ts-text-dim);
    display: flex;
    gap: 12px;
}
.ts-note i {
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 15px;
}
.ts-note strong { color: white; }
.ts-note.info    { background: rgba(102,126,234,0.08); border-left-color: var(--ts-indigo); }
.ts-note.info i  { color: var(--ts-text-hi); }
.ts-note.warn    { background: rgba(246,173,85,0.08); border-left-color: var(--ts-orange); }
.ts-note.warn i  { color: var(--ts-orange); }
.ts-note.success { background: rgba(0,184,148,0.08); border-left-color: var(--ts-green); }
.ts-note.success i { color: var(--ts-green); }
.ts-note.gold    { background: rgba(255,215,0,0.06); border-left-color: var(--ts-gold); }
.ts-note.gold i  { color: var(--ts-gold); }
.ts-note.danger  { background: rgba(245,87,108,0.08); border-left-color: var(--ts-red); }
.ts-note.danger i { color: var(--ts-red); }

/* TABLES */
.ts-table-wrap {
    overflow-x: auto;
    margin: 18px 0;
    border-radius: 14px;
    border: 1px solid var(--ts-border);
}
.ts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 560px;
}
.ts-table thead { background: rgba(240,147,251,0.10); }
.ts-table th {
    padding: 12px 16px;
    text-align: left;
    color: white;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(240,147,251,0.25);
    white-space: nowrap;
}
.ts-table td {
    padding: 12px 16px;
    color: var(--ts-text-dim);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: top;
    line-height: 1.6;
}
.ts-table tr:last-child td { border-bottom: none; }
.ts-table tr:hover td { background: rgba(255,255,255,0.02); }
.ts-table td strong { color: white; }
.ts-table td code {
    background: rgba(0,0,0,0.35);
    padding: 2px 7px;
    border-radius: 5px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 11.5px;
    color: var(--ts-text-hi);
}

/* CARDS */
.ts-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.ts-card {
    background: rgba(0,0,0,0.20);
    border: 1px solid var(--ts-border);
    border-radius: 14px;
    padding: 18px 18px 16px;
    transition: all 0.2s;
}
.ts-card:hover {
    border-color: rgba(240,147,251,0.4);
    background: rgba(240,147,251,0.05);
    transform: translateY(-2px);
}
.ts-card .ico {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 12px;
}
.ts-card h4 {
    font-size: 14px;
    font-weight: 800;
    color: white;
    margin: 0 0 6px;
}
.ts-card p {
    font-size: 12.5px;
    color: var(--ts-text-dim);
    line-height: 1.6;
    margin: 0;
}

/* CONTACT PANEL */
.ts-contact {
    margin-top: 44px;
    padding: 36px 34px;
    background: linear-gradient(135deg, rgba(240,147,251,0.10), rgba(102,126,234,0.10));
    border: 1px solid rgba(240,147,251,0.32);
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}
.ts-contact::after {
    content: '';
    position: absolute;
    top: -80px; right: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(240,147,251,0.14), transparent 65%);
    pointer-events: none;
}
.ts-contact > * { position: relative; }
.ts-contact h3 {
    font-size: 22px;
    font-weight: 900;
    color: white;
    margin: 0 0 10px;
}
.ts-contact p {
    font-size: 14.5px;
    color: var(--ts-text-dim);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 0 22px;
}
.ts-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}
.ts-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--ts-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.ts-contact-item:hover {
    border-color: var(--ts-border-hi);
    background: rgba(240,147,251,0.08);
    transform: translateY(-2px);
}
.ts-contact-item .ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--ts-grad-pink);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.ts-contact-item .label {
    font-size: 10px;
    color: var(--ts-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}
.ts-contact-item .value {
    font-size: 13px;
    color: white;
    font-weight: 700;
    margin-top: 2px;
    font-family: 'SF Mono', Monaco, monospace;
}

/* BACK TO TOP */
.ts-back {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--ts-grad-pink);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 12px 32px rgba(240,147,251,0.45);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s;
}
.ts-back.show { opacity: 1; visibility: visible; transform: translateY(0); }
.ts-back:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 16px 40px rgba(240,147,251,0.6);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .ts-layout { grid-template-columns: 1fr; gap: 24px; }
    .ts-toc {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 8px;
    }
    .ts-toc ol {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 4px;
    }
}
@media (max-width: 720px) {
    .ts-page { padding: 90px 0 60px; }
    .ts-section { padding: 24px 22px; border-radius: 16px; }
    .ts-section h2 { font-size: 18px; }
    .ts-section-num { min-width: 38px; height: 32px; font-size: 11px; }
    .ts-contact { padding: 28px 22px; }
    .ts-trust { grid-template-columns: 1fr 1fr; }
    .ts-back { right: 20px; bottom: 20px; width: 44px; height: 44px; }
}
@media (max-width: 480px) {
    .ts-trust { grid-template-columns: 1fr; }
    .ts-toc ol { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .ts-section:hover,
    .ts-card:hover,
    .ts-contact-item:hover { transform: none; }
}
</style>

<div class="ts-page">
    <div class="ts-container">

        <!-- HERO -->
        <header class="ts-hero">
            <div class="ts-badge">
                <span class="dot"></span>
                <i class="fas fa-file-contract" style="color: var(--ts-pink);"></i>
                Legal · Terms · Agreement
            </div>
            <h1 class="ts-title">Terms of Service</h1>
            <p class="ts-subtitle">
                These Terms govern your use of <strong>Revenda Hospitality</strong> — the high-tech platform
                connecting travellers with properties, and property owners with the tools to manage them.
                They cover both the <strong>OTA booking platform</strong> and the <strong>PMS SaaS</strong>,
                including all payment modes, crypto, payouts, subscriptions, and property claims.
            </p>

            <div class="ts-meta">
                <span class="ts-chip">
                    <i class="fas fa-calendar-check"></i>
                    Effective <?= tsSafe($effective) ?>
                </span>
                <span class="ts-chip">
                    <i class="fas fa-rotate"></i>
                    Last updated <?= tsSafe($updated) ?>
                </span>
                <span class="ts-chip">
                    <i class="fas fa-globe"></i>
                    Global · Multi-jurisdiction
                </span>
                <span class="ts-chip">
                    <i class="fas fa-code-branch"></i>
                    Version 2.1
                </span>
            </div>
        </header>

        <!-- TRUST -->
        <div class="ts-trust">
            <div class="ts-trust-item">
                <div class="ts-trust-icon" style="background: rgba(240,147,251,0.15); color: var(--ts-pink);">
                    <i class="fas fa-credit-card"></i>
                </div>
                <div>
                    <div class="label">Payments</div>
                    <div class="value">Fiat · Crypto · At-hotel</div>
                </div>
            </div>
            <div class="ts-trust-item">
                <div class="ts-trust-icon" style="background: rgba(0,184,148,0.15); color: var(--ts-green);">
                    <i class="fas fa-bolt"></i>
                </div>
                <div>
                    <div class="label">Payouts</div>
                    <div class="value">Standard · Instant</div>
                </div>
            </div>
            <div class="ts-trust-item">
                <div class="ts-trust-icon" style="background: rgba(0,212,255,0.15); color: var(--ts-cyan);">
                    <i class="fas fa-hotel"></i>
                </div>
                <div>
                    <div class="label">Platforms</div>
                    <div class="value">OTA + PMS</div>
                </div>
            </div>
            <div class="ts-trust-item">
                <div class="ts-trust-icon" style="background: rgba(255,215,0,0.15); color: var(--ts-gold);">
                    <i class="fas fa-scale-balanced"></i>
                </div>
                <div>
                    <div class="label">Disputes</div>
                    <div class="value">Fair &amp; Transparent</div>
                </div>
            </div>
        </div>

        <!-- LAYOUT -->
        <div class="ts-layout">

            <!-- TOC -->
            <aside class="ts-toc" aria-label="Table of contents">
                <h2 class="ts-toc-title">On this page</h2>
                <ol>
                    <?php foreach ($toc as $item): ?>
                        <li><a href="#<?= tsSafe($item['id']) ?>" data-toc="<?= tsSafe($item['id']) ?>"><?= tsSafe($item['title']) ?></a></li>
                    <?php endforeach; ?>
                </ol>
            </aside>

            <!-- CONTENT -->
            <main class="ts-content">

                <!-- 01. ACCEPTANCE -->
                <section class="ts-section" id="acceptance">
                    <div class="ts-section-head">
                        <div class="ts-section-num">01</div>
                        <h2>Acceptance of These Terms</h2>
                    </div>
                    <p>
                        By accessing, browsing, registering for, or using any part of the Revenda platform —
                        including our website, mobile applications, APIs, and PMS tools — you agree to be
                        bound by these Terms of Service ("Terms"), our
                        <a href="/?page=privacy">Privacy Policy</a>, and any additional policies referenced here.
                    </p>
                    <div class="ts-note warn">
                        <i class="fas fa-triangle-exclamation"></i>
                        <div>
                            <strong>If you do not agree to these Terms, do not use the platform.</strong>
                            If you are entering this agreement on behalf of a company, you confirm that you
                            have authority to bind that company.
                        </div>
                    </div>
                    <p>
                        These Terms apply to <strong>everyone</strong> who touches Revenda: guests, travellers,
                        property owners, management companies, hotel staff, agents, and API partners.
                    </p>
                </section>

                <!-- 02. DEFINITIONS -->
                <section class="ts-section" id="definitions">
                    <div class="ts-section-head">
                        <div class="ts-section-num">02</div>
                        <h2>Definitions</h2>
                    </div>
                    <div class="ts-table-wrap">
                        <table class="ts-table">
                            <thead>
                                <tr><th>Term</th><th>Meaning</th></tr>
                            </thead>
                            <tbody>
                                <tr><td><strong>"Revenda"</strong>, "we", "us", "our"</td><td>Revenda Hospitality, the operator of the platform.</td></tr>
                                <tr><td><strong>"Platform"</strong></td><td>The Revenda OTA marketplace, the PMS SaaS, our website(s), apps, and APIs collectively.</td></tr>
                                <tr><td><strong>"Guest"</strong></td><td>Any traveller who books or stays at a property via Revenda.</td></tr>
                                <tr><td><strong>"Owner"</strong></td><td>A property owner, host, or management company listing stays on Revenda.</td></tr>
                                <tr><td><strong>"Property"</strong></td><td>Any accommodation, experience, or service listed on Revenda.</td></tr>
                                <tr><td><strong>"Booking"</strong></td><td>A confirmed reservation for a stay or experience.</td></tr>
                                <tr><td><strong>"OTA"</strong></td><td>Online Travel Agency — the guest-facing booking marketplace.</td></tr>
                                <tr><td><strong>"PMS"</strong></td><td>Property Management System — the SaaS tools for owners and staff.</td></tr>
                                <tr><td><strong>"Subscription"</strong></td><td>A recurring paid plan for accessing premium PMS features.</td></tr>
                                <tr><td><strong>"Instant Payout"</strong></td><td>An Owner-requested settlement of a cleared reservation sooner than the standard payout cycle.</td></tr>
                                <tr><td><strong>"Crypto"</strong></td><td>Any blockchain-based digital asset accepted by Revenda (BTC, ETH, USDC, USDT, others).</td></tr>
                                <tr><td><strong>"Claim"</strong></td><td>The verified process by which an Owner takes control of a listing, including OSM-sourced listings.</td></tr>
                                <tr><td><strong>"OSM"</strong></td><td>OpenStreetMap — the open, community-maintained map dataset from which some listings originate.</td></tr>
                            </tbody>
                        </table>
                    </div>
                </section>

                <!-- 03. ELIGIBILITY -->
                <section class="ts-section" id="eligibility">
                    <div class="ts-section-head">
                        <div class="ts-section-num">03</div>
                        <h2>Eligibility &amp; Account</h2>
                    </div>
                    <p>To use Revenda you must:</p>
                    <ul>
                        <li>Be at least <strong>18 years old</strong> (or the age of majority in your jurisdiction).</li>
                        <li>Provide accurate, current, and complete registration information.</li>
                        <li>Maintain the security of your account credentials (use a unique password and enable MFA).</li>
                        <li>Not be barred from using the platform under the laws of any applicable jurisdiction.</li>
                    </ul>
                    <p>
                        You are responsible for all activity under your account. Notify us immediately at
                        <a href="mailto:support@revenda.com">support@revenda.com</a> if you suspect unauthorised access.
                    </p>
                </section>

                <!-- 04. TWO PLATFORMS -->
                <section class="ts-section" id="two-platforms">
                    <div class="ts-section-head">
                        <div class="ts-section-num">04</div>
                        <h2>OTA &amp; PMS: Two Platforms, One Agreement</h2>
                    </div>
                    <p>
                        Revenda operates as <strong>both</strong> an OTA and a PMS. These Terms apply to both, and
                        your role determines which clauses are most relevant to you.
                    </p>
                    <div class="ts-cards">
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(102,126,234,0.15); color: var(--ts-text-hi);">
                                <i class="fas fa-plane-departure"></i>
                            </div>
                            <h4>OTA — For Guests</h4>
                            <p>Search, compare, and book stays and experiences. Pay with fiat, crypto, or at the property. Manage bookings, cancellations, and reviews.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(0,184,148,0.15); color: var(--ts-green);">
                                <i class="fas fa-hotel"></i>
                            </div>
                            <h4>PMS — For Owners</h4>
                            <p>Manage properties, rates, inventory, housekeeping, front desk, POS, laundry, and finance. Receive payouts on your terms, including instant payout where eligible.</p>
                        </div>
                    </div>
                </section>

                <!-- 04.5 PLATFORM FEATURES -->
                <section class="ts-section" id="features">
                    <div class="ts-section-head">
                        <div class="ts-section-num">04.5</div>
                        <h2>Platform Features — What You Get</h2>
                    </div>
                    <p>
                        Revenda is a full-stack hospitality platform. Depending on your role, the following
                        capabilities are available. Features may be added, upgraded, or retired over time, and
                        some require an active subscription or verification.
                    </p>

                    <h3>For Guests &amp; Travellers (OTA)</h3>
                    <div class="ts-cards">
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(102,126,234,0.15); color: var(--ts-text-hi);">
                                <i class="fas fa-magnifying-glass"></i>
                            </div>
                            <h4>Global Search &amp; Compare</h4>
                            <p>Properties, cities, activities, and experiences across 150+ countries, filterable by price, rating, amenities, and dates.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(0,212,255,0.15); color: var(--ts-cyan);">
                                <i class="fas fa-map-location-dot"></i>
                            </div>
                            <h4>Interactive Map</h4>
                            <p>Browse stays geographically, powered by OpenStreetMap data. See neighbourhoods, landmarks, and transit at a glance.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(240,147,251,0.15); color: var(--ts-pink);">
                                <i class="fas fa-credit-card"></i>
                            </div>
                            <h4>Every Payment Mode</h4>
                            <p>Card, wallet, bank, crypto, or pay at the property. Choose what suits you at checkout.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(255,215,0,0.15); color: var(--ts-gold);">
                                <i class="fas fa-wand-magic-sparkles"></i>
                            </div>
                            <h4>AI Trip Planner</h4>
                            <p>Generate personalised itineraries from real activities, matched to your dates, budget, and travel style.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(0,184,148,0.15); color: var(--ts-green);">
                                <i class="fas fa-heart"></i>
                            </div>
                            <h4>Wishlists &amp; Alerts</h4>
                            <p>Save properties, get price-drop alerts, and pick up where you left off across devices.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(246,173,85,0.15); color: var(--ts-orange);">
                                <i class="fas fa-gift"></i>
                            </div>
                            <h4>Loyalty &amp; Rewards</h4>
                            <p>Earn points on every stay and review. Redeem for free nights, upgrades, and experiences.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(102,126,234,0.15); color: var(--ts-text-hi);">
                                <i class="fas fa-microchip"></i>
                            </div>
                            <h4>Smart-Room Controls</h4>
                            <p>Where available: control lights, climate, and media from your phone. Voice concierge and robot delivery at select properties.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(0,212,255,0.15); color: var(--ts-cyan);">
                                <i class="fas fa-key"></i>
                            </div>
                            <h4>Digital Room Key</h4>
                            <p>Skip the front desk. Unlock your room from your phone (where the property supports it).</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(240,147,251,0.15); color: var(--ts-pink);">
                                <i class="fas fa-leaf"></i>
                            </div>
                            <h4>Carbon Offset</h4>
                            <p>Optionally offset the emissions of your stay at checkout, with transparent calculations.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(0,184,148,0.15); color: var(--ts-green);">
                                <i class="fas fa-shield-halved"></i>
                            </div>
                            <h4>Trust &amp; Safety</h4>
                            <p>Verified properties, secure payments, 24/7 support, and dispute mediation.</p>
                        </div>
                    </div>

                    <h3>For Property Owners &amp; Managers (PMS)</h3>
                    <div class="ts-cards">
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(102,126,234,0.15); color: var(--ts-text-hi);">
                                <i class="fas fa-building"></i>
                            </div>
                            <h4>Property Management</h4>
                            <p>Manage multiple properties, room types, inventory, and amenities from one dashboard.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(0,212,255,0.15); color: var(--ts-cyan);">
                                <i class="fas fa-calendar-check"></i>
                            </div>
                            <h4>Reservations &amp; Front Desk</h4>
                            <p>Bookings, check-in, check-out, walk-ins, waitlists, group bookings, and night audit.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(0,184,148,0.15); color: var(--ts-green);">
                                <i class="fas fa-broom"></i>
                            </div>
                            <h4>Housekeeping &amp; Maintenance</h4>
                            <p>Room status, task assignment, laundry tracking, and maintenance tickets.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(246,173,85,0.15); color: var(--ts-orange);">
                                <i class="fas fa-cash-register"></i>
                            </div>
                            <h4>Restaurant POS &amp; F&amp;B</h4>
                            <p>POS, menus, QR ordering, room service, and dining reservations.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(240,147,251,0.15); color: var(--ts-pink);">
                                <i class="fas fa-chart-line"></i>
                            </div>
                            <h4>Smart Pricing &amp; Revenue</h4>
                            <p>Demand-based rate recommendations, forecasting, and revenue analytics.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(255,215,0,0.15); color: var(--ts-gold);">
                                <i class="fas fa-money-bill-wave"></i>
                            </div>
                            <h4>Finance &amp; Payouts</h4>
                            <p>Invoices, payouts, tax reporting, and instant payout option for eligible owners.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(102,126,234,0.15); color: var(--ts-text-hi);">
                                <i class="fas fa-plug"></i>
                            </div>
                            <h4>Channel Manager</h4>
                            <p>Sync rates, availability, and bookings across partner OTAs and GDS channels.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(0,212,255,0.15); color: var(--ts-cyan);">
                                <i class="fas fa-users-cog"></i>
                            </div>
                            <h4>Staff &amp; Roles</h4>
                            <p>Granular permissions for managers, front-desk, housekeeping, F&amp;B, finance, and more.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(0,184,148,0.15); color: var(--ts-green);">
                                <i class="fas fa-microchip"></i>
                            </div>
                            <h4>Smart-Property IoT</h4>
                            <p>Device management, smart locks, sensors, energy monitoring, and robot concierge (optional).</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(240,147,251,0.15); color: var(--ts-pink);">
                                <i class="fas fa-chart-pie"></i>
                            </div>
                            <h4>Reports &amp; Forecasts</h4>
                            <p>Nightly reports, occupancy, ADR, RevPAR, forecasts, and exportable PDFs.</p>
                        </div>
                    </div>

                    <h3>For Management Companies (Multi-Property)</h3>
                    <div class="ts-cards">
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(102,126,234,0.15); color: var(--ts-text-hi);">
                                <i class="fas fa-sitemap"></i>
                            </div>
                            <h4>Multi-Property Portfolio</h4>
                            <p>Manage an entire portfolio from one place, with per-property and consolidated views.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(0,184,148,0.15); color: var(--ts-green);">
                                <i class="fas fa-users-gear"></i>
                            </div>
                            <h4>Team Hierarchy</h4>
                            <p>Assign managers per property, control access by role and location.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(255,215,0,0.15); color: var(--ts-gold);">
                                <i class="fas fa-file-invoice-dollar"></i>
                            </div>
                            <h4>Consolidated Finance</h4>
                            <p>Roll-up reporting, owner statements, commission splits, and per-property P&amp;L.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(240,147,251,0.15); color: var(--ts-pink);">
                                <i class="fas fa-tags"></i>
                            </div>
                            <h4>Brand &amp; Template Control</h4>
                            <p>Apply brand standards, email templates, and messaging across all properties.</p>
                        </div>
                    </div>

                    <div class="ts-note info">
                        <i class="fas fa-circle-info"></i>
                        <div>
                            <strong>Feature availability:</strong> not every feature is enabled on every plan or
                            property. Some require additional configuration, subscription tiers, or hardware.
                            The current feature set for your account is shown in your dashboard.
                        </div>
                    </div>
                </section>

                <!-- 05. BOOKING -->
                <section class="ts-section" id="booking">
                    <div class="ts-section-head">
                        <div class="ts-section-num">05</div>
                        <h2>Booking Rules &amp; Confirmation</h2>
                    </div>
                    <ul>
                        <li><strong>Booking is a direct contract</strong> between the Guest and the Property. Revenda facilitates discovery, payment, and support — it is not the accommodation provider.</li>
                        <li>A booking is <strong>confirmed</strong> when you receive a confirmation email or in-app notification from Revenda, and payment has been authorised or collected as applicable.</li>
                        <li><strong>Instant Book</strong> properties are confirmed immediately upon successful payment.</li>
                        <li><strong>Request-to-book</strong> properties require the Owner's acceptance within the window shown on the listing.</li>
                        <li>Guest count, dates, and room type must match the booking. Material discrepancies may lead to additional charges or refusal of service by the Property.</li>
                    </ul>
                </section>

                <!-- 06. PRICING -->
                <section class="ts-section" id="pricing">
                    <div class="ts-section-head">
                        <div class="ts-section-num">06</div>
                        <h2>Pricing, Taxes &amp; Fees</h2>
                    </div>
                    <p>
                        Prices shown on Revenda are set by the Property. Revenda may add a service fee for its
                        platform services and may collect taxes where required by law. All charges are disclosed
                        before you confirm a booking.
                    </p>
                    <div class="ts-table-wrap">
                        <table class="ts-table">
                            <thead>
                                <tr><th>Component</th><th>Who sets it</th><th>Disclosure</th></tr>
                            </thead>
                            <tbody>
                                <tr><td><strong>Room rate</strong></td><td>Property</td><td>Shown per night before taxes.</td></tr>
                                <tr><td><strong>Revenda service fee</strong></td><td>Revenda</td><td>Shown at checkout before payment.</td></tr>
                                <tr><td><strong>Cleaning / resort fees</strong></td><td>Property</td><td>Itemised at checkout.</td></tr>
                                <tr><td><strong>Taxes &amp; government fees</strong></td><td>Jurisdiction</td><td>Itemised where applicable; included where tax-inclusive pricing applies.</td></tr>
                                <tr><td><strong>Currency conversion</strong></td><td>Payment processor / Revenda</td><td>Rate and any markup shown at checkout.</td></tr>
                                <tr><td><strong>Crypto network fees</strong></td><td>Blockchain</td><td>Paid by sender unless stated otherwise.</td></tr>
                            </tbody>
                        </table>
                    </div>
                    <p>
                        Prices are subject to change until a booking is confirmed. Where a Property changes
                        its price after your booking is confirmed, your confirmed price stands.
                    </p>
                </section>

                <!-- 07. PAYMENTS -->
                <section class="ts-section" id="payments">
                    <div class="ts-section-head">
                        <div class="ts-section-num">07</div>
                        <h2>Payments — All Modes</h2>
                    </div>
                    <p>
                        Revenda accepts <strong>every commonly available payment method</strong> to make it easy
                        for guests worldwide to book, and for owners worldwide to receive funds.
                    </p>
                    <div class="ts-table-wrap">
                        <table class="ts-table">
                            <thead>
                                <tr><th>Method</th><th>Handled by</th><th>Notes</th></tr>
                            </thead>
                            <tbody>
                                <tr><td><strong>Credit / debit card</strong></td><td>PCI-DSS Level 1 processor</td><td>Visa, Mastercard, Amex, Discover and regional networks.</td></tr>
                                <tr><td><strong>Digital wallets</strong></td><td>Wallet provider</td><td>Apple Pay, Google Pay, PayPal and similar.</td></tr>
                                <tr><td><strong>Bank transfer</strong></td><td>Banking partner</td><td>SEPA, ACH, SWIFT, and local rails where available.</td></tr>
                                <tr><td><strong>Cryptocurrency</strong></td><td>Crypto gateway + blockchain</td><td>BTC, ETH, USDC, USDT, and other supported assets.</td></tr>
                                <tr><td><strong>Pay at hotel</strong></td><td>Property</td><td>Guest pays on arrival or departure using the Property's own terminal.</td></tr>
                                <tr><td><strong>Subscription billing</strong></td><td>Revenda processor</td><td>For PMS plans; renews automatically unless cancelled.</td></tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="ts-note info">
                        <i class="fas fa-circle-info"></i>
                        <div>
                            <strong>Two collection models:</strong> Revenda may either process payments
                            on behalf of the Property (as its limited payment collection agent), or the
                            Property may collect directly from the Guest. The applicable model is shown
                            at checkout before you confirm.
                        </div>
                    </div>
                </section>

                <!-- 08. CRYPTO -->
                <section class="ts-section" id="crypto">
                    <div class="ts-section-head">
                        <div class="ts-section-num">08</div>
                        <h2>Crypto Payments &amp; Refunds</h2>
                    </div>
                    <ul>
                        <li>Crypto payments are <strong>final once confirmed on-chain</strong>, subject to the minimum confirmations stated at checkout.</li>
                        <li>The <strong>exchange rate is locked</strong> for the period shown at checkout. If the rate changes before your transaction confirms, the amount may be adjusted or the transaction may be refunded.</li>
                        <li>Network fees are set by the blockchain and are outside Revenda's control.</li>
                        <li>Refunds are issued in the <strong>same asset and network</strong> as the original payment, at the original received amount.</li>
                        <li>Where a crypto refund is technically impossible (for example, the asset is no longer supported), we may offer a fiat refund or a Revenda travel credit, at the Guest's choice.</li>
                        <li>You are responsible for the accuracy of the wallet address you provide. Revenda is not liable for funds sent to an incorrect address you supplied.</li>
                    </ul>
                    <div class="ts-note warn">
                        <i class="fas fa-triangle-exclamation"></i>
                        <div>
                            <strong>Volatility:</strong> Revenda is not responsible for losses arising from
                            the price movement of crypto assets between the time you initiate a payment
                            and the time it confirms.
                        </div>
                    </div>
                </section>

                <!-- 09. AT-HOTEL -->
                <section class="ts-section" id="at-hotel">
                    <div class="ts-section-head">
                        <div class="ts-section-num">09</div>
                        <h2>Pay-at-Hotel Bookings</h2>
                    </div>
                    <p>
                        Some properties allow you to reserve now and pay on arrival. Where this option is
                        selected:
                    </p>
                    <ul>
                        <li>A <strong>reservation hold</strong> may be placed on your payment method to secure the booking.</li>
                        <li>The Property collects the full amount at check-in or check-out using its own terminal and terms.</li>
                        <li>Revenda <strong>does not process</strong> the payment in this model, but does support you in case of dispute.</li>
                        <li>Failure to pay at the Property may result in cancellation of the booking and charges under the applicable cancellation policy.</li>
                    </ul>
                </section>

                <!-- 10. OTA-ON-BEHALF -->
                <section class="ts-section" id="ota-collection">
                    <div class="ts-section-head">
                        <div class="ts-section-num">10</div>
                        <h2>OTA-Processed Payments on Behalf of Properties</h2>
                    </div>
                    <p>
                        Where Revenda processes payment on behalf of a Property, Revenda acts as the Property's
                        <strong>limited payment collection agent</strong>. In this model:
                    </p>
                    <ul>
                        <li>Guest payment to Revenda <strong>discharges the Guest's payment obligation</strong> to the Property for the booked amount.</li>
                        <li>Revenda settles the net amount (after service fee, taxes, and applicable withholdings) to the Property under the agreed payout schedule.</li>
                        <li>Chargebacks, fraud, and refund obligations are handled under the policies in these Terms and the Property's listing agreement.</li>
                        <li>Revenda is not the merchant of record for the accommodation itself; the Property remains responsible for delivering the stay as described.</li>
                    </ul>
                </section>

                <!-- 11. PAYOUTS -->
                <section class="ts-section" id="payouts">
                    <div class="ts-section-head">
                        <div class="ts-section-num">11</div>
                        <h2>Payouts to Property Owners</h2>
                    </div>
                    <p>
                        Owners receive payouts to their verified account (bank or crypto wallet) under the
                        following principles:
                    </p>
                    <ul>
                        <li><strong>Currency:</strong> payouts are made in the Owner's selected payout currency, converted from the booking currency at the rate shown in the PMS.</li>
                        <li><strong>Timing:</strong> standard payouts settle on the cycle shown in the Owner's agreement (typically 24–72 hours after guest check-out, or per agreed terms).</li>
                        <li><strong>Deductions:</strong> Revenda's service fee, applicable taxes, chargeback reserves, and any refunds are deducted before settlement.</li>
                        <li><strong>Verification:</strong> Owners must complete identity and account verification before the first payout. Changes to payout details require re-verification.</li>
                        <li><strong>Withholding:</strong> where legally required, Revenda may withhold or report amounts to tax authorities.</li>
                    </ul>
                </section>

                <!-- 12. INSTANT PAYOUTS -->
                <section class="ts-section" id="instant-payouts">
                    <div class="ts-section-head">
                        <div class="ts-section-num">12</div>
                        <h2>Instant Payouts</h2>
                    </div>
                    <p>
                        Eligible Owners may request <strong>instant payout</strong> of cleared reservations.
                        By opting in, you agree that:
                    </p>
                    <ul>
                        <li>Revenda may transfer settled funds to the verified account or wallet on file as soon as the reservation clears.</li>
                        <li>Instant payout eligibility may vary by property, region, currency, and payment mode.</li>
                        <li>Instant payouts are subject to <strong>fraud, AML, and chargeback-risk checks</strong>, and may be delayed, limited, or declined where those checks fail.</li>
                        <li>A fee may apply, disclosed in the PMS before you confirm each request.</li>
                        <li>If a booking is subsequently cancelled, refunded, or charged back, Revenda may recover the corresponding amount from your next payout or another settlement method.</li>
                        <li>You are responsible for the tax consequences of receiving funds sooner than the standard schedule.</li>
                    </ul>
                    <div class="ts-note success">
                        <i class="fas fa-circle-check"></i>
                        <div>
                            <strong>Opt-in, opt-out:</strong> you can enable or disable instant payouts from your
                            PMS at any time. Standard payouts remain available regardless.
                        </div>
                    </div>
                </section>

                <!-- 13. SUBSCRIPTIONS -->
                <section class="ts-section" id="subscriptions">
                    <div class="ts-section-head">
                        <div class="ts-section-num">13</div>
                        <h2>Subscriptions &amp; SaaS Plans</h2>
                    </div>
                    <p>
                        PMS features are offered through paid subscription plans. By subscribing:
                    </p>
                    <ul>
                        <li>You authorise recurring charges on your chosen payment method (fiat or crypto) at the plan's billing interval.</li>
                        <li>Plans renew automatically until cancelled. Cancellation takes effect at the end of the current billing cycle.</li>
                        <li>You may upgrade, downgrade, or cancel from the PMS billing page at any time.</li>
                        <li>Fees are <strong>non-refundable</strong> for partial billing periods, except where required by law or expressly stated.</li>
                        <li>Failure to pay may result in suspension of paid features after a grace period, with notice.</li>
                        <li>Prices may change with at least <strong>30 days' notice</strong>. Continued use after the notice period constitutes acceptance.</li>
                        <li>Free trials convert to paid plans on the disclosed date unless cancelled before then.</li>
                    </ul>
                </section>

                <!-- 14. CANCELLATION -->
                <section class="ts-section" id="cancellation">
                    <div class="ts-section-head">
                        <div class="ts-section-num">14</div>
                        <h2>Cancellations, No-Shows &amp; Refunds</h2>
                    </div>
                    <p>
                        Cancellation terms are set by each Property and are shown on the listing and at checkout.
                        Revenda enforces those terms on the Property's behalf where Revenda has collected payment.
                    </p>
                    <div class="ts-table-wrap">
                        <table class="ts-table">
                            <thead>
                                <tr><th>Scenario</th><th>Refund treatment (typical)</th></tr>
                            </thead>
                            <tbody>
                                <tr><td><strong>Free cancellation</strong> window</td><td>Full refund of the room rate, minus non-refundable fees if disclosed at booking.</td></tr>
                                <tr><td><strong>Partial cancellation</strong> window</td><td>Refund per the Property's stated policy; the service fee may be retained.</td></tr>
                                <tr><td><strong>No-show</strong></td><td>Generally non-refundable. Property may charge the full booking amount.</td></tr>
                                <tr><td><strong>Property cancels</strong></td><td>Full refund to the Guest, and Revenda will assist with rebooking.</td></tr>
                                <tr><td><strong>Force majeure</strong></td><td>Handled case-by-case; Revenda may issue a credit, refund, or rebooking at its discretion.</td></tr>
                                <tr><td><strong>Chargeback</strong></td><td>Subject to card scheme rules; Revenda and the Property cooperate on evidence.</td></tr>
                            </tbody>
                        </table>
                    </div>
                </section>

                <!-- 15. GUEST CONDUCT -->
                <section class="ts-section" id="guest-conduct">
                    <div class="ts-section-head">
                        <div class="ts-section-num">15</div>
                        <h2>Guest Conduct &amp; Property Rules</h2>
                    </div>
                    <ul>
                        <li>Guests must respect the Property's house rules, including smoking, pets, quiet hours, and maximum occupancy.</li>
                        <li>Guests are liable for damage caused to the Property during the stay, subject to the Property's own terms and any security deposit.</li>
                        <li>Illegal activity is strictly prohibited and will be reported to authorities.</li>
                        <li>Over-occupancy or unauthorised visitors may result in additional charges or eviction without refund.</li>
                    </ul>
                </section>

                <!-- 16. OWNER TERMS -->
                <section class="ts-section" id="owner-terms">
                    <div class="ts-section-head">
                        <div class="ts-section-num">16</div>
                        <h2>Property Owner &amp; Manager Terms</h2>
                    </div>
                    <p>
                        If you list a Property, operate one through Revenda PMS, or claim a
                        property that already appears on Revenda (see
                        <a href="#claims">§16.5 Property Claims &amp; OSM-Sourced Listings</a>),
                        you additionally agree that:
                    </p>
                    <ul>
                        <li>You have the legal right to list and rent the Property.</li>
                        <li>Your listing information (rates, availability, amenities, photos, policies) is accurate and kept up to date.</li>
                        <li>You will honour confirmed bookings at the price shown, and will not solicit Guests to transact off-platform to avoid fees.</li>
                        <li>You will comply with local licensing, tax, and safety regulations, and with hotel-guest registration laws.</li>
                        <li>You will not discriminate against Guests on protected grounds (race, sex, religion, nationality, disability, etc.).</li>
                        <li>You grant Revenda a non-exclusive, worldwide licence to display your listing content for marketing and booking purposes.</li>
                        <li>You will cooperate with Revenda on Guest disputes, chargebacks, and fraud investigations.</li>
                    </ul>
                </section>

                <!-- 16.5 CLAIMS -->
                <section class="ts-section" id="claims">
                    <div class="ts-section-head">
                        <div class="ts-section-num">16.5</div>
                        <h2>Property Claims &amp; OSM-Sourced Listings</h2>
                    </div>

                    <div class="ts-note gold">
                        <i class="fas fa-map-location-dot"></i>
                        <div>
                            <strong>Powered by OpenStreetMap.</strong> Many properties shown on Revenda
                            originate from the global, community-maintained <strong>OpenStreetMap (OSM)</strong>
                            dataset. We aggregate, enrich, and make these listings bookable — but they may not
                            have been created or verified by the property's own owner or manager.
                        </div>
                    </div>

                    <h3>Why your property may already be listed</h3>
                    <p>
                        If your hotel, resort, villa, lodge, guesthouse, or experience appears on Revenda,
                        it is likely because it is publicly mapped on <strong>OpenStreetMap</strong> — the same
                        open dataset used by major mapping platforms worldwide. Revenda imports these public
                        POIs (points of interest) to build a rich, global catalogue for travellers, and
                        subsequently adds pricing, imagery, and availability signals.
                    </p>
                    <p>This means:</p>
                    <ul>
                        <li>Your property may be listed <strong>without you having registered first</strong>.</li>
                        <li>Initial data (name, coordinates, type) is drawn from OSM and may be <strong>incomplete or outdated</strong>.</li>
                        <li>You are <strong>not charged</strong> for an unclaimed listing, and no bookings can be honoured by Revenda on your behalf until you claim it.</li>
                        <li>You retain full rights over your brand, imagery, and description once you claim.</li>
                    </ul>

                    <h3>Claiming your property — how it works</h3>
                    <ol>
                        <li><strong>Find your property</strong> on Revenda. If you see it listed, click <em>“Claim this property”</em> from the property page, or visit <a href="/?page=claim-property">/?page=claim-property</a>.</li>
                        <li><strong>Verify ownership</strong> by one of the methods shown (business email, phone, domain, document upload, or partner confirmation).</li>
                        <li><strong>Submit your claim</strong>. Our team reviews it, usually within 3 business days.</li>
                        <li>Once approved, you gain <strong>full owner control</strong> of the listing in your PMS.</li>
                    </ol>

                    <h3>Once you have claimed, you can</h3>
                    <div class="ts-cards">
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(102,126,234,0.15); color: var(--ts-text-hi);">
                                <i class="fas fa-pen-to-square"></i>
                            </div>
                            <h4>Update All Data</h4>
                            <p>Correct name, description, address, coordinates, amenities, photos, policies, room types, and rates.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(0,184,148,0.15); color: var(--ts-green);">
                                <i class="fas fa-calendar-plus"></i>
                            </div>
                            <h4>Control Availability</h4>
                            <p>Set your real-time availability, blackout dates, minimum stays, and booking rules.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(240,147,251,0.15); color: var(--ts-pink);">
                                <i class="fas fa-image"></i>
                            </div>
                            <h4>Replace Imagery</h4>
                            <p>Upload your own professional photos and remove any stock or third-party placeholders.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(255,215,0,0.15); color: var(--ts-gold);">
                                <i class="fas fa-credit-card"></i>
                            </div>
                            <h4>Enable Bookings</h4>
                            <p>Accept bookings through Revenda with any payment mode — fiat, crypto, or pay-at-property.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(0,212,255,0.15); color: var(--ts-cyan);">
                                <i class="fas fa-sliders"></i>
                            </div>
                            <h4>Configure Policies</h4>
                            <p>Set your cancellation, child, pet, smoking, and house rules — enforced end-to-end.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(246,173,85,0.15); color: var(--ts-orange);">
                                <i class="fas fa-chart-line"></i>
                            </div>
                            <h4>Access Full PMS</h4>
                            <p>Unlock the complete property management suite — front desk, housekeeping, POS, finance, staff, and more.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(0,184,148,0.15); color: var(--ts-green);">
                                <i class="fas fa-money-bill-wave"></i>
                            </div>
                            <h4>Receive Payouts</h4>
                            <p>Get paid on your schedule, including instant payout for eligible owners.</p>
                        </div>
                        <div class="ts-card">
                            <div class="ico" style="background: rgba(245,87,108,0.15); color: var(--ts-red);">
                                <i class="fas fa-trash-can"></i>
                            </div>
                            <h4>Request Removal</h4>
                            <p>If you'd prefer not to be listed, request removal in one click — we remove within 72 hours and suppress future re-import.</p>
                        </div>
                    </div>

                    <h3>Requesting removal of an unclaimed listing</h3>
                    <p>
                        You do not need to claim a property in order to have it removed. If you would like
                        your property <strong>delisted entirely</strong> from Revenda:
                    </p>
                    <ul>
                        <li>Email <a href="mailto:support@revenda.com">support@revenda.com</a> with the property name, city, and a link to the Revenda listing (or the OSM object).</li>
                        <li>Provide evidence that you are the owner or an authorised representative (business email, domain, licence, or letter of authority).</li>
                        <li>We action removal within <strong>72 hours</strong> and add the property to a suppression list so future OSM re-imports do not re-list it.</li>
                    </ul>

                    <h3>OSM attribution and your rights</h3>
                    <p>
                        OpenStreetMap data is licensed under the <strong>Open Database License (ODbL)</strong>.
                        Revenda complies with ODbL attribution requirements. However, your proprietary
                        content (photos, descriptions, room layouts, prices, policies you upload after
                        claiming) is <strong>your</strong> content — it is not part of the OSM dataset and
                        is not subject to ODbL.
                    </p>
                    <p>
                        If you have never claimed your property, the pre-existing OSM-derived data shown
                        on Revenda reflects what is publicly available under ODbL. Once you claim, your
                        own content governs the listing, and OSM-sourced baseline data is superseded.
                    </p>

                    <div class="ts-note success">
                        <i class="fas fa-circle-check"></i>
                        <div>
                            <strong>No cost to claim.</strong> Claiming your property, updating your data,
                            and removing placeholder imagery is <strong>free</strong>. Paid PMS plans are
                            only required for advanced operational features — never for basic ownership
                            and accurate representation of your property.
                        </div>
                    </div>

                    <div class="ts-note warn">
                        <i class="fas fa-triangle-exclamation"></i>
                        <div>
                            <strong>Fraudulent claims:</strong> submitting a claim for a property you do
                            not own or manage is a violation of these Terms, may result in account
                            termination, and may be reported to the relevant authorities.
                        </div>
                    </div>
                </section>

                <!-- 17. LISTINGS -->
                <section class="ts-section" id="listings">
                    <div class="ts-section-head">
                        <div class="ts-section-num">17</div>
                        <h2>Listing Content &amp; Accuracy</h2>
                    </div>
                    <ul>
                        <li>Photos, descriptions, and amenities must accurately represent the actual state of the Property.</li>
                        <li>Reviews must be genuine. Manipulating reviews (self-review, incentivised fake reviews) is prohibited.</li>
                        <li>Revenda may remove, edit, or refuse any listing content that violates these Terms or applicable law.</li>
                    </ul>
                </section>

                <!-- 18. PMS ACCEPTABLE USE -->
                <section class="ts-section" id="pms-terms">
                    <div class="ts-section-head">
                        <div class="ts-section-num">18</div>
                        <h2>PMS Acceptable Use</h2>
                    </div>
                    <p>When using Revenda PMS, you must not:</p>
                    <ul>
                        <li>Attempt to access data belonging to other Owners or their guests.</li>
                        <li>Use automated scraping, brute-force, or penetration-testing tools without written permission.</li>
                        <li>Upload malware, phishing content, or illegal material.</li>
                        <li>Reverse-engineer, decompile, or attempt to extract source code.</li>
                        <li>Resell PMS access without written authorisation.</li>
                    </ul>
                </section>

                <!-- 19. SMART TECH -->
                <section class="ts-section" id="smart-tech">
                    <div class="ts-section-head">
                        <div class="ts-section-num">19</div>
                        <h2>Smart-Room, Voice, Robot &amp; IoT Services</h2>
                    </div>
                    <ul>
                        <li>Smart-room and voice features process <strong>only the minimum data needed</strong> to fulfil the requested action during an active stay.</li>
                        <li>Voice recordings, where captured for a specific feature (e.g. voice concierge), are <strong>not retained</strong> beyond the time required to process the request, unless you explicitly opt in.</li>
                        <li>Robot concierge services operate in defined areas and may be paused for safety, maintenance, or policy reasons.</li>
                        <li>IoT device control is granted to you only while you are a valid guest of the room.</li>
                    </ul>
                </section>

                <!-- 20. AI -->
                <section class="ts-section" id="ai">
                    <div class="ts-section-head">
                        <div class="ts-section-num">20</div>
                        <h2>AI Features &amp; Disclaimers</h2>
                    </div>
                    <ul>
                        <li>AI-generated content (trip plans, summaries, recommendations) is provided <strong>for guidance only</strong> and may contain errors.</li>
                        <li>You are responsible for verifying any AI-suggested information before relying on it.</li>
                        <li>Revenda does not use your data to train general-purpose AI models owned by third parties.</li>
                        <li>AI features may be modified, suspended, or discontinued at any time.</li>
                    </ul>
                </section>

                <!-- 21. IP -->
                <section class="ts-section" id="ip">
                    <div class="ts-section-head">
                        <div class="ts-section-num">21</div>
                        <h2>Intellectual Property</h2>
                    </div>
                    <ul>
                        <li>The Revenda name, logo, brand, source code, designs, and documentation are owned by Revenda Hospitality and protected by applicable law.</li>
                        <li>You may not copy, modify, distribute, or create derivative works without written permission.</li>
                        <li>Guest and Owner content you submit (reviews, photos, listing descriptions) remains yours; you grant Revenda a worldwide, non-exclusive, royalty-free licence to use it to operate and promote the platform.</li>
                        <li>Content from third parties (e.g. OpenStreetMap data) remains subject to their respective licenses, which we honour.</li>
                    </ul>
                </section>

                <!-- 22. THIRD PARTY -->
                <section class="ts-section" id="thirdparty">
                    <div class="ts-section-head">
                        <div class="ts-section-num">22</div>
                        <h2>Third-Party Services</h2>
                    </div>
                    <p>
                        The platform integrates third-party services — payment processors, mapping data,
                        notification providers, and infrastructure. Your use of those services may be subject
                        to their own terms and privacy notices. Revenda is not responsible for the acts or
                        omissions of third-party services beyond what applicable law requires.
                    </p>
                </section>

                <!-- 23. PROHIBITED -->
                <section class="ts-section" id="prohibited">
                    <div class="ts-section-head">
                        <div class="ts-section-num">23</div>
                        <h2>Prohibited Conduct</h2>
                    </div>
                    <p>You may not use the platform to:</p>
                    <ul>
                        <li>Violate any law, regulation, sanctions program, or export control.</li>
                        <li>Commit fraud, money laundering, terrorist financing, or human trafficking.</li>
                        <li>Harass, threaten, or harm another person.</li>
                        <li>Impersonate another person or entity.</li>
                        <li>Interfere with the platform's operation, security, or integrity.</li>
                        <li>Use the platform to distribute spam, malware, or phishing.</li>
                        <li>Process payments for illegal goods or services.</li>
                    </ul>
                </section>

                <!-- 24. SUSPENSION -->
                <section class="ts-section" id="suspension">
                    <div class="ts-section-head">
                        <div class="ts-section-num">24</div>
                        <h2>Suspension &amp; Termination</h2>
                    </div>
                    <ul>
                        <li>Revenda may <strong>suspend or terminate</strong> your access if you breach these Terms, or where required by law.</li>
                        <li>Where practical, we will provide <strong>notice and an opportunity to remedy</strong> before suspension.</li>
                        <li>Guests may close their account at any time; certain records will be retained as required by law and by our Privacy Policy.</li>
                        <li>Owners may close their account after settling any pending bookings, payouts, and disputes.</li>
                        <li>On termination, sections that by their nature should survive (liability, indemnity, IP, disputes) will continue to apply.</li>
                    </ul>
                </section>

                <!-- 25. DISCLAIMERS -->
                <section class="ts-section" id="disclaimers">
                    <div class="ts-section-head">
                        <div class="ts-section-num">25</div>
                        <h2>Disclaimers</h2>
                    </div>
                    <p>
                        The platform is provided <strong>"as is"</strong> and <strong>"as available"</strong>.
                        To the maximum extent permitted by law, Revenda disclaims all warranties, express or
                        implied, including merchantability, fitness for a particular purpose, and
                        non-infringement.
                    </p>
                    <p>
                        Revenda does not warrant that the platform will be uninterrupted, error-free, or free
                        of harmful components; nor that the information on it is accurate, complete, or current.
                    </p>
                </section>

                <!-- 26. LIABILITY -->
                <section class="ts-section" id="liability">
                    <div class="ts-section-head">
                        <div class="ts-section-num">26</div>
                        <h2>Limitation of Liability</h2>
                    </div>
                    <p>
                        To the maximum extent permitted by law, Revenda and its officers, employees, and agents
                        are not liable for any indirect, incidental, special, consequential, or punitive damages,
                        including lost profits, lost data, or business interruption.
                    </p>
                    <p>
                        Our <strong>total aggregate liability</strong> arising out of or relating to these Terms
                        or your use of the platform is limited to the greater of:
                    </p>
                    <ul>
                        <li>The total fees you paid to Revenda in the 12 months preceding the event giving rise to the claim; or</li>
                        <li><strong>USD 100</strong>.</li>
                    </ul>
                    <div class="ts-note info">
                        <i class="fas fa-circle-info"></i>
                        <div>
                            <strong>Mandatory rights:</strong> nothing in these Terms excludes or limits
                            liability that cannot be excluded or limited under applicable consumer law.
                        </div>
                    </div>
                </section>

                <!-- 27. INDEMNITY -->
                <section class="ts-section" id="indemnity">
                    <div class="ts-section-head">
                        <div class="ts-section-num">27</div>
                        <h2>Indemnity</h2>
                    </div>
                    <p>
                        You agree to indemnify, defend, and hold harmless Revenda and its officers, employees,
                        and agents from any claims, damages, losses, and expenses (including reasonable legal
                        fees) arising out of or related to:
                    </p>
                    <ul>
                        <li>Your breach of these Terms.</li>
                        <li>Your violation of any law or third-party right.</li>
                        <li>Your use of the platform, including any listing, booking, or transaction conducted through it.</li>
                    </ul>
                </section>

                <!-- 28. DISPUTES -->
                <section class="ts-section" id="disputes">
                    <div class="ts-section-head">
                        <div class="ts-section-num">28</div>
                        <h2>Dispute Resolution</h2>
                    </div>
                    <ol>
                        <li><strong>Talk to us first.</strong> Most issues are resolved quickly by our support team. Email <a href="mailto:disputes@revenda.com">disputes@revenda.com</a>.</li>
                        <li><strong>Escalation.</strong> If a resolution is not reached, the matter may be escalated to our legal team for review.</li>
                        <li><strong>Mediation.</strong> Before formal proceedings, both parties agree to attempt good-faith mediation in a mutually agreed location.</li>
                        <li><strong>Arbitration / Courts.</strong> Where mediation fails, disputes will be resolved by the courts or, where the parties have agreed, by binding arbitration under the rules of a mutually acceptable body.</li>
                    </ol>
                    <p>
                        Nothing in this clause prevents either party from seeking urgent injunctive relief
                        in a court of competent jurisdiction.
                    </p>
                </section>

                <!-- 29. GOVERNING LAW -->
                <section class="ts-section" id="governing-law">
                    <div class="ts-section-head">
                        <div class="ts-section-num">29</div>
                        <h2>Governing Law &amp; Jurisdiction</h2>
                    </div>
                    <p>
                        These Terms are governed by the laws of <strong><?= tsSafe($C['governing_law']) ?></strong>,
                        without regard to conflict-of-law principles. Subject to the Dispute Resolution
                        section above, you and Revenda agree to submit to the exclusive jurisdiction of the
                        courts located in <strong><?= tsSafe($C['venue']) ?></strong>.
                    </p>
                    <p>
                        Where mandatory consumer-protection laws in your country of residence provide
                        stronger rights, those rights are not affected.
                    </p>
                </section>

                <!-- 30. CHANGES -->
                <section class="ts-section" id="changes">
                    <div class="ts-section-head">
                        <div class="ts-section-num">30</div>
                        <h2>Changes to These Terms</h2>
                    </div>
                    <p>We may update these Terms from time to time. When we do:</p>
                    <ul>
                        <li>We update the "Last updated" date at the top.</li>
                        <li>Material changes are notified by email and/or in-app banner at least <strong>14 days</strong> before they take effect.</li>
                        <li>Where a change requires your active acceptance, we obtain it before the change takes effect.</li>
                        <li>Continued use after the effective date means you accept the revised Terms.</li>
                    </ul>
                </section>

                <!-- 31. CONTACT -->
                <section class="ts-section" id="contact">
                    <div class="ts-section-head">
                        <div class="ts-section-num">31</div>
                        <h2>Contact</h2>
                    </div>
                    <p>
                        We're here to help — whether you're booking a stay, listing a property, or running
                        operations through the PMS.
                    </p>
                </section>

                <!-- CONTACT PANEL -->
                <div class="ts-contact">
                    <h3>Reach the right team</h3>
                    <p>
                        Choose the channel that matches your request and we will route it to the right
                        specialist within one business day.
                    </p>
                    <div class="ts-contact-grid">
                        <a href="mailto:<?= tsSafe($C['email_legal']) ?>" class="ts-contact-item">
                            <div class="ico"><i class="fas fa-gavel"></i></div>
                            <div>
                                <div class="label">Legal</div>
                                <div class="value"><?= tsSafe($C['email_legal']) ?></div>
                            </div>
                        </a>
                        <a href="mailto:<?= tsSafe($C['email_support']) ?>" class="ts-contact-item">
                            <div class="ico" style="background: var(--ts-grad-cyan);"><i class="fas fa-headset"></i></div>
                            <div>
                                <div class="label">Support</div>
                                <div class="value"><?= tsSafe($C['email_support']) ?></div>
                            </div>
                        </a>
                        <a href="mailto:<?= tsSafe($C['email_disputes']) ?>" class="ts-contact-item">
                            <div class="ico" style="background: linear-gradient(135deg, #ffd700, #f6ad55); color: #0a0a1a;"><i class="fas fa-scale-balanced"></i></div>
                            <div>
                                <div class="label">Disputes</div>
                                <div class="value"><?= tsSafe($C['email_disputes']) ?></div>
                            </div>
                        </a>
                        <a href="mailto:<?= tsSafe($C['email_privacy']) ?>" class="ts-contact-item">
                            <div class="ico" style="background: linear-gradient(135deg, #00d4ff, #00b894);"><i class="fas fa-user-shield"></i></div>
                            <div>
                                <div class="label">Privacy</div>
                                <div class="value"><?= tsSafe($C['email_privacy']) ?></div>
                            </div>
                        </a>
                    </div>

                    <p style="font-size:12.5px; color:var(--ts-text-dim); margin-top:20px; margin-bottom:0;">
                        Revenda Hospitality · <?= tsSafe($C['address']) ?> · Legal:
                        <a href="mailto:<?= tsSafe($C['email_legal']) ?>"><?= tsSafe($C['email_legal']) ?></a>
                    </p>
                </div>

            </main>
        </div>
    </div>

    <!-- BACK TO TOP -->
    <button class="ts-back" id="tsBack" onclick="window.scrollTo({top:0,behavior:'smooth'})" aria-label="Back to top">
        <i class="fas fa-arrow-up"></i>
    </button>
</div>

<script>
document.addEventListener('DOMContentLoaded', function() {
    const back = document.getElementById('tsBack');
    if (back) {
        let ticking = false;
        window.addEventListener('scroll', () => {
            if (!ticking) {
                requestAnimationFrame(() => {
                    back.classList.toggle('show', window.scrollY > 500);
                    ticking = false;
                });
                ticking = true;
            }
        }, { passive: true });
    }

    const sections = document.querySelectorAll('.ts-section[id]');
    const tocLinks = document.querySelectorAll('.ts-toc a[data-toc]');
    if (sections.length && tocLinks.length && 'IntersectionObserver' in window) {
        const map = {};
        tocLinks.forEach(a => map[a.dataset.toc] = a);
        const obs = new IntersectionObserver((entries) => {
            entries.forEach(e => {
                if (e.isIntersecting) {
                    tocLinks.forEach(a => a.classList.remove('active'));
                    const a = map[e.target.id];
                    if (a) a.classList.add('active');
                }
            });
        }, { rootMargin: '-20% 0px -70% 0px', threshold: 0 });
        sections.forEach(s => obs.observe(s));
    }

    tocLinks.forEach(a => {
        a.addEventListener('click', (e) => {
            const target = document.getElementById(a.dataset.toc);
            if (target) {
                e.preventDefault();
                const top = target.getBoundingClientRect().top + window.scrollY - 90;
                window.scrollTo({ top, behavior: 'smooth' });
                history.replaceState(null, '', '#' + a.dataset.toc);
            }
        });
    });
});
</script>

<?php require_once __DIR__ . '/../includes/footer.php'; ?>