=== ShareThis Privacy Policy Generator ===
Plugin Name: ShareThis Privacy Policy Generator
Contributors: sharethis, scottstorebloom
Tags: privacy policy, gdpr, ccpa, coppa, compliance
Author URI: https://sharethis.com/
Author: ShareThis
Requires at least: 5.9
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
Version: 1.0.0
License: GPLv2 or later

Generate a customizable privacy policy for your WordPress site, powered by the ShareThis platform.

== Description ==

ShareThis Privacy Policy Generator creates a compliance-friendly privacy policy you can publish on any WordPress page in minutes. Answer a short set of questions about what your site collects and which compliance regimes apply (GDPR, CCPA, COPPA, Nevada), then embed the generated policy with a shortcode, PHP snippet, or Gutenberg block.

= Features =

* Live preview while you edit
* Embed via shortcode, PHP snippet, or block
* GDPR, CCPA, COPPA, and Nevada privacy sections
* Downloadable PDF copy
* Cached rendering — one network call per save, not per pageview
* Mobile-friendly default styles

= How it works =

The plugin sends your structured answers (company name, collected fields, compliance toggles, contact info) to the ShareThis platform, which returns the generated privacy policy. The result is cached locally so site visitors are served the policy directly from WordPress.

Connecting to ShareThis is opt-in. After activation an admin notice asks you to review and accept ShareThis's privacy policy and terms of use. Nothing is sent to ShareThis until you click "I accept".

= External services =

To generate your privacy policy, this plugin connects to the ShareThis platform (platform-api.sharethis.com), the service behind the plugin. The policy text and PDF are produced by ShareThis from the answers you provide, so the plugin communicates with ShareThis's servers rather than generating everything locally.

Connecting is opt-in — nothing is sent until you accept the consent notice. Once you opt in, the following is shared with ShareThis:

* The details you enter to build the policy: your company name, contact information, and the data-collection and compliance options you select.
* Your site domain and WordPress admin email, used to set up your policy on the ShareThis platform.

If you embed the policy using the JavaScript mode, a ShareThis script also runs in your visitors' browsers; the default static embed does not.

Your use of the ShareThis platform is governed by these terms — please review them before opting in:

* Privacy policy: https://sharethis.com/privacy/
* Terms of use: https://sharethis.com/publisher-terms-of-use/

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` (or install through the WordPress plugin directory).
2. Activate the plugin.
3. Visit **Privacy Policy** in the admin sidebar.
4. Review the consent notice and click **I accept** to connect to the ShareThis platform.
5. Fill out the form, save, and embed using the shortcode `[sharethis-privacy-policy]`.

== Frequently Asked Questions ==

= Does this replace legal advice? =

No. The generator helps you produce a draft policy based on common patterns. Have an attorney review it before publishing.

= Where is the generated HTML stored? =

In a WordPress transient (`sharethis_ppg_html`). It is refreshed whenever you save the settings, or you can flush it via the REST endpoint.

= Can I render with JavaScript instead of static HTML? =

Yes: `[sharethis-privacy-policy mode="js"]` loads the ShareThis ppg.js loader and injects the policy client-side. The default is server-rendered HTML for SEO.

== Screenshots ==

1. The Company tab — set your company name and the effective date that appears as "Last Updated" at the top of the policy.
2. The Embed tab — copy the shortcode or PHP snippet, or use the Gutenberg block, to place the policy on any page.
3. The Compliance tab — toggle the CCPA, GDPR / EU, Nevada, and COPPA sections to match the regimes that apply to you.
4. The Practices tab — declare whether your site uses advertising/analytics partners, Google Analytics, on-site ads, or marketing emails.
5. The Information collected tab — tick the contact details and other data categories your site collects from visitors.

== Changelog ==

= 1.0.0 =
* Initial release.
