<?php
require_once __DIR__.'/../config/config.php';require_once __DIR__.'/../config/database.php';require_once __DIR__.'/../includes/functions.php';
$legalDoc=afLegalDocument($pdo,'terms');if(!$legalDoc){$d=afLegalDocumentDefinitions($pdo)['terms'];$legalDoc=['title'=>$d['title'],'summary'=>$d['summary'],'version_key'=>$d['version'],'content_html'=>$d['body']];}
$pageTitle='Termos de Uso';$showNav=false;$legalIcon='📜';$legalBack=isLoggedIn()?SITE_URL.'/pages/perfil.php':SITE_URL.'/';require_once __DIR__.'/../includes/header.php';require __DIR__.'/../includes/legal_document_view.php';require_once __DIR__.'/../includes/footer.php';
