=== LegalConsentKit ===
Contributors: lunevpro
Tags: consent, privacy, cookies, woocommerce, checkout
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add consent checkboxes to registration and checkout forms, plus a simple cookie notice.

== Description ==

LegalConsentKit is a lightweight plugin that helps website owners add clear consent controls to common registration and WooCommerce forms.

The plugin interface and default frontend texts are in Russian, while this readme is written in English for directory compatibility.

Main features:

* Required consent checkbox for the standard registration form.
* Required consent checkbox for the WooCommerce registration form on the My Account page.
* Optional required consent checkbox for WooCommerce checkout.
* Custom links for privacy policy, offer / terms, and personal data consent pages.
* Optional second checkbox, for example for informational newsletters.
* Simple cookie notice with configurable text, button label, link and position.
* Consent date and IP can be saved for users and WooCommerce orders.

Important: this plugin helps you display and validate consent checkboxes. It does not generate legal documents and does not replace legal advice. The website owner is responsible for the content of privacy policy, offer, consent and cookie pages.

== Installation ==

1. Upload the `legal-consent-kit` folder to `/wp-content/plugins/` or install the ZIP file through the admin area.
2. Activate the plugin.
3. Open Settings -> LegalConsentKit.
4. Add your legal page links and enable the options you need.

== Frequently Asked Questions ==

= Are the plugin settings in English? =

No. The admin settings and default frontend texts are intentionally in Russian. The readme is in English only for plugin directory compatibility.

= Does it work with WooCommerce? =

Yes. The plugin supports WooCommerce registration and checkout consent fields.

= Does it create legal pages automatically? =

No. You need to create your own policy, offer, personal data consent and cookie pages, then add their links in the plugin settings.

== Changelog ==

= 1.1.3 =
* Renamed internal CSS classes, JavaScript handles and metadata keys to match the LegalConsentKit slug.
* Improved IP validation before saving consent metadata.
* Improved cookie notice storage by using a browser cookie with a localStorage fallback.
* Added uninstall cleanup for plugin settings.
* Added an admin notice explaining that the plugin does not replace legal documents.

= 1.1.2 =
* Renamed the plugin to LegalConsentKit.
* Updated plugin slug and text domain to legal-consent-kit.

= 1.1.1 =
* Updated plugin headers and metadata.
* Added GPL license headers.
* Updated the readme in English for WordPress.org compatibility.
* Added nonce verification for registration and checkout form processing.
* Added backward compatibility for settings saved by previous versions.

= 1.1.0 =
* Added required consent checkbox for WooCommerce checkout.
* Added saving consent date and IP to WooCommerce order meta.

= 1.0.0 =
* Initial release.
