Skip to main content

Configuration

Legal

Copyright line plus privacy, terms, and cookie links in your site footer — declared once in config, rendered on every page.

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.copyrightstringpath

Copyright 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.privacyUrlstringpath

Privacy policy URL. Rendered as a Privacy link in the footer legal row.

legal.termsUrlstringpath

Terms of service URL. Rendered as Terms.

legal.cookieUrlstringpath

Cookie policy URL. Rendered as Cookies.

legal.links{ label, href }[]path

Extra 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.

Was this page helpful?

Last updated August 7, 2026