<footer class="np-footer">
  {% comment %}<div class="np-footer-top col-xs-3">
    {% if website_footer.show_navigation_links? %}
      <div class="np-footer-navigation"'>
        <ul class="np-footer-navigation-list">
          {% for website_navigation in navigations.footer_navigations %}
            {% if website_navigation.external? %}
              <li class="np-footer-navigation-item">
                <a
                  class="np-footer-navigation-link np-button-color"
                  href="{{ website_navigation.path }}"
                  {% if website_navigation.external? %} target="_blank" {% endif %}
                  style='color: white;opacity: 0.5;''
                >
                  {{ website_navigation.name }}
                </a>
              </li>
            {% endif %}
          {% endfor %}
        </ul>
      </div>
    {% endif %}
    {% if current_school.logo_url %}
      <h2 class="np-footer-logo">
        <a href="{% route home %}">
          <img
            alt="{{ current_school.name }}"
            class="np-footer-logo-image"
            src="{{ current_school.logo_url }}"
          />
        </a>
      </h2>
    {% else %}
      <div class="np-school-name np-header-font-color">
        {{ current_school.name }}
      </div>
    {% endif %}
  </div>{% endcomment %}

  <div style="text-align: center;">
    <div class="ast-small-footer-section ast-small-footer-section-1">
      © 2022 Scenario | <a href="https://scenariocloud.com/privacy-policy" style="color: #ffffff">Privacy Policy</a> | <a href="https://scenariocloud.com/quality-policy" style="color: #ffffff">Quality Policy</a> | <a href="https://scenariocloud.com/customer-saas-agreement/" style="color: #ffffff">Customer SaaS Agreement</a>					
    </div>
  </div>

  {%comment%}<div class="np-footer-bottom col-xs-3">
    <nav class="np-footer-social-links">
      {% if website_footer.show_social_media_links? %}
        <ul class="np-footer-social-links-list">
          {% for social_media_link in website_footer.social_media_links %}
            <li class="np-footer-social-links-item">
              <a
                class="np-footer-social-links-link np-button-color"
                href="{{ social_media_link.link }}"
                target="_blank" title="{{ social_media_link.name }}"
              >
              {% if social_media_link.name == 'linkedin' %}
                <i class="np-footer-social-links-icon
                  fab fa-linkedin-in"
                  style='color: #089FB7;'
                ></i>
              {% else %}
                <i class="np-footer-social-links-icon
                  fab fa-{{ social_media_link.name }}"
                  style='color: #089FB7;'
                ></i>
              {% endif %}
              </a>
            </li>
          {% endfor %}
        </ul>
      {% endif %}
    </nav>

    {% if website_footer.show_customer_service_email? and
      website_footer.school_customer_service_email
    %}
      <div class="np-footer-support">
        <div class="np-footer-support-item np-footer-support-help np-fc-white np-opacity-50">
          {% t .need_help %}
        </div>
        <div class="np-footer-support-item np-footer-support-email np-fc-white np-opacity-50">
          {% t .email %}
        </div>
        <a
          class="np-footer-support-item np-footer-support-link np-button-color"
          href="mailto:{{ website_footer.school_customer_service_email }}"
        >
          {{ website_footer.school_customer_service_email }}
        </a>
      </div>
    {% endif %}
  </div>{% endcomment %}
</footer>

<style>
  .np-footer {
    /* background: #001e2e !important; */
    /* background: #34abe2 !important; */
    background: #34abe2 !important;
  }
  .np-powered-by {
    background: #001e2e !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    font-weight: bold;
    display: none;
  }
  .np-powered-by-link {
    color: rgba(256,256,256,0.25) !important;
  }
</style>

<script>
  $(".np-footer-navigation-link[href='https://change_to_mail.com'").attr("href", "mailto:support@northpass.com")
</script>

<script>
  if(document.referrer == 'https://academy.scenariocloud.com/auth/auth_url_email/login'){
    console.log('Redirecting to Homepage');
    window.location.href = '/app';
  }
</script>
