<Layouts.app flash={@flash} current_scope={@current_scope}>
  <article class="mx-auto max-w-4xl">
    <div class="text-sm font-semibold text-brand">WHO NEED HELP</div>
    <h1 class="mt-2 text-4xl font-black">Terms of Service</h1>
    <p class="mt-3 text-sm text-base-content/60">Effective: 21 July 2026</p>
    <p class="mt-5 leading-7 text-base-content/75">
      These terms describe the conditions for using Who Need Help. The service coordinates
      voluntary help and optional social activities between adults; it is not the provider of the
      requested help.
    </p>

    <div class="mt-10 space-y-8 leading-7 text-base-content/75">
      <section aria-labelledby="terms-eligibility">
        <h2 id="terms-eligibility" class="text-2xl font-bold text-base-content">
          Eligibility and acceptance
        </h2>
        <p class="mt-3">
          You must be at least 18 years old and able to agree to these terms. When registering or
          using protected features, you agree to these terms and the <.link
            href={~p"/safety"}
            class="link font-semibold"
          >Safety Rules</.link>. You must provide
          accurate account information, protect access to your email and password, and use only
          accounts you are authorized to control.
        </p>
      </section>

      <section aria-labelledby="terms-service">
        <h2 id="terms-service" class="text-2xl font-bold text-base-content">
          Nature of the service
        </h2>
        <p class="mt-3">
          Help is voluntary and has no required fee. Who Need Help does not employ, dispatch,
          background-check, insure, or continuously supervise helpers and cannot guarantee a
          match, identity, arrival time, route, item, handover, conduct, or outcome. Ratings,
          social links, email confirmation, location, and handover evidence are useful signals,
          not guarantees.
        </p>
        <p class="mt-3">
          The service is not an emergency, medical, pharmacy, transport, roadside-assistance, or
          payment service. In immediate danger, contact the emergency service for your location.
        </p>
      </section>

      <section aria-labelledby="terms-conduct">
        <h2 id="terms-conduct" class="text-2xl font-bold text-base-content">Acceptable use</h2>
        <p class="mt-3">
          Follow applicable law, pharmacy and venue rules, the Safety Rules, and other people's
          consent and privacy. Do not request or provide unlawful goods or services, medical
          advice, prescriptions, controlled substances, cash advances, harassment, threats,
          impersonation, fraud, spam, sexual exploitation, non-consensual intimate material,
          instructions for wrongdoing, or content that violates another person's rights. Do not
          manipulate matches, evidence, reviews, votes, tracking, or reputation.
        </p>
      </section>

      <section aria-labelledby="terms-content">
        <h2 id="terms-content" class="text-2xl font-bold text-base-content">
          Your content and privacy
        </h2>
        <p class="mt-3">
          You retain responsibility for content you submit. You give Who Need Help the limited
          permission needed to store, display, transmit, moderate, back up, and otherwise process
          that content to operate and protect the service. Submit only information you have the
          right to share, and never publish home access codes, identity documents, prescriptions,
          payment credentials, or unnecessary sensitive information.
        </p>
        <p class="mt-3">
          Location sharing is controlled by the product settings and remains your choice. Data
          handling is described in the <.link href={~p"/privacy"} class="link font-semibold">Privacy Policy</.link>.
        </p>
      </section>

      <section aria-labelledby="terms-thanks">
        <h2 id="terms-thanks" class="text-2xl font-bold text-base-content">
          Optional thanks and third parties
        </h2>
        <p class="mt-3">
          A helper may publish an external thank-you link after a completed handover. Any transfer
          is optional and occurs outside Who Need Help. The service does not receive, split,
          refund, guarantee, or report it. Google sign-in, map tiles, social profiles, email
          delivery, and external links are also subject to their respective operators' terms and
          policies.
        </p>
      </section>

      <section aria-labelledby="terms-moderation">
        <h2 id="terms-moderation" class="text-2xl font-bold text-base-content">
          Moderation and availability
        </h2>
        <p class="mt-3">
          Who Need Help may hide content, limit features, suspend an account, preserve evidence,
          or cooperate with a lawful request when reasonably needed for safety, integrity,
          operation, or legal compliance. Automated signals can prioritize review but are not
          treated as proof by themselves. Use in-product reporting, the <.link
            href={~p"/support"}
            class="link font-semibold"
          >support form</.link>, or the
          <.link href={~p"/legal/content-removal"} class="link font-semibold">content-removal form</.link>
          to request review.
        </p>
        <p class="mt-3">
          Features may change or be interrupted for maintenance, security, provider failure, or
          circumstances outside the operator's control. Nothing in these terms excludes rights or
          responsibilities that applicable law does not permit the parties to exclude.
        </p>
      </section>

      <section aria-labelledby="terms-ending">
        <h2 id="terms-ending" class="text-2xl font-bold text-base-content">
          Ending use and changes
        </h2>
        <p class="mt-3">
          You may stop using the service and submit an <.link
            href={~p"/account/delete"}
            class="link font-semibold"
          >account-deletion request</.link>.
          Some safety, fraud, support, completed-help, backup, or legal records may need to remain,
          as explained in the Privacy Policy. Updated terms will be published here with a new
          effective date; material changes should be reviewed before continuing to use the
          service.
        </p>
      </section>

      <section aria-labelledby="terms-contact">
        <h2 id="terms-contact" class="text-2xl font-bold text-base-content">Contact</h2>
        <p class="mt-3">
          Questions, disputes, appeals, and accessibility issues can be submitted through the <.link
            href={~p"/support"}
            class="link font-semibold"
          >Who Need Help support form</.link>.
        </p>
      </section>
    </div>
  </article>
</Layouts.app>
