File: /home/primrwxj/the-therapy.info/legal.php
<?php
declare(strict_types=1);
// === SECURITY (same as other pages) ===
$isHttps = (
(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')
|| (isset($_SERVER['SERVER_PORT']) && (int)$_SERVER['SERVER_PORT'] === 443)
|| (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https')
);
if (!$isHttps) {
$host = $_SERVER['HTTP_HOST'] ?? '';
$uri = $_SERVER['REQUEST_URI'] ?? '/';
header("Location: https://{$host}{$uri}", true, 301);
exit;
}
header("X-Content-Type-Options: nosniff");
header("X-Frame-Options: DENY");
header("Referrer-Policy: strict-origin-when-cross-origin");
header("Permissions-Policy: geolocation=(), camera=(), microphone=()");
header("Cross-Origin-Opener-Policy: same-origin");
header("Content-Security-Policy: default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'");
function h(string $s): string { return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); }
$siteName = "The-Therapy.Info";
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title><?= h($siteName) ?> — Terms & Medical Disclaimer</title>
<meta name="description" content="Terms of use and medical disclaimer for The-Therapy.Info."/>
<meta name="robots" content="noindex,follow"/>
<style>
:root{
--bg1:#f7fbff; --bg2:#eef6ff; --ink:#0b1b2a; --muted:#4b5a68;
--card:rgba(255,255,255,.72); --line:rgba(14, 35, 56, .12);
--shadow:0 18px 55px rgba(12, 28, 48, .14); --radius:18px;
}
*{box-sizing:border-box}
body{
margin:0;
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
color:var(--ink);
background:
radial-gradient(1100px 700px at 18% 20%, rgba(90,103,216,.16), transparent 55%),
radial-gradient(900px 650px at 78% 22%, rgba(44,122,123,.14), transparent 52%),
radial-gradient(900px 650px at 30% 85%, rgba(236,72,153,.08), transparent 55%),
linear-gradient(180deg, var(--bg1), var(--bg2));
min-height:100vh; overflow-x:hidden;
}
.floral{
position:fixed; inset:0; pointer-events:none; opacity:.22;
background-image:
radial-gradient(circle at 12px 12px, rgba(44,122,123,.22) 2px, transparent 3px),
radial-gradient(circle at 42px 38px, rgba(90,103,216,.18) 2px, transparent 3px),
radial-gradient(circle at 65px 18px, rgba(16,185,129,.12) 2px, transparent 3px);
background-size: 90px 90px; filter: blur(.2px);
}
.wrap{max-width:980px;margin:0 auto;padding:36px 16px 64px;}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 6px;margin-bottom:16px;}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.2px;}
.logo{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg, rgba(44,122,123,.95), rgba(90,103,216,.9));box-shadow:0 10px 25px rgba(44,122,123,.22);position:relative;}
.logo:after{content:"";position:absolute;inset:9px;border-radius:10px;border:1px solid rgba(255,255,255,.65);transform:rotate(8deg);}
.ghostBtn{
display:inline-flex;align-items:center;justify-content:center;
padding:10px 14px;border-radius:999px;border:1px solid rgba(14,35,56,.14);
background:rgba(255,255,255,.62);color:rgba(11,27,42,.9);text-decoration:none;font-weight:900;
box-shadow:0 10px 25px rgba(12, 28, 48, .08);
}
.card{
border-radius:var(--radius);
background:rgba(255,255,255,.60);
border:1px solid var(--line);
box-shadow:var(--shadow);
backdrop-filter: blur(12px);
padding:24px;
}
h1{margin:0 0 10px;font-size:34px}
h2{margin:22px 0 8px;font-size:20px}
p,li{color:rgba(11,27,42,.76);line-height:1.7;font-size:15px}
ul{padding-left:20px}
.muted{font-size:13px;color:rgba(11,27,42,.62)}
.divider{height:1px;background:rgba(14,35,56,.10);margin:16px 0}
.danger{border:1px solid rgba(239,68,68,.30);background:rgba(239,68,68,.08);border-radius:16px;padding:14px;margin:16px 0}
.notice{border:1px solid rgba(245,158,11,.35);background:rgba(245,158,11,.10);border-radius:16px;padding:14px;margin:16px 0}
.footerLinks{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
a{color:rgba(11,27,42,.90);font-weight:900}
</style>
</head>
<body>
<div class="floral" aria-hidden="true"></div>
<div class="wrap">
<div class="topbar">
<div class="brand">
<div class="logo" aria-hidden="true"></div>
<div>
<div><?= h($siteName) ?></div>
<div class="muted">Terms • Medical Disclaimer</div>
</div>
</div>
<a class="ghostBtn" href="index.php">Back to intake</a>
</div>
<div class="card">
<h1>Terms of Use & Medical Disclaimer</h1>
<p class="muted">Last updated: <?= h(date('F j, Y')) ?></p>
<h2>1) What This Service Does</h2>
<p>
<?= h($siteName) ?> provides an <b>intake routing and connection</b> experience. We help users submit basic
preferences so they can be routed to an appropriate next step.
</p>
<h2>2) What This Service Does NOT Do</h2>
<ul>
<li>We are not a hospital, insurance company, or crisis hotline.</li>
<li>We do not provide medical, psychological, or mental health diagnosis or treatment.</li>
<li>Submitting a form does not create a therapist–client relationship.</li>
</ul>
<div class="danger">
<p><b>Emergency:</b> If you are in immediate danger, call <b>911</b>. If you need urgent emotional support, call/text <b>988</b> (U.S.).</p>
</div>
<h2>3) No Medical Advice</h2>
<p>
Any information on this website is for informational and routing purposes only and is not medical advice.
Always seek the advice of a qualified health provider with any questions you may have.
</p>
<h2>4) Acceptable Use</h2>
<ul>
<li>Do not submit false information or impersonate others.</li>
<li>Do not attempt to probe, scan, or test the security of the site.</li>
<li>Do not upload harmful code or attempt to disrupt service operations.</li>
</ul>
<div class="notice">
<p><b>Privacy tip:</b> Please keep submissions brief and avoid including highly sensitive details online.</p>
</div>
<h2>5) Limitation of Liability</h2>
<p>
To the extent permitted by law, <?= h($siteName) ?> is not liable for any damages arising from use of this site,
delays in response, or outcomes related to provider availability. Providers are independent and responsible for their services.
</p>
<h2>6) Changes</h2>
<p>
We may update these terms from time to time. The “Last updated” date reflects the latest revision.
</p>
<div class="divider"></div>
<div class="footerLinks">
<a href="index.php">Intake</a>
<a href="privacy.php">Privacy Policy</a>
<a href="thank-you.php">Thank You</a>
</div>
</div>
</div>
</body>
</html>