{% extends "_layouts/main.html" %} {% import 'macros.twig' as macros %} {% block main %} {# ========================= SEC 1 — TÍTULO privacy_policy_section_1: - section_title (RTE — título curto) - image (asset, opcional) ========================= #} {% set sec1 = entry.privacy_policy_section_1.one() ?? null %} {% if sec1 %} {% set sec1_img = sec1.image.one() ?? null %}

{{ sec1.section_title ? macros.limpar_paragrafos(sec1.section_title) : macros.limpar_paragrafos(entry.title) }}

{% if sec1_img %} {{ sec1_img.title }} {% endif %}
{% endif %} {# ========================= SEC 2 — CONTEÚDO LEGAL privacy_policy_section_2: - text (RTE longo: H2/H3, parágrafos, listas) — output direto (|raw), sem limpar_paragrafos, para preservar a formatação do editor. ========================= #} {% set sec2 = entry.privacy_policy_section_2.one() ?? null %} {% if sec2 and sec2.text %}
{{ sec2.text|raw }}
{% endif %} {# ========================= VOLTAR AO INÍCIO (UI fixa) ========================= #}
{% endblock %}