import React from "react";
import type { Metadata } from "next";
import Header from "@/components/Header";
import Footer from "@/components/Footer";

export const metadata: Metadata = {
  title: "Terms of Service — AV Beat",
  description: "AV Beat Terms of Service — the rules governing use of our platform.",
};

export default function TermsPage() {
  return (
    <div className="min-h-screen bg-background">
      <Header />
      <div className="bg-[#111] border-b border-[#222] py-8">
        <div className="max-w-container mx-auto px-4">
          <h1 className="font-heading text-[#0F172A] text-3xl font-bold">Terms of Service</h1>
          <p className="text-[#475569] font-body text-sm mt-2">Last updated: March 2026</p>
        </div>
      </div>
      <main className="max-w-container mx-auto px-4 py-10">
        <div className="max-w-3xl space-y-8 font-body text-[#1e293b] leading-relaxed">
          <section>
            <h2 className="font-heading text-[#0F172A] text-xl font-bold mb-3">1. Acceptance of Terms</h2>
            <p>By accessing and using AV Beat, you accept and agree to be bound by the terms and provisions of this agreement. If you do not agree to these terms, please do not use our service.</p>
          </section>
          <section>
            <h2 className="font-heading text-[#0F172A] text-xl font-bold mb-3">2. Use of Content</h2>
            <p>All content on AV Beat is the property of Relevant Media Properties or its content suppliers and is protected by applicable intellectual property laws. You may not reproduce, distribute, or create derivative works from our content without express written permission.</p>
          </section>
          <section>
            <h2 className="font-heading text-[#0F172A] text-xl font-bold mb-3">3. User Accounts</h2>
            <p>If you create an account on AV Beat, you are responsible for maintaining the confidentiality of your account credentials and for all activities that occur under your account. You agree to notify us immediately of any unauthorized use of your account.</p>
          </section>
          <section>
            <h2 className="font-heading text-[#0F172A] text-xl font-bold mb-3">4. Community Standards</h2>
            <p>Users participating in our forum and community features agree to maintain respectful discourse. We reserve the right to remove content and suspend accounts that violate our community standards, including content that is abusive, defamatory, or otherwise harmful.</p>
          </section>
          <section>
            <h2 className="font-heading text-[#0F172A] text-xl font-bold mb-3">5. Disclaimer of Warranties</h2>
            <p>AV Beat is provided "as is" without warranty of any kind. We do not warrant that the service will be uninterrupted or error-free. We make no warranties regarding the accuracy or completeness of any content on the site.</p>
          </section>
          <section>
            <h2 className="font-heading text-[#0F172A] text-xl font-bold mb-3">6. Limitation of Liability</h2>
            <p>Relevant Media Properties shall not be liable for any indirect, incidental, special, consequential, or punitive damages resulting from your use of or inability to use the service.</p>
          </section>
          <section>
            <h2 className="font-heading text-[#0F172A] text-xl font-bold mb-3">7. Contact</h2>
            <p>Questions about these Terms? Contact us at <a href="mailto:legal@avbeat.com" className="text-[#1D4ED8] hover:underline">legal@avbeat.com</a>.</p>
          </section>
        </div>
      </main>
      <Footer />
    </div>
  );
}
