import { Badge } from "@/components/ui/badge"
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
import Link from "next/link"

export default function TermsPage() {
  return (
    <div className="container mx-auto max-w-3xl px-4 py-8 space-y-6">
      <div className="space-y-3">
        <Badge variant="outline" className="w-fit text-xs font-normal">
          协议
        </Badge>
        <div className="space-y-2">
          <h1 className="text-2xl font-bold tracking-tight leading-tight">用户协议摘要</h1>
          <p className="text-sm leading-relaxed text-muted-foreground">
            平台规则围绕订单沟通、内容发布、争议处理和外部链接展开。
          </p>
        </div>
      </div>

      <Card className="overflow-hidden border-border/80 shadow-sm">
        <CardHeader className="border-b border-border/60">
          <CardTitle className="text-base">平台规则</CardTitle>
        </CardHeader>
        <CardContent className="p-0 text-sm leading-relaxed text-muted-foreground">
          <section className="border-b border-border/60 p-5">
            <h2 className="text-sm font-semibold text-foreground">订单沟通</h2>
            <p className="mt-2">订单沟通应在平台会话内完成，便于争议举证。</p>
          </section>
          <section className="border-b border-border/60 p-5">
            <h2 className="text-sm font-semibold text-foreground">内容发布</h2>
            <p className="mt-2">秀单帖仅可关联本人已完成订单，引用帖需标注来源。</p>
          </section>
          <section className="border-b border-border/60 p-5">
            <h2 className="text-sm font-semibold text-foreground">争议处理</h2>
            <p className="mt-2">争议进入审核后可申诉一次，最终结果以平台仲裁为准。</p>
          </section>
          <section className="border-b border-border/60 p-5">
            <h2 className="text-sm font-semibold text-foreground">外部链接</h2>
            <p className="mt-2">外部链接请谨慎访问，平台不对第三方站点内容负责。</p>
          </section>
          <section className="p-5">
            <h2 className="text-sm font-semibold text-foreground">隐私说明</h2>
            <p className="mt-2">
              隐私说明见
              <Link href="/privacy" className="text-primary hover:underline">
                隐私政策
              </Link>
              。
            </p>
          </section>
        </CardContent>
      </Card>
    </div>
  )
}
