import { View, ScrollView } from "react-native";
import { ScreenWrapper } from "@/components/ScreenWrapper";
import { StandardHeader } from "@/components/StandardHeader";
import { Text } from "@/components/ui/text";

export default function TermsScreen() {
  return (
    <ScreenWrapper className="bg-background">
      <StandardHeader title="Terms of Service" showBack />

      <ScrollView className="flex-1 px-5 pt-4" showsVerticalScrollIndicator={false}>
        <Text variant="h4" className="text-foreground mb-4">
          Terms of Service
        </Text>
        <Text className="text-muted-foreground mb-4">
          Last updated: March 10, 2026
        </Text>

        <Text variant="p" className="font-sans-semibold text-foreground mb-2">
          1. Acceptance of Terms
        </Text>
        <Text className="text-muted-foreground mb-4">
          By accessing and using our mobile application, you accept and agree to be bound by the terms and provision of this agreement.
        </Text>

        <Text variant="p" className="font-sans-semibold text-foreground mb-2">
          2. Use of Service
        </Text>
        <Text className="text-muted-foreground mb-4">
          Our service is provided "as is" and "as available" without warranties of any kind. You agree to use the service at your own risk.
        </Text>

        <Text variant="p" className="font-sans-semibold text-foreground mb-2">
          3. User Accounts
        </Text>
        <Text className="text-muted-foreground mb-4">
          When you create an account with us, you must provide information that is accurate, complete, and current at all times.
        </Text>

        <Text variant="p" className="font-sans-semibold text-foreground mb-2">
          4. Prohibited Uses
        </Text>
        <Text className="text-muted-foreground mb-4">
          You may not use our service:
        </Text>
        <Text className="text-muted-foreground mb-2">
          • For any unlawful purpose or to solicit others to perform unlawful acts
        </Text>
        <Text className="text-muted-foreground mb-2">
          • To violate any international, federal, provincial, or state regulations, rules, laws, or local ordinances
        </Text>
        <Text className="text-muted-foreground mb-4">
          • To infringe upon or violate our intellectual property rights or the intellectual property rights of others
        </Text>

        <Text variant="p" className="font-sans-semibold text-foreground mb-2">
          5. Termination
        </Text>
        <Text className="text-muted-foreground mb-4">
          We may terminate or suspend your account and bar access to the service immediately, without prior notice or liability, under our sole discretion.
        </Text>

        <Text variant="p" className="font-sans-semibold text-foreground mb-2">
          6. Limitation of Liability
        </Text>
        <Text className="text-muted-foreground mb-4">
          In no event shall our company, nor its directors, employees, partners, agents, suppliers, or affiliates, be liable for any indirect, incidental, special, consequential, or punitive damages.
        </Text>

        <Text variant="p" className="font-sans-semibold text-foreground mb-2">
          7. Changes to Terms
        </Text>
        <Text className="text-muted-foreground mb-4">
          We reserve the right, at our sole discretion, to modify or replace these Terms at any time. If a revision is material, we will try to provide at least 30 days notice prior to any new terms taking effect.
        </Text>

        <Text variant="p" className="font-sans-semibold text-foreground mb-2">
          8. Contact Information
        </Text>
        <Text className="text-muted-foreground mb-4">
          If you have any questions about these Terms of Service, please contact us at terms@example.com.
        </Text>
      </ScrollView>
    </ScreenWrapper>
  );
}
