=== GRT Consent Tool ===
Contributors: ridhwanahsann
Author: ridhwanahsann
Tags: gdpr, cookie consent, ccpa, eprivacy, compliance
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 0.1.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Lightweight, modern consent management for GDPR, CCPA, and ePrivacy. Includes customizable banners, smart script blocking, and consent logging.

== Description ==
Consent Guard provides a configurable consent banner, script blocking by category, and consent logging for audit readiness.

Features:
* Customizable banner copy, colors, and position.
* Script blocking with pattern rules and whitelists.
* Consent logging with export and retention controls.
* Integrations for WP Consent API and Google Consent Mode.

== Installation ==
1. Upload the plugin folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the Plugins menu in WordPress.
3. Open **Consent Guard** in the admin menu to configure settings.

== Frequently Asked Questions ==
= Does this block scripts automatically? =
Yes. Add patterns or custom rules under Script Blocking.

= Where are consent logs stored? =
Logs are stored as a private post type and can be exported from the admin UI.

== Screenshots ==
1. Consent banner preview.
2. Admin dashboard and settings.

== Changelog ==

= 0.1.5 =
* Design: Introduced premium, modern deactivation feedback modal with smooth animations.
* UI/UX: Reorganized asset structure for better performance and selective script loading.
* Improvement: Integrated custom plugin branding and icons for insights collection.
* Bug Fix: Resolved "Undefined property" warnings in the SDK core.
* Maintenance: General code optimization and standard compliance.

= 0.1.4 =
* Feature: Migrated analytics endpoint to production server for better data tracking.
* Security: Hardened log export functionality with strict capability and referer checks.
* Security: Implemented advanced sanitization for color pickers and numeric settings.
* Performance: Removed legacy hooks and optimized script loading logic.
* Maintenance: Verified compatibility with WordPress 6.9+.

= 0.1.3 =
* Integration: Successfully connected Kenjo Insights SDK with dynamic endpoint support.
* Fix: Resolved database collation mismatch ('Illegal mix of collations') in log queries.
* Improvement: Moved SDK initialization to 'init' hook for improved reliability.
* Clean: Comprehensive code refactoring and removal of unused private methods.

= 0.1.2 =
* Improved script blocking performance by caching consent preferences.
* Added strict type hinting for better code reliability.
* Enhanced sanitization and validation in admin settings.
* Updated internal versioning and documentation.

= 0.1.1 =
* Added "Re-consent on policy change" feature to re-prompt users when the policy version is updated.
* Improved cookie preference persistence across browser sessions.
* Fixed minor CSS issues in the admin dashboard.

= 0.1.0 =
* Initial release.

== Upgrade Notice ==

= 0.1.5 =
New premium deactivation modal and improved branding support.

= 0.1.4 =
Security hardening and production server migration. Highly recommended for all users.
