"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import LegalSection from '@/components/legal/LegalSection';

export default function ReferencePage() {
  return (
    <ThemeProvider
        defaultButtonVariant="elastic-effect"
        defaultTextAnimation="reveal-blur"
        borderRadius="soft"
        contentWidth="mediumSmall"
        sizing="largeSmall"
        background="floatingGradient"
        cardStyle="layered-gradient"
        primaryButtonStyle="flat"
        secondaryButtonStyle="layered"
        headingFontWeight="normal"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingOverlay
      navItems={[
        {
          name: "Home",          id: "#hero"},
        {
          name: "About",          id: "#about"},
        {
          name: "Services",          id: "#services"},
        {
          name: "Plans",          id: "#plans"},
        {
          name: "Testimonials",          id: "#testimonials"},
        {
          name: "FAQ",          id: "#faq"},
        {
          name: "Blog",          id: "#blog"},
        {
          name: "Reference",          id: "/reference"},
      ]}
      brandName="DIETANCE"
      button={{
        text: "Book Consultation",        href: "#contact"}}
    />
  </div>

  <div id="reference" data-section="reference">
    <LegalSection
      layout="page"
      title="References & Resources"
      subtitle="Key Information and Guidelines"
      sections={[
        {
          heading: "Terms of Service",          content: [
            { type: "paragraph", text: "Welcome to DIETANCE. By accessing or using our services, you agree to comply with and be bound by the following terms and conditions. Please review these terms carefully. If you do not agree to these terms, you should not use this site or our services." },
            { type: "numbered-list", items: ["Acceptance of Terms", "Modification of Terms", "Privacy Policy", "Intellectual Property", "User Conduct", "Disclaimer of Warranties", "Limitation of Liability", "Governing Law", "Contact Information"] }
          ]
        },
        {
          heading: "Privacy Policy",          content: [
            { type: "paragraph", text: "At DIETANCE, we are committed to protecting your privacy. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website and use our services." },
            { type: "list", items: ["Information We Collect", "How We Use Your Information", "Disclosure of Your Information", "Security of Your Information", "Your Choices Regarding Your Information", "Changes to This Privacy Policy"] }
          ]
        },
        {
          heading: "Disclaimer",          content: [
            { type: "paragraph", text: "The information provided by DIETANCE on our website and through our consultations is for general informational purposes only and does not constitute medical advice. Always seek the advice of a qualified healthcare professional for any questions you may have regarding a medical condition or health objectives." }
          ]
        }
      ]}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseCard
      logoSrc="http://img.b2bpic.net/free-vector/nutrition-logo-design-template_742173-29615.jpg"
      logoAlt="DIETANCE logo"
      logoText="DIETANCE"
      columns={[
        {
          title: "Services",          items: [
            {
              label: "Custom Diet Plans",              href: "#services"},
            {
              label: "Online Consultations",              href: "#services"},
            {
              label: "Family Programs",              href: "#services"},
          ],
        },
        {
          title: "Company",          items: [
            {
              label: "About Dr. Sharma",              href: "#about"},
            {
              label: "Plans & Pricing",              href: "#plans"},
            {
              label: "Testimonials",              href: "#testimonials"},
            {
              label: "Blog",              href: "#blog"},
            {
              label: "Reference",              href: "/reference"},
          ],
        },
        {
          title: "Support",          items: [
            {
              label: "FAQ",              href: "#faq"},
            {
              label: "Contact Us",              href: "#contact"},
            {
              label: "Privacy Policy",              href: "#"},
          ],
        },
      ]}
      copyrightText="© 2024 DIETANCE. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
