Legal & Policy Pages
Relevant source files
The following files were used as context for generating this wiki page:
Legal & Policy Pages within the Send Again platform provide the necessary legal framework and data protection guidelines for users and organizations. These pages are built using a standardized React component architecture to ensure consistency in presentation across the Terms of Use and Privacy Policy. They serve as the authoritative source for user eligibility, acceptable use, data collection practices, and compliance requirements.
These pages are integrated into the application's authentication flow, where users must acknowledge and accept the terms during account creation. The content is structured to address both general website visitors and active workspace members who process recipient data through the service.
Architecture and Components
The legal documentation system is built on a reusable UI component that separates content definitions from the visual presentation layer.
The LegalPage Component
The core of the legal system is the LegalPage component found in src/components/legal-page.tsx. It acts as a template for all legal documents, providing a consistent header, navigation, and layout.
The diagram shows the data structure used to feed the legal page template.
Sources: src/components/legal-page.tsx:8-23
Data Structures
Legal content is defined using the LegalSection interface, which organizes text into headers, paragraphs, and bulleted lists.
LEGAL_LAST_UPDATED: A constant string (currently "March 6, 2026") used to synchronize the "Last Updated" date across all documents.LegalSection: Defines the schema for document parts, including optional paragraph and bullet arrays.
Sources: src/components/legal-page.tsx:5-13
Policy Implementation
Privacy Policy
The Privacy Policy (src/app/privacy-policy/page.tsx) details how Send Again handles personal data, including account data, workspace data, and technical usage data. It specifically identifies Supabase as the provider for authentication and database services, and Amazon SES for email delivery.
Key sections include:
- Scope: Applicability to account holders and website visitors.
- Data Collection: Specifics on account, billing, and technical logs.
- Third-Party Sharing: Disclosure of infrastructure and email delivery providers.
Sources: src/app/privacy-policy/page.tsx:21-70
Terms of Use
The Terms of Use (src/app/terms-of-use/page.tsx) establish the rules for platform access and email compliance. It mandates that users must have a valid legal basis for contacting recipients and prohibits the use of purchased or scraped lists.
| Section | Key Requirements |
|---|---|
| Acceptance | Creating an account constitutes agreement to terms. |
| Compliance | Users must honor unsubscribe requests and avoid spam/phishing. |
| Billing | Fees are generally non-refundable once credits are provisioned. |
| Liability | Service is provided "as is" with specific limits on damages. |
Sources: src/app/terms-of-use/page.tsx:15-104
User Acceptance Workflow
The application enforces legal compliance during the registration process. Users cannot create an account without explicitly accepting the Terms of Use and Privacy Policy.
The flow shows how legal acceptance is integrated into the account creation logic.
Sources: src/app/app/page.tsx:1120-1165
Implementation Details
- Version Tracking: The application tracks the specific version of the terms accepted using the
LEGAL_ACCEPTANCE_VERSIONconstant (e.g., "2026-03-06"). - Metadata Storage: Acceptance timestamps (
legalAcceptedAt,termsAcceptedAt,privacyAcceptedAt) are stored within the Supabase auth user metadata.
Sources: src/app/app/page.tsx:109-110, src/app/app/page.tsx:1145-1153
Navigation and Discovery
Legal pages are linked from multiple entry points to ensure accessibility:
- Global Landing Page Footer: Links to
/terms-of-useand/privacy-policy. - Legal Header: The
LegalPagecomponent includes a sub-navigation bar allowing users to switch between policies. - Authentication Forms: Links provided alongside the acceptance checkbox in the sign-up modal.
Sources: src/app/page.tsx:327-340, src/components/legal-page.tsx:35-42, src/app/app/page.tsx:1159-1175
Conclusion
The Legal & Policy Pages system provides a robust framework for compliance and transparency. By utilizing a centralized LegalPage component and enforcing acceptance at the point of registration, the project ensures that both the service provider and the users adhere to established legal standards and data protection regulations.