config.legal adds a compliance row to your site footer: a copyright line and
links to your privacy policy, terms of service, and cookie policy. Declared
once, rendered beneath every page.
Legal links render in the site footer, so they only show when the footer
is visible. Set footer.style to page or columns — or just provide a
legal block and a minimal footer renders automatically to carry it.
Example
{
"legal": {
"copyright": "© {year} Acme, Inc. All rights reserved.",
"privacyUrl": "/legal/privacy",
"termsUrl": "/legal/terms",
"cookieUrl": "/legal/cookies",
"links": [
{ "label": "Imprint", "href": "/legal/imprint" },
{ "label": "Accessibility", "href": "/legal/accessibility" }
]
}
}Fields
legal.copyrightstringpathCopyright line shown in the footer. The token {year} expands to the current
year, so "© {year} Acme, Inc." always stays current. When set, this
replaces the default © {year} line. It does not affect the separate "Powered by NookDocs" attribution, which sits at the opposite end of the footer — see white labeling.
legal.privacyUrlstringpathPrivacy policy URL. Rendered as a Privacy link in the footer legal row.
legal.termsUrlstringpathTerms of service URL. Rendered as Terms.
legal.cookieUrlstringpathCookie policy URL. Rendered as Cookies.
legal.links{ label, href }[]pathExtra legal links appended after Privacy / Terms / Cookies — imprint, accessibility statement, DPA, and so on.
Hosting the pages
The URLs can point anywhere:
Inside your docs — write
legal/privacy.mdx(etc.) as normal pages and link"/legal/privacy". They sync and render like any other content.External — link an absolute URL to a policy hosted elsewhere (
"https://acme.com/privacy").
Cookie-consent banners are a separate concern — see
integrations for Osano. legal only renders
the footer links + copyright.