# Privacy Policy (Main · Public site)

**Portal:** Main · **Route:** `GET /privacy` (`main.site.privacy`) → `Main\PrivacyController@index` →
`Pages/Main/Site/Privacy.vue` · **Nav:** no header tab; the **Privacy** link in every footer (the Inertia
site's `SiteLayout` and all six cinematic pages) · **Gated by:** NOTHING, it is **PUBLIC**
(`public.site`) · **Writes:** none.

## What it does

The company's privacy policy under Malaysia's PDPA 2010, covering the PropertyLab app, the websites, events
and dealings with the team. Built 2026-10-07 because the **App Store listing requires a Privacy Policy URL**
(App Information → Privacy Policy URL) and none existed: every footer's Privacy link was a `#privacy`
placeholder and `/privacy` was a 404. **That listing points at `https://<site>/privacy`; never move or rename
the route without updating App Store Connect.**

## How it works

- **The route sits OUTSIDE the cinematic flag** (`routes/main.php`, beside `membership/plans`): the App Store
  link must answer on every deployment whatever `/` shows. One literal segment, declared before the `{slug}`
  funnel catch-all, and `privacy` is a reserved funnel slug (`Funnels\StoreRequest::RESERVED_SLUGS`).
- **The wording is in the page**, not in config or the translation catalog. It is a legal text, so it is
  **English only** on purpose (the site catalog is machine-assisted). `UPDATED` at the top of the script is the
  "Last updated" date — move it whenever the wording changes.
- **The legal identity comes from [`config/company.php`](/config/company.php)** (name, company number,
  address, email), the same source as the [About](/docs/modules_handbook/main/about/readMe.md) page, with
  empty values dropped by the controller. Change the company's details there, never in the page.
- **Every claim was taken from the code (2026-10-07), not invented.** What it says, and where that is true:

  | The policy says | Where it comes from |
  |---|---|
  | Sign-in code by email, SMS or WhatsApp | `PasswordlessLoginController::request` (`via` email / phone, `phone_channel` sms / whatsapp) |
  | Meta Pixel + Conversions API, hashed email / phone / first name | `partials/meta-pixel.blade.php` (not on `/manage`), `Src\Marketing\Services\MetaConversionsApi` |
  | AI providers: Google Gemini, Anthropic Claude, OpenAI, DeepSeek | `config/ai.php` (analysis, evaluation, AI Debate) |
  | Messaging and calls: WhatsApp, LINE, Twilio, SMS360, Retell AI; the AI agent says it is an AI | `config/services.php`; [voice-agent](/docs/modules_handbook/shared/voice-agent/readMe.md) (disclosure is a Retell ToS rule) |
  | Payments: Stripe, Payex, Touch 'n Go eWallet; no full card numbers | `Src\Payment\PaymentGateway`, `PurchaseHistory` providers |
  | Maps: Mapbox, Google Maps | `config/services.php` |
  | Hosting and files: Google Cloud | `config/media.php` (`gcs` disk) |
  | The app has no location, ads, cross-app tracking or third-party analytics | the Flutter app (`propertylab-mobile`), checked when the App Store kit was written |
  | Access request answered within 21 days | PDPA s.31 |

  ⚠️ **When a feature starts sending personal data to a new provider, or collecting a new kind of data, add it
  here and move `UPDATED`.** The policy is only as true as this table.

- **Retention has no fixed period** ("while the account is active, then as long as needed or as the law
  requires"), and **hosting country is not named** (section 4 says some providers process data outside
  Malaysia). Both are business / legal decisions nobody has made; replace the wording when they are.
- **Cinematic footers:** the generated pages are frozen, so `CinematicSiteController::withSwitcher()` rewrites
  `href="#privacy"` to this route at render time, the same way it rewrites `#login`. `#terms` and `#pdpa` are
  still placeholders.
- **Sitemap:** `SitemapController` lists `/privacy` on every deployment.

⚠️ **Open legal points (for a lawyer, not code):** PDPA s.7(3) expects the notice in **both Bahasa Malaysia
and English** (this page is English only); the privacy email is `config('company.email')`
(`hello@propertylab.tech`, the agency inbox), while the cinematic Contact page lists `support@propertylab.tech`.

## Related files

**Backend**
- [app/Http/Controllers/Main/PrivacyController.php](/app/Http/Controllers/Main/PrivacyController.php)
- [config/company.php](/config/company.php) — legal name, company number, address, email
- [app/Http/Controllers/Main/CinematicSiteController.php](/app/Http/Controllers/Main/CinematicSiteController.php) — `withSwitcher()` footer link rewrite
- [app/Http/Controllers/Main/SitemapController.php](/app/Http/Controllers/Main/SitemapController.php)
- [app/Http/Requests/Manage/Events/Funnels/StoreRequest.php](/app/Http/Requests/Manage/Events/Funnels/StoreRequest.php) — reserved slug

**Frontend**
- [resources/js/Pages/Main/Site/Privacy.vue](/resources/js/Pages/Main/Site/Privacy.vue) — the policy text
- [resources/js/Layouts/SiteLayout.vue](/resources/js/Layouts/SiteLayout.vue) — footer link (Company column)

**Routes**
- [routes/main.php](/routes/main.php) — `GET privacy`. **Route cache:** run `php artisan route:cache` after deploying.

**Tests**
- [tests/Feature/Main/PrivacyPageTest.php](/tests/Feature/Main/PrivacyPageTest.php)
