import type { Metadata } from 'next'
import { getTranslations } from 'next-intl/server'

export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }): Promise<Metadata> {
  const { locale } = await params
  const t = await getTranslations({ locale, namespace: 'Legal' })
  return { title: t('legalNotice.title') }
}

export default async function LegalNoticePage() {
  const t = await getTranslations('Legal')
  return (
    <div className="main-page">
      <div className="middle-content">
        <div className="body-content">
          <div className="title-content">
            <h1>{t('legalNotice.title')}</h1>
          </div>
          <div className="box-content">
            <div className="body-box-content">
              <p>{t('legalNotice.p1')}</p>
              <br />
              <p>{t('legalNotice.p2')}</p>
              <br />
              <p>{t('legalNotice.p3')}</p>
              <br />
              <p>{t('legalNotice.p4')}</p>
              <br />
              <p>{t('legalNotice.p5')}</p>
              <br />
              <p className="second-brown">{t('legalNotice.contactTitle')}</p>
              <p>www.nightspire.gg</p>
              <p>consultas@nightspire.gg</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  )
}
