# -*- coding: utf-8 -*-
from build import page, EMAIL, PHONE_DISPLAY

PRIVACY_BODY = f"""
<section class="page-hero">
  <div class="container">
    <div class="breadcrumb"><a href="index.html">Home</a> / Privacy Policy</div>
    <h1>Privacy Policy</h1>
    <p class="lede">Last updated: 25 August 2026</p>
  </div>
</section>
<section>
  <div class="container" style="max-width:820px;">
    <h2>1. What we collect</h2>
    <p>When you register with NRI Property Guard, we collect your name, email address, phone number, and the property details you submit (address, GPS coordinates, documents and photos). When our Property Executives conduct an inspection, we capture GPS-tagged photos and video, timestamps, and device/network metadata as part of the tamper-evident evidence record.</p>
    <h2>2. How we use your information</h2>
    <p>We use your information to verify and manage your registered property, generate inspection reports, process billing, respond to support requests, and send you service notifications (property status, approvals, reports, invoices). We do not sell your personal data.</p>
    <h2>3. Who can see your property data</h2>
    <p>Access is strictly role-scoped: only your assigned Property Manager and Property Executive, our Admin team, and you can see your property's data — enforced at the database level, not only in the app's interface. You only ever see photos and videos that a Property Manager has approved.</p>
    <h2>4. Data storage &amp; security</h2>
    <p>Your data is stored with Supabase (hosted on AWS infrastructure) with row-level security enforced on every table, encrypted in transit via HTTPS, and access-controlled storage buckets for documents, photos and videos.</p>
    <h2>5. Third-party services</h2>
    <p>We use Google Maps/Places APIs for location intelligence and static map images. The "Pay Now" button on your Invoices tab opens a UPI payment link handled entirely by your own UPI app (GPay, PhonePe, etc.) — no payment details are transmitted to or processed by our servers. Any future integration with a payment gateway for card or netbanking payments will be disclosed here before it is enabled.</p>
    <h2>6. Your rights</h2>
    <p>You may request a copy of your data, correction of inaccurate details, or account deletion by contacting us at <a href="mailto:{EMAIL}">{EMAIL}</a>.</p>
    <h2>7. Contact</h2>
    <p>Questions about this policy: <a href="mailto:{EMAIL}">{EMAIL}</a> or <a href="tel:+919948039325">{PHONE_DISPLAY}</a>.</p>
  </div>
</section>
"""
page("privacy-policy.html", "Privacy Policy | NRI Property Guard", "How NRI Property Guard collects, uses and protects your personal and property data.", "privacy-policy.html", PRIVACY_BODY)

TERMS_BODY = f"""
<section class="page-hero">
  <div class="container">
    <div class="breadcrumb"><a href="index.html">Home</a> / Terms of Service</div>
    <h1>Terms of Service</h1>
    <p class="lede">Last updated: 25 August 2026</p>
  </div>
</section>
<section>
  <div class="container" style="max-width:820px;">
    <h2>1. Service description</h2>
    <p>NRI Property Guard provides independent property verification, on-site inspection, and remote property management services for property owners, delivered through recurring physical site visits, a web and mobile owner dashboard, and generated inspection reports.</p>
    <h2>2. What our reports are — and are not</h2>
    <p>Our inspection reports document what our Property Executives directly observed and captured (photos, video, GPS location, condition notes) at the time of each visit, verified through a tamper-evident, cryptographically hash-chained record. Our reports are not a substitute for independent legal due diligence, and any statement of tamper-evidence or chain-of-custody is a technical claim about data integrity, not a legal conclusion about admissibility in any court — that determination rests with qualified legal counsel. Where a data point (such as a national RERA record) cannot be independently retrieved, we state this plainly rather than imply verification that did not occur.</p>
    <h2>3. Billing</h2>
    <p>Regular-tier properties are billed at the published flat monthly rate per property; Prime adds a flat monthly amount to your account regardless of property count. Invoices are generated automatically and available for download from your dashboard. Fees are subject to change with prior notice.</p>
    <h2>4. Your responsibilities</h2>
    <p>You are responsible for providing accurate property details and documentation, and for maintaining the confidentiality of your account credentials. You agree to use Emergency SOS only for genuine emergencies.</p>
    <h2>5. Limitation of liability</h2>
    <p>While we take reasonable, verifiable steps to document your property's condition, we are not liable for events occurring at your property between scheduled visits, or for outcomes of legal, tax or regulatory matters outside the scope of the inspection service itself.</p>
    <h2>6. Termination</h2>
    <p>You may remove a property or close your account at any time from your dashboard or by contacting support; outstanding invoices remain payable.</p>
    <h2>7. Governing law</h2>
    <p>These terms are governed by the laws of India.</p>
  </div>
</section>
"""
page("terms.html", "Terms of Service | NRI Property Guard", "The terms governing use of NRI Property Guard's property verification, inspection and management services.", "terms.html", TERMS_BODY)
