<?php
require_once __DIR__ . '/includes/auth.php';
chat247_start_session();
$signedIn = !empty($_SESSION['bearer']);
$lastUpdated = '2026-05-30';
?><!doctype html>
<html lang="en">
<head>
<base href="https://<?= htmlspecialchars($_SERVER['HTTP_HOST'] ?? '', ENT_QUOTES) ?>/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Terms of Service — 247ch.at</title>
<link rel="icon" href="/favicon.ico?v=<?= @filemtime(__DIR__ . '/favicon.ico') ?: time() ?>">
<style>
  :root { --brand:#3b82f6; --bg:#0b0f1a; --panel:#111827; --fg:#f3f4f6; --muted:#9ca3af; --border:#1f2937; }
  * { box-sizing:border-box; }
  html,body { margin:0; padding:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background:var(--bg); color:var(--fg); line-height:1.6; }
  header { display:flex; align-items:center; justify-content:space-between; padding:18px 32px; border-bottom:1px solid var(--border); }
  header .logo { font-weight:700; font-size:20px; }
  header .logo a { text-decoration:none; color:var(--fg); }
  header nav a { color:var(--fg); margin-left:18px; text-decoration:none; }
  header nav a.btn { background:var(--brand); padding:8px 16px; border-radius:6px; }
  main { max-width:820px; margin:0 auto; padding:48px 24px; }
  h1 { font-size:36px; margin:0 0 8px; }
  .updated { color:var(--muted); margin:0 0 32px; font-size:14px; }
  h2 { font-size:20px; margin:32px 0 12px; }
  h3 { font-size:16px; margin:20px 0 8px; color:#e5e7eb; }
  p, ul { color:#d1d5db; font-size:15px; }
  ul { padding-left:20px; }
  li { margin-bottom:6px; }
  a { color:var(--brand); }
  strong { color:#f3f4f6; }
</style>
</head>
<body>
<header>
  <div class="logo"><a href="/">247ch.at</a></div>
  <nav>
    <a href="/pricing">Pricing</a>
    <?php if ($signedIn): ?>
      <a href="/dashboard" class="btn">Dashboard</a>
    <?php else: ?>
      <a href="/login">Sign in</a>
      <a href="/signup" class="btn">Create account</a>
    <?php endif; ?>
  </nav>
</header>

<main>
  <h1>Terms of Service</h1>
  <p class="updated">Effective Date: <?= htmlspecialchars($lastUpdated) ?></p>

  <p>Welcome to 247ch.at. These Terms of Service ("Terms") govern your use of <strong>247ch.at</strong>, the embeddable widget, the operator desktop app, the dashboard, and any related service (collectively, the "Services"). By creating an account or embedding the widget you agree to these Terms and to our <a href="/privacy">Privacy Policy</a>. If you do not agree, do not use the Services.</p>

  <h2>1. Who We Are</h2>
  <p>"247ch.at," "we," "us," or "our" refers to 247ch.at, an independent software service. You can reach us at the addresses listed under <a href="#contact">Contact</a>.</p>

  <h2>2. Eligibility</h2>
  <p>You must be at least 13 years old to create an account. The Services are not directed to children under 13, and we do not knowingly collect personal information from anyone under 13. See <a href="/privacy">Privacy Policy</a>.</p>

  <h2>3. Accounts</h2>
  <p>You are responsible for keeping your account credentials secure and for all activity that occurs under your account. Notify us immediately if you suspect unauthorized access. We may suspend or terminate accounts that violate these Terms or harm other users.</p>

  <h2>4. Acceptable Use</h2>
  <p>Don't use 247ch.at to spam, harass, threaten, or harm anyone. Don't use it to host or distribute illegal content, malware, or anything that violates someone else's rights. Don't try to break into other accounts, scrape the service, or run automated abuse. We can suspend or terminate accounts that do — usually without warning if it's clear-cut.</p>

  <h2>5. Billing</h2>
  <ul>
    <li>Free is free. No card required, no surprise charges.</li>
    <li>Pro is $19/month, auto-renewing monthly through Stripe (credit card or Cash App Pay).</li>
    <li>Refunds: full refund within 7 days of your first Pro charge — just email us. After that, no refunds for partial months, but you can cancel anytime and keep Pro through the end of the cycle.</li>
    <li>Failed payments give you a 7-day grace period before the account drops back to Free.</li>
    <li>Price changes get 30 days' notice by email.</li>
  </ul>

  <h2>6. Service Availability</h2>
  <p>We target 99% uptime on Pro and best-effort on Free. There's no formal SLA on either tier. Maintenance windows happen; we'll announce planned downtime in advance when we can.</p>

  <h2>7. Your Content, Our Software</h2>
  <p>You own the chat content that flows through your sites. We don't claim any rights to it. You grant us a limited license to store and process it so we can deliver the service — that's it. We own the 247ch.at software, the relay infrastructure, and the desktop app. The visitor-facing widget snippet (widget.js / widget.css) is published under the MIT license and you're welcome to fork it.</p>

  <h2 id="sms">8. Text Messaging (SMS) Program</h2>
  <p>247ch.at operates opt-in SMS programs for (a) <strong>operator notifications</strong> — pinging account owners when a visitor starts a chat or leaves an offline message; (b) <strong>account security</strong> — two-factor codes, login alerts, password resets; and (c) <strong>visitor-side delivery</strong> on operator-configured chat widgets, where end-visitors opt in to receive replies by SMS instead of waiting in the browser. This is the most SMS-heavy service we operate; the program is designed around explicit consent and easy opt-out.</p>

  <h3>8.1 Consent &amp; Opt-In</h3>
  <p>You only receive SMS messages from 247ch.at after you affirmatively opt in by (a) checking an SMS opt-in box during signup, dashboard settings, or widget configuration; (b) texting a keyword such as <strong>JOIN</strong> or <strong>START</strong> to our short code or long-code number; or (c) for visitor-side chats, by entering your mobile number into a chat widget and confirming you want replies by text. Your consent is not a condition of any purchase. We retain a record of when, how, and for what purpose you opted in.</p>

  <h3>8.2 Message Types &amp; Frequency</h3>
  <p>Message frequency varies based on chat volume. Operators on busy sites may receive many notifications per day; operators on quiet sites may receive none. Visitors typically receive a few messages per active conversation. Account-security and password messages are transactional and sent only when triggered by your action. Typical promotional frequency is no more than 4 messages per month.</p>

  <h3>8.3 Message &amp; Data Rates</h3>
  <p><strong>Msg &amp; data rates may apply.</strong> Your wireless carrier may charge you for sending and receiving text messages. 247ch.at is not responsible for carrier charges.</p>

  <h3>8.4 HELP and STOP Keywords</h3>
  <p>For help at any time, reply <strong>HELP</strong> to any 247ch.at message, email <a href="mailto:support@247ch.at">support@247ch.at</a>, or visit <a href="/">247ch.at</a>.</p>
  <p>To opt out at any time, reply <strong>STOP</strong>, <strong>END</strong>, <strong>CANCEL</strong>, <strong>UNSUBSCRIBE</strong>, or <strong>QUIT</strong> to any 247ch.at message. You will receive a single confirmation message and no further marketing or notification messages from that program. You may continue to receive transactional messages where required by law (for example, a one-time password you requested or a billing receipt).</p>

  <h3>8.5 No Sale or Sharing of Opt-In Data</h3>
  <p><strong>247ch.at does not sell, rent, lease, share, or otherwise disclose your SMS opt-in information (your phone number and the fact that you consented to receive text messages) to any third party for marketing or promotional purposes.</strong> SMS opt-in data is shared only with our messaging service provider (currently Twilio) as needed to deliver the messages you requested. This applies equally to operator phone numbers and to visitor phone numbers collected through chat widgets. See <a href="/privacy">Privacy Policy</a> for full data handling.</p>

  <h3>8.6 Supported Carriers</h3>
  <p>The SMS program is available on most major U.S. carriers, including AT&amp;T, Verizon, T-Mobile, Sprint, U.S. Cellular, Boost, MetroPCS, Cricket, and Virgin Mobile. Carriers are not liable for delayed or undelivered messages.</p>

  <h2>9. Email Communications (CAN-SPAM)</h2>
  <p>If you subscribe to our email list, every marketing email includes a one-click unsubscribe link (<a href="/optout">/optout</a>) and our physical mailing address. You can also unsubscribe at any time by emailing <a href="mailto:support@247ch.at">support@247ch.at</a>. Transactional emails (account verification, billing receipts, offline-message pings) will continue regardless of marketing preferences.</p>

  <h2>10. Account Suspension</h2>
  <p>We can suspend or close accounts for abuse, payment fraud, or violating these terms. If your account is closed for non-abuse reasons (you cancel, we shut down) you get 30 days to export your data before it's deleted.</p>

  <h2>11. Disclaimers</h2>
  <p>The service is provided "as is." We don't warrant uninterrupted delivery, AI accuracy, or that any specific message will reach you in a specific time. To the maximum extent allowed by law, our total liability to you is capped at the greater of $100 or what you paid us in the prior 12 months.</p>

  <h2>12. Indemnification</h2>
  <p>You agree to defend and indemnify 247ch.at against claims arising from your violation of these Terms, your user content, or your misuse of the Services.</p>

  <h2>13. Governing Law</h2>
  <p>These Terms are governed by the laws of the Commonwealth of Pennsylvania, United States, without regard to conflict-of-laws rules. Disputes will be brought exclusively in the state or federal courts located in Allegheny County, Pennsylvania.</p>

  <h2>14. Changes to These Terms</h2>
  <p>We may update these Terms from time to time. Material changes will be announced on this page (with a new effective date) and, for users with accounts, by email or in-app notice at least 14 days before they take effect. Continuing to use the service after that counts as acceptance.</p>

  <h2 id="contact">15. Contact</h2>
  <p>
    247ch.at<br>
    Support: <a href="mailto:support@247ch.at">support@247ch.at</a><br>
    Toll-free: <a href="tel:+18333193160">(833) 319-3160</a>
  </p>
  <p>See also: <a href="/privacy">Privacy Policy</a>.</p>
</main>

<?php include __DIR__ . '/includes/footer.php'; ?>
</body>
</html>
