=== maca Polly ===
Contributors: macas
Tags: gdpr, privacy, cookie consent, cookie banner, compliance
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 0.8.23
License: GPLv2 or later

Scan your WordPress site and generate privacy, cookie, and GDPR policy drafts with a consent banner.

== Description ==

maca Polly helps site owners:

* Scan active plugins and map known third-party services
* Generate draft **privacy**, **cookie**, and **GDPR** documents (Swedish or English)
* Publish policy pages on your site
* Show a cookie consent banner to visitors

**Important:** Generated documents are drafts based on automated scans — not legal advice. Always review before publishing.

== Installation ==

1. Upload the `maca-polly` folder to `/wp-content/plugins/`
2. Activate the plugin
3. Go to **maca Polly → Setup guide** and run a scan
4. Review **Policies** and publish pages
5. Enable the banner under **Settings**

== Changelog ==

= 0.8.22 =
* Fix: consent banner no longer reappears when policy page modified dates change (e.g. other plugins). Revision bumps only on intentional republish.
* Hardened consent cookie (Secure on HTTPS, SameSite=Lax, WordPress cookie path/domain) and server-side Set-Cookie on save.

= 0.8.20 =
* Nyhet: create-zip.ps1 för distribution och automatiska uppdateringar via api.maca.se.

= 0.8.14 =
* Fix workflow layout gap between stepper cards and content panel (explicit spacer, no overlap).

= 0.8.7 =
* Swedish translations for all admin pages (auto when WordPress or policy language is Swedish).
* Fix broken HTML in settings consent section.

= 0.8.6 =
* Fix PHP parse error in service registry (support plugin definitions).

= 0.8.5 =
* Detect support pages and ticket portals (Fluent Support, Awesome Support, Support Candy, Help Scout, etc.).
* Show support pages in scan results and include a support data section in generated policies.

= 0.8.4 =
* IMY-aligned banner: reject on first layer with equal button weight.
* Expanded browser scan for EDPB 2/2023 tracking (pixels, URL tracking, fingerprinting, IndexedDB).
* Global Privacy Control (Sec-GPC) support and anonymous consent event log.
* AI Act transparency section in policies when AI plugins are detected.

= 0.8.3 =
* Warn when a new scan differs from published policy documents and prompt republication.
* Clarify that republishing policies asks visitors to confirm cookie consent again.

= 0.8.2 =
* Expanded scan: up to 10 pages including marketing, contact, checkout and form pages.
* Simulated consent during browser scan so ad/marketing scripts and cookies are detected.
* Added ad network patterns (Meta, Google Ads, LinkedIn, TikTok, Taboola, Criteo, etc.).

= 0.8.1 =
* Renamed plugin display name to maca Polly in admin menu and UI.

= 0.8.0 =
* Guided setup flow with stepper: Scan → Documents → Settings.
* Dashboard redesigned as a vertical setup guide with progress tracking.
* After scan, continue automatically to Documents; after publish, continue to Settings.

= 0.7.9 =
* Merge server and front-end scan into one flow with a progress thermometer.
* Single "Run site scan" button on Dashboard and Scan pages.

= 0.7.8 =
* Hide MacaPolly draft disclaimer on maca.se, *.maca.se, bytpass.se and *.bytpass.se.

= 0.4.0 =
* Block analytics and marketing scripts until consent (GA, GTM, MonsterInsights, Site Kit, Meta Pixel, Hotjar, etc.).
* Unchecking statistics in the banner blocks analytics for the visit after reload.
* Clears common GA cookies when statistics consent is withdrawn.

= 0.3.0 =
* Front-end scan: loads public pages in a hidden iframe, detects cookies, storage keys, and third-party scripts.
* Cookie pattern registry for automatic classification (_ga, _fbp, WooCommerce, etc.).

= 0.2.0 =
* Expanded policy templates: legal bases, retention, transfers, processing tables, conditional sections per plugin/cookie type.
* Service registry with metadata for common WordPress plugins.
* Settings: postal address and organization number.

= 0.1.0 =
* Initial scaffold: scan, policy generation (sv/en), publish pages, consent banner.
