from flask import render_template, Blueprint

# Create separate blueprint for public legal documents (no authentication required)
public_legal_bp = Blueprint('public_legal', __name__)

@public_legal_bp.route('/legal/terms')
def terms():
    """Terms of Service page"""
    return render_template('legal/terms.html')

@public_legal_bp.route('/legal/privacy') 
def privacy():
    """Privacy Policy page"""
    return render_template('legal/privacy.html')

@public_legal_bp.route('/legal/disputes')
def disputes():
    """Dispute Resolution page"""
    return render_template('legal/disputes.html')

@public_legal_bp.route('/legal/ica_template')
def ica_template():
    """Independent Contractor Agreement Template page"""
    return render_template('legal/ica_template.html')

@public_legal_bp.route('/legal/safety')
def safety():
    """Safety Guidelines page"""
    return render_template('legal/safety.html')

@public_legal_bp.route('/legal/payment_terms')
def payment_terms():
    """Payment Terms page"""
    return render_template('legal/payment_terms.html')

@public_legal_bp.route('/legal/faq')
def faq():
    """Frequently Asked Questions page"""
    return render_template('legal/faq.html')

