"""Legal blueprint - Conditions, Confidentialite (Loi 25), Cookies, Remboursement,
Accessibilite, Mentions.

Mounted at /legal/* prefix. Content rendered from markdown files in
src/legal/content/ (B-2.9). All 6 pages publicly indexable (Loi 25 transparency).
"""
from flask import Blueprint

# Canonical version of all 6 legal documents. Bump when ANY of the markdown
# files in src/legal/content/ is updated. Stored on every ConsentLog row at
# signup time (src/api/auth.py uses this to stamp consent_log.version).
# Format: ISO date 'YYYY-MM-DD' of the document revision.
LEGAL_VERSION = '2026-04-27'

legal_bp = Blueprint(
    'legal',
    __name__,
    url_prefix='/legal',
    template_folder='../../templates/legal',
    static_folder=None,
)

# Register routes
from src.legal import routes  # noqa: E402, F401
