Files
server-manager/views/pages/terms.php

34 lines
2.2 KiB
PHP

<div class="legal-page">
<div class="legal-container">
<div style="max-width:960px;margin:3rem auto;padding:3rem 3.5rem;background:var(--card-bg);border-radius:12px;box-shadow:0 2px 16px rgba(0,0,0,0.18)">
<h1 style="color:var(--text-primary);margin-bottom:0.25rem;font-size:1.8rem;font-weight:700">Terms & Conditions</h1>
<p style="color:var(--text-muted);font-size:0.9rem;margin-bottom:2rem">Last updated: June 2026</p>
<hr style="border-color:var(--border-color);margin-bottom:2rem;opacity:0.5">
<div class="legal-content" style="line-height:1.8;color:var(--text-primary);font-size:1rem">
<?php
$lines = explode("\n", $content ?? '');
foreach ($lines as $line) {
$line = htmlspecialchars($line);
if (preg_match('/^[A-Z][A-Z\s]+$/', trim($line))) {
echo '<h2 style="color:var(--accent-primary);font-size:1.2rem;margin:2rem 0 1rem;font-weight:600">' . $line . '</h2>';
} elseif (preg_match('/^\d+\.\d/', trim($line))) {
echo '<h3 style="color:var(--text-primary);font-size:1rem;margin:1rem 0 0.4rem 1.5rem;font-weight:600">' . $line . '</h3>';
} elseif (preg_match('/^\d+\./', trim($line))) {
echo '<h3 style="color:var(--text-primary);font-size:1rem;margin:1.2rem 0 0.5rem;font-weight:600">' . $line . '</h3>';
} elseif (preg_match('/^[-–—]\s/', trim($line))) {
echo '<p style="margin:0.4rem 0 0.4rem 2rem">' . $line . '</p>';
} elseif (trim($line) === '') {
echo '<div style="height:0.5rem"></div>';
} else {
echo '<p style="margin:0.4rem 0">' . $line . '</p>';
}
}
?>
</div>
<div class="legal-footer" style="margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--border-color);text-align:center">
<p><a href="/" style="color:var(--accent-primary);text-decoration:none;font-size:0.95rem">&larr; Back to ServerManager</a></p>
</div>
</div>
</div>
</div>