{% extends 'edx/base.html' %}

{% load i18n %}

{% block title %}
  {# Translators: SDN is an acronym for Specially Designated Nationals #}
  {% blocktrans %}SDN Check Failure{% endblocktrans %}
{% endblock %}

{% block navbar %}
  {% include 'edx/partials/_student_navbar.html' %}
{% endblock navbar %}

{% block content %}
  <div id="error-message">
    <div class="container">
      <div class="depth depth-2 message-error-content">
        <h3>SDN Check Failure</h3>
        <p>
          {% blocktrans trimmed %}
            Unfortunately, your account profile or payment information appears to match one or more records on a U.S.
            Treasury Department sanctions list. This means we cannot complete your transaction or provide you with
            services and must suspend your learner account.
          {% endblocktrans %}
        </p>

        <p>
          {% with "<a class='nav-link' href='mailto:ofac.reconsideration@treasury.gov'>"|safe as ofac_email_link %}
            {% blocktrans trimmed with end_link="</a>"|safe %}
              If you have questions regarding clearing a match, please contact {{ ofac_email_link }}
              ofac.reconsideration@treasury.gov{{ end_link }} for information about options for clearing a match. Your
              account will be suspended until this matter is resolved satisfactorily.
            {% endblocktrans %}
          {% endwith %}
        </p>
      </div>
    </div>
  </div>

  <iframe style="visibility: hidden" sandbox="allow-forms allow-same-origin allow-scripts" src="{{ logout_url }}"></iframe>
{% endblock %}
