{% extends "layout_default.html.twig" %}

{% set company = guest.system_company %}

{% block meta_title %}{{ 'Terms and Conditions'|trans }}{% endblock %}
{% block meta_description %}{{ 'Review the terms and conditions that apply to your use of %company% services.'|trans({'%company%': company.name}) }}{% endblock %}

{% block body_class %}tos{% endblock %}
{% block breadcrumb %}
    <li class="breadcrumb-item active" aria-current="page">{{ 'Terms'|trans }}</li>
{% endblock %}

{% block content %}
    <div class="row">
        <div class="col-md-12">
            <div class="card mb-4">
                <div class="card-header py-3 py-3">
                    <div class="d-flex justify-content-between align-items-center">
                        <div>
                            <h1 class="mb-1">{{ company.name }} {{ 'Terms and Conditions'|trans }}</h1>
                            <span class="small text-muted">
                                {{ company.signature }}
                            </span>
                        </div>
                    </div>
                </div>
                <div class="card-body">
                    <p>{{ (company.tos ?? '')|markdown_to_html }}</p>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
