import type { Metadata } from 'next'
import Navbar from '@/components/Navbar'
import Footer from '@/components/Footer'
import TermsContent from './TermsContent'
import { siteConfig } from '@/lib/site'

const title = 'Terms of Service'
const description = 'Review the current GreenLens terms governing use of the app and related services.'

export const metadata: Metadata = {
  title,
  description,
  alternates: {
    canonical: '/terms',
  },
  openGraph: {
    title: `${title} | GreenLens`,
    description,
    url: `${siteConfig.domain}/terms`,
    type: 'website',
  },
  twitter: {
    card: 'summary_large_image',
    title: `${title} | GreenLens`,
    description,
  },
}

export default function TermsPage() {
  return (
    <>
      <Navbar />
      <TermsContent />
      <Footer />
    </>
  )
}
