<?php
declare(strict_types=1);

$dbPage = is_array($db_page ?? null) ? $db_page : [];
$pageTitle = (string) ($dbPage['title'] ?? ($title ?? 'Page'));
$pageContent = (string) ($dbPage['content'] ?? ($content ?? ''));
?>
<section class="contener box bg-w" style="padding: 18px; text-align: left;">
    <h1 class="t24 res-color" style="text-align: center;"><?php echo htmlspecialchars($pageTitle, ENT_QUOTES, 'UTF-8'); ?></h1>
    <div style="font-size: 16px; line-height: 1.7;">
        <?php echo $pageContent; ?>
    </div>
</section>
