# Legal documents (server only)

Upload to `https://adneutral.link/config/`:

| File | URL |
|------|-----|
| `privacy_policy.json` | https://adneutral.link/config/privacy_policy.json |
| `terms_of_service.json` | https://adneutral.link/config/terms_of_service.json |

The app **does not** show built-in legal text. It only shows what you host on the server (or the last downloaded copy when offline).

## Schema

```json
{
  "enabled": true,
  "version": "2",
  "title": "Privacy Policy",
  "updated_at": "June 2026",
  "html": "<!DOCTYPE html>... or <h1>Body only</h1>..."
}
```

| Field | Effect |
|-------|--------|
| `"enabled": true` | Show in Settings → Legal and allow opening |
| `"enabled": false` | **Hide** the menu row completely |
| `html` | Full page or body fragment (app adds styles for body-only) |
| `title` | Settings label and screen title |
| `version` / `updated_at` | Optional; app detects html changes automatically |

## Edit workflow

1. Edit `server-config/privacy_policy.json` or `terms_of_service.json` locally (or on server).
2. Upload to `adneutral.link/config/`.
3. App picks up changes within ~30 seconds, when opening Settings, or when opening the document.

Regenerate local copies from template:

```bash
npm run legal:sync
```

Then upload the `server-config/*.json` files.
