{% extends 'login.base.html.twig' %}

{% block title %}Delete Your Ease Account{% endblock %}

{% block body %}
    <h2>Delete Your Ease Account</h2>
    <p>Use this page to request deletion of your Ease account and associated personal data.</p>
    <p>If we must retain limited records for legal, security, fraud-prevention, or reporting continuity reasons, we will remove or anonymize personal identifiers and keep only non-identifiable information where appropriate.</p>

    {% if contactEmail %}
        <p>If you need help with your request, contact <a href="mailto:{{ contactEmail }}">{{ contactEmail }}</a>.</p>
    {% endif %}

    {% if error %}
        <div style="color: red">{{ error }}</div>
    {% endif %}

    {% if success %}
        <div style="color: green">{{ success }}</div>
    {% endif %}

    <form method="post">
        <div class="form-control">
            <input type="email" name="email" placeholder="Email address linked to your account" value="{{ email }}" required>
        </div>

        <div class="form-control">
            <textarea name="details" placeholder="Additional details (optional)" rows="5">{{ details }}</textarea>
        </div>

        <button type="submit" class="btn secondary">Submit Deletion Request</button>
    </form>
{% endblock %}
