Content required. Add your own ${title} before publishing.
+
Edit legal/_private/${fileName} in the site's content folder. This file is ignored by Git.
+
+`
+ try {
+ await fs.writeFile(filePath, content, {
+ encoding: 'utf8',
+ flag: 'wx', // Create only if missing; never overwrite an existing file.
+ })
+ } catch (error) {
+ if ((error as NodeJS.ErrnoException).code !== 'EEXIST') throw error
+ }
+ }
+}
diff --git a/frontend/legal-content.md b/frontend/legal-content.md
new file mode 100644
index 00000000..60931404
--- /dev/null
+++ b/frontend/legal-content.md
@@ -0,0 +1,33 @@
+# Private legal content
+
+The public page wrappers import the complete legal text from these local files:
+
+- `frontend/purestack.studio/legal/_private/imprint.mdx`
+- `frontend/purestack.studio/legal/_private/privacy.mdx`
+
+The `_private` directory is ignored by Git. Files in it are shared content,
+so they are included through `import-content` rather than published as separate pages.
+
+Starting the frontend dev server, building, or publishing creates any missing
+private file with a minimal notice asking the owner to supply their own content.
+No legal-text templates are provided; each site owner is responsible for their
+Imprint and Privacy Policy.
+Existing files are never overwritten. Edit these files directly; no environment
+variables or substitution step is needed.
+
+```sh
+yarn frontend
+# Or:
+yarn frontend:build
+yarn frontend:publish
+```
+
+Replace the setup notice with your own legal content before publishing.
+Use HTML or MDX without frontmatter. The starter supplies the page heading,
+spacing, and container; keep or customize that markup as needed.
+
+These files stay out of Git, but their contents appear in the generated public
+website. Supply them separately in your deployment environment.
+
+`import-content` reads within the site's content folder. If you keep the originals
+outside the repository, copy them into `_private` before building or publishing.
diff --git a/frontend/purestack.studio/components/footer.mdx b/frontend/purestack.studio/components/footer.mdx
index 53a52660..09d5e877 100644
--- a/frontend/purestack.studio/components/footer.mdx
+++ b/frontend/purestack.studio/components/footer.mdx
@@ -4,8 +4,22 @@
tone="neutral"
variant="none"
>
+
+ Imprint
+ Privacy Policy
+
-
-
+
+
diff --git a/frontend/purestack.studio/footer.mdx b/frontend/purestack.studio/footer.mdx
index 9e05d6b3..a2ec58c2 100644
--- a/frontend/purestack.studio/footer.mdx
+++ b/frontend/purestack.studio/footer.mdx
@@ -7,17 +7,26 @@