=== Loi 25 Comply ===
Contributors: cfgilles, azinternet
Tags: privacy, cookies, consent, quebec, law-25
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WordPress compliance plugin for Quebec's Law 25 (privacy legislation). Cookie consent banner, privacy policy generator, and RPRP designation.

== Description ==

Loi 25 Comply is a WordPress plugin designed specifically for Quebec businesses and organizations that must comply with Law 25 (Act to modernize legislative provisions as regards the protection of personal information), fully in force since September 2024.

The plugin covers the three core obligations available in the free version, with no external SaaS dependency and no data sent to third-party servers.

**Free features:**

* RPRP (Privacy Officer) designation form with public shortcode - Obligation 1
* Automatically generated privacy policy (French and English) - Obligation 2
* Configurable cookie consent banner (5 positions) - Obligation 3
* Third-party script blocking before consent
* Category-based consent modal (necessary, analytics, functional, advertising)
* Locally stored, timestamped consent log
* Permanent revocation button via [loi25_manage_consent] shortcode
* Bilingual French / English admin and public interface
* Compatible with WPML, Polylang, WP Rocket, LiteSpeed, Elementor

**Pro features (separate plugin):**

Additional obligations covered by the separate Loi 25 Comply Pro plugin, available at azinternet.ca:

* Privacy incident register - Obligation 4
* Data retention schedule - Obligation 5
* Privacy Impact Assessment (PIA / EFVP) - Obligation 6
* Data subject rights management (access, rectification, erasure, portability) - Obligation 7
* Employee training register - Obligation 8

== Installation ==

1. Download the ZIP file
2. In WordPress, go to Plugins > Add New
3. Click Upload Plugin
4. Select the ZIP file and click Install Now
5. Activate the plugin
6. Go to Loi 25 Comply > Privacy Officer (RPRP) to get started

== Frequently Asked Questions ==

= What obligations does the free version cover? =

The free version covers obligations 1 (Privacy Officer designation), 2 (Privacy policy generation), and 3 (Cookie consent banner). Obligations 4 through 8 are available in the separate Loi 25 Comply Pro plugin.

= Does the plugin work with Elementor? =

Yes, the cookie banner and privacy policy injection are fully compatible with Elementor and Elementor Pro.

= Is data stored locally? =

Yes. All data generated by the plugin (consent log, RPRP information) is stored exclusively in your local WordPress database. No personal data from your visitors is transmitted to external servers.

= Is this plugin for Quebec businesses only? =

Yes. This plugin is designed specifically to help Quebec businesses comply with Quebec's Law 25. The admin interface and generated documents are in Canadian French, with bilingual French/English support for public-facing content.

= How do I display the privacy policy on a page? =

Go to Loi 25 Comply > Politique, fill in your organization information, and select a WordPress page. The policy is injected automatically. You can also use the [loi25_politique] shortcode manually.

== Screenshots ==

1. Compliance dashboard showing Loi 25 obligations with status indicators.
2. Cookie consent banner displayed at the bottom of the page on the frontend.
3. Cookie banner admin settings with French and English text tabs.
4. Privacy Officer (RPRP) designation form in the WordPress admin.

== Changelog ==

= 1.2.0 =
* Major: plugin restructured as a fully functional free plugin (Lite) for WordPress.org
* Added: Privacy Policy generator (Module 2) now included in the free version
* Removed: all Pro module code (modules 4-9) - available in separate Loi 25 Comply Pro plugin
* Removed: Freemius SDK and license checks
* Fix: inline scripts moved to wp_add_inline_script() (WordPress.org compliance)
* Fix: WordPress.org directory assets (banner, icons) removed from plugin ZIP
* Fix: Contributors field updated with WordPress.org username cfgilles

= 1.1.5 =
* Fix: CSS anchored to #loi25-banner and #loi25-modal IDs to prevent theme override conflicts

= 1.1.4 =
* Fix: phpcs:ignore extended on DROP TABLE in uninstall cleanup

= 1.1.3 =
* Fix: text domain corrected from 'loi25-comply' to 'loi-25-comply' in all PHP files

= 1.1.2 =
* Fix: uninstall.php removed - cleanup logic moved to Freemius after_uninstall hook

= 1.1.1 =
* Fix: esc_attr() added on CSS class output in dashboard

= 1.1.0 =
* Fix: various WordPress.org compliance fixes

= 0.9.0 =
* Add: category-based consent modal
* Add: third-party script blocking by category
* Add: [loi25_manage_consent] shortcode

= 0.1.0 =
* Initial release

== Upgrade Notice ==

= 1.2.0 =
Major restructuring: plugin is now fully free and functional. Pro features (obligations 4-8) are available in the separate Loi 25 Comply Pro plugin.
