import type { LegalPageFields } from '@/types/legal'

interface LegalPageSectionProps {
  fields: LegalPageFields
}

export function LegalPageSection({ fields }: LegalPageSectionProps) {
  return (
   <div>
 
     <main className=" text-primary bg-white">
      <section>
        <div className="mx-auto max-w-6xl px-5 stackinline pb-20 md:pb-24 xl:pb-[150px]">
          <article
            // className="legal-content text-base leading-7 text-primary [&_a]:text-secondary [&_a]:underline [&_b]:font-semibold [&_h1]:mb-6 [&_h1]:text-4xl [&_h1]:font-bold [&_h2]:mb-5 [&_h2]:mt-8 [&_h2]:text-3xl [&_h2]:font-bold [&_h3]:mb-4 [&_h3]:mt-7 [&_h3]:text-2xl [&_h3]:font-semibold [&_h4]:mb-3 [&_h4]:mt-6 [&_h4]:text-xl [&_h4]:font-semibold [&_h5]:mb-3 [&_h5]:mt-5 [&_h5]:text-lg [&_h5]:font-semibold [&_h6]:mb-2 [&_h6]:mt-4 [&_h6]:text-base [&_h6]:font-semibold [&_li]:mb-2 [&_ol]:mb-5 [&_ol]:list-decimal [&_ol]:pl-6 [&_p]:mb-4 [&_strong]:font-semibold [&_ul]:mb-5 [&_ul]:list-disc [&_ul]:pl-6"
            dangerouslySetInnerHTML={{ __html: fields.content }}
          />
          
        </div>
      </section>
    </main>
   </div>
  )
}
