# Publish your legal documents

Legal Documents holds versioned terms, privacy, cookie and refund policies and booking terms. Each document is written as a draft, given a version and an effective date, then explicitly published — and only a published document is served to customers.

Source: https://help.pigi.io/guides/company-setup/profile/legal-documents

## Quick answers

**Where do I write my terms and conditions?**
Settings → Content → Legal, at /school/admin/company/settings/legal. Click
**Legal document** to add one.

**What document types are there?**
Terms of Service, Privacy Policy, Cookie Policy, Refund Policy, Booking Terms, and
Custom Legal Page.

**Why is Status greyed out?**
Documents are always created as drafts and published explicitly. You cannot type a
status — use the **Publish** button.

**How do I publish a document?**
Open it and click **Publish**, or click the rocket icon on its row in the list. The
badge changes from Draft to Published.

**How do I retire a document?**
Open it and click **Archive**, or click the archive icon on its row. Archived
documents stop being served but stay in the list as history.

**What should I put in Version?**
Something immutable that identifies this revision. The field help suggests a date such
as `2026-03-12`. Every version of the same document type must be unique.

**Who can see the documents I write here?**
Only your company. Each document is saved against your workspace, and other schools on
PiGi never see it. The list may also show PiGi's own platform-wide documents as a
fallback — those are read-only for you, and any document you write for the same type
takes precedence for your customers.

**What does Show to customers do?**
When on, the document appears in the customer portal's Legal section. Turn it off for
internal-only documents such as staff policies.

**What is the Slug field for?**
It only appears when the document type is **Custom Legal Page**, and it is the URL the
page is served at.

## What this is

Legal Documents is a small versioned CMS for the documents customers must be able to
read: terms, privacy, refunds. Each row is one version. You write a draft, publish it
when it takes effect, and archive it when a newer version replaces it — the old
version stays as an audit trail.

## Before you start

- You need the **admin** role.
- Decide your version string convention before you write the first one; it cannot
  repeat within a document type.

## Steps

1. Open **Settings → Content → Legal**.
2. Click **Legal document**.
3. Enter a **Title**, pick a **Document type**, and enter a **Version**.
4. Leave **Locale** as `en` unless you are writing a translation.
5. Pick an **Effective date**.
6. Leave **Show to customers** on for anything a customer should see.
7. Write the body in the editor on the right. Use the preview button to check it.
8. Click **Save**.
9. When it is ready, click **Publish**.

## Fields

| Field | Required | What to enter |
|---|---|---|
| Title | Yes | The heading shown to customers. |
| Document type | Yes | One of the six types. |
| Version | Yes | An immutable identifier, e.g. `2026-03-12`. Unique per type. |
| Locale | Yes | Language code. Defaults to `en`. |
| Effective date | No | The date the document takes effect. Defaults to today if left blank. |
| Status | Read-only | Always Draft on create; changed by Publish and Archive. |
| Show to customers | No | Whether it appears in the customer portal's Legal section. |
| Slug | Only for Custom Legal Page | The URL segment for the page. |
| Summary | No | Short plain-text summary. |
| Change notes | No | What changed since the previous version. |
| Content | Yes | The document body, written in the rich-text editor. |

## Known limitations

- **Only one document per type and locale can be published at a time.** Publishing a
  second one is refused with a message asking you to archive the current one first.
- **Two documents of the same type cannot share a version string.** You are told which
  version is already taken; pick a new one.
- **You cannot edit PiGi's own platform-wide documents.** They appear in the list as a
  fallback for anything you have not written yourself, but Save, Publish, Archive and
  Delete are refused on them. Create your own version of that document type instead —
  yours takes precedence for your customers.
- **There is no draft preview URL** — the preview button inside the editor is the only
  way to see the rendered document before publishing.

## Related

- [Set up your public pages](public-pages.md)
