> For the complete documentation index, see [llms.txt](https://ispectra.gitbook.io/mutamad/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ispectra.gitbook.io/mutamad/concepts/privacy.md). Agents can also search and read this documentation through its [MCP server](https://ispectra.gitbook.io/mutamad/~gitbook/mcp).

# Privacy and consent

Nothing from another site reaches a visitor before they agree.

## The rule

**Nothing from another site reaches a visitor before they agree.** Mutamad was built around a real finding: an embedded YouTube video loaded Google's advertising scripts before the visitor had agreed to anything. Under the PDPL that is not acceptable.

<figure><img src="https://171036656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSekKpxOCXC1q6G2NRy9%2Fuploads%2Fgit-blob-7abada88fc320c608a1985beccb2a5be85cc2ce0%2Fcookie-notice-en.jpg?alt=media" alt="The cookie notice at the bottom of the page"><figcaption><p>The cookie notice, in the style of DGA's Cookies Banner Template.</p></figcaption></figure>

## How it works

`mutamad_privacy` sets up **Klaro!**, the consent manager Drupal CMS uses:

* A notice at the bottom of the page — **Accept**, **Reject**, **Manage cookies** — where declining is as easy as accepting.
* No focus grab and no second page heading, so the page stays accessible (WCAG 2.1 AA).
* Every third-party service is **off** until the visitor agrees to it: YouTube, Vimeo and Google Maps are blocked in fields, attached scripts and the page HTML. A blocked video shows its thumbnail and a button to load it once.
* A choice is kept for a year.
* A **Privacy settings** link in the footer reopens the choice.
* The words are DGA's, with a text true to the site: only the cookies it needs, nothing from another site before consent.
* Klaro is patched to run under the strict Content Security Policy.

## What a new site sends elsewhere

|                          | Default               | When it is on                                                                                                    |
| ------------------------ | --------------------- | ---------------------------------------------------------------------------------------------------------------- |
| Embedded videos and maps | Blocked until consent | Per visitor, per service                                                                                         |
| Google Analytics         | **Not applied**       | Only after the entity's data protection officer accepts the transfer, and then only after each visitor's consent |
| AI                       | **Not applied**       | Only to the entity's own model server                                                                            |
| Spam protection          | On the site itself    | ALTCHA, Honeypot and Antibot send nothing to an outside service                                                  |
| Fonts, icons, scripts    | From the site         | No CDN                                                                                                           |
| Translations, updates    | From drupal.org       | Server-side, at installation and by cron                                                                         |

## Personal data in the content model

* **Leadership** pages hold a photo, position and biography — no personal contact details.
* **e-Consultation** comments keep no IP address; only the reviewer and the App Admin read them.
* **Newsletter** subscriptions are confirmed by email (double opt-in, PDPL Art. 6).
* **AI** requests stop when they contain a national ID, Iqama or card number, and are logged without their text.
* **The AI chatbot** stores no question.

## Cross-border transfer (PDPL Art. 29)

Two optional features may send personal data outside the Kingdom, and both are off until the entity decides:

* **Google Analytics** (`mutamad_analytics`): visits go to Google. An in-Kingdom alternative is Matomo on the entity's own server.
* **AI** (`mutamad_ai`): Mutamad sends requests only to the server named in `settings.php`. It does not check where that server is: keep it in the Kingdom.

## A privacy policy page

Every site ships a Privacy policy page, in Arabic and English, linked from the cookie notice and the footer. It describes what Mutamad does; the entity adapts it to its own processing and has it reviewed.
