Legal Content Service
Component Detail
Service Layer
low complexity
Shared Component
backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Provides versioned privacy policy content from MDX files or a headless CMS, enabling legal document updates without code deployments. Returns structured content with metadata including version string, last-updated date, and section anchors for deep linking.
legal-content-service
Responsibilities
- Load and parse MDX or CMS content for the privacy policy document
- Expose version metadata and last-updated timestamp consumed by the Privacy Policy Page
- Serve content at build time (SSG) or request time (SSR) depending on update frequency
Interfaces
getPrivacyPolicyContent(): Promise<LegalDocument>
getLegalDocumentVersion(slug: string): Promise<LegalDocumentMeta>