# GhostWriter Privacy Policy

_Last updated: 14 October 2026 · `tos-2026-10-14`_

This policy explains what data GhostWriter ("the extension", "we") collects,
why, and your rights. By using GhostWriter you agree to this policy.

## What we collect

- **Account data**: the email address and password (stored as a salted hash)
  you provide when creating an account, plus your credit balance and plan.
- **Profile data you choose to analyze**: when you click "Generate Email" on a
  LinkedIn profile, we process the **public information visible on that
  profile page** (name, headline, company, and public posts you are already
  viewing) to generate a voice profile and conversation hooks.
- **Your writing samples**: if you use the "Clone my voice" feature, we store
  the samples you paste to build your personal voice profile.
- **Drafts**: the original and enhanced email drafts you generate, and the
  personalization score. Used to show your history and improve quality.
- **Feedback**: if you submit feedback from the extension, we store your
  message, category, contact email, and technical context (extension version,
  browser, page URL). With your consent, feedback may be posted as a GitHub
  issue in our public tracker (see below).
- **Payment data**: processed entirely by Stripe (see below). We never see or
  store your card details.
- **Diagnostics**: request logs contain your IP address, request paths, and
  status codes for security and abuse prevention.

## How we use it

- To provide the service: voice analysis, email enhancement, credit
  accounting, and your submission history.
- To operate and secure it: rate limiting, abuse prevention, error tracking
  (Sentry, when enabled), and customer support.
- To improve it: aggregate usage analytics; feedback is used to fix bugs and
  prioritize features.

## Developer error log

When any function of this app fails — whether or not you are shown an error message — a record is
written to a **developer error log**. It exists so a defect can be reproduced and fixed, and so that
when the app does show you an error it can also tell you how to get past it.

This log is automatic; it is not one of the user-initiated diagnostics or the feedback form above.
A record contains only what identifies the *failing function*: the app name and version, the
surface it failed on, **the app function that failed**, a stable error code, a severity, the error's
type name, the error text after mechanical redaction, the innermost code location, and a coarse
platform bucket such as `chrome/windows`.

A record does **not** contain your user id or account, any session or visitor id, your email
address, your IP address, the full user-agent string, a page's query string or referring page, or
the content of your files, messages or prompts. There is no field for any of these, and the storage
behind the log has no column that could hold one. The log answers *which app function is failing*,
never *who hit it*.

Credentials, API keys, bearer tokens, JWTs, email addresses, IP addresses, local account names in
file paths, and query strings are removed mechanically before a record leaves your device. Desktop,
Node and Python builds append to a local file (`logs/dev-errors.jsonl`) on your own machine; web
surfaces send records to `POST /api/dev-errors`, stored in a table with no identifier column.

**How to stop the transmission.** Enable **Do Not Track** in your browser (or Global Privacy
Control), call `OrbitErrors.optOut()` on any surface that loads the error contract, or block
`POST /api/dev-errors` with a content blocker. Records already written to the local file on your own
machine stay there. Because the log identifies nobody, we cannot locate and delete "your" records on
request — there is nothing to search by. Records are retained for 90 days, applied to the whole
table by age.

The full text is in the portfolio Terms of Service section 3.3 and Privacy Policy section 3.1.

## What we share

- **Stripe** (payment processing): your email, customer id, and purchase
  amount. See stripe.com/privacy.
- **Google Gemini** (AI provider): the draft text and voice/posts you asked us
  to analyze, to generate the enhanced output. See ai.google.dev/privacy.
- **GitHub** (feedback only): if you submit feedback and the operator has
  configured it, your feedback message, category, and technical context are
  posted as a GitHub issue in our repository. The issue body contains the
  feedback you wrote; do not include sensitive personal information in
  feedback messages.
- **We do not sell, rent, or trade your personal data.**

## Data retention

- Account, voice profile, drafts, and feedback are retained while your account
  is active.
- **Deleting your account** (Settings → sign out → delete account, or via the
  API `DELETE /api/auth/me`) permanently removes your account, voice profile,
  drafts, refresh tokens, and feedback records.
- Cached prospect analyses (public LinkedIn data) are kept at most 7 days and
  are not linked to your identity beyond your analysis history.

## Security

We use industry-standard measures: encrypted transport (TLS), hashed passwords
(scrypt), hashed refresh tokens, JWT authentication, and rate limiting. No
system is 100% secure; you use the extension at your own risk.

## Your rights (GDPR / CCPA)

Depending on your jurisdiction you may have the right to access, correct,
export, or delete your personal data, and to object to processing. Deleting
your account deletes the data we hold about you. Contact the operator (see
"Contact") to exercise any right.

## Changes

We may update this policy; the "Last updated" date above reflects the latest
version. Continued use after changes constitutes acceptance.

## Contact

Contact the operator at the address shown on the Chrome Web Store listing page
for this extension.
