<?php
require_once __DIR__ . '/includes/lang.php';
require_once __DIR__ . '/includes/header.php';
?>
<main class="container py-5">
    <div class="row justify-content-center">
        <div class="col-lg-10">
            <h1 class="mb-5 fw-bold"><?php echo __('terms'); ?></h1>
            <div class="card bg-surface border-secondary p-5">
                <p class="text-white-50 mb-4"><?= __('effective_date') ?></p>
                <?php for($i=1; $i<=8; $i++): 
                    $title = __('tos_'.$i.'_title');
                    $content = __('tos_'.$i.'_content');
                    if($title != 'tos_'.$i.'_title'):
                ?>
                <section class="mb-5">
                    <h3 class="fw-bold mb-3 text-white"><?= $title ?></h3>
                    <p class="text-white-50"><?= $content ?></p>
                </section>
                <?php endif; endfor; ?>
            </div>
        </div>
    </div>
</main>
<?php require_once __DIR__ . '/includes/footer.php'; ?>
