import { generateSEOMetadata, generateStructuredData } from '@/lib/seo';
import { PrivacyPolicyPage } from '@/components/privacy-policy-page';
import type { Metadata } from 'next';

export async function generateMetadata(): Promise<Metadata> {
  return generateSEOMetadata({
    title: 'Privacy Policy | Rocky Mountain Vending',
    description: 'Privacy Policy for Rocky Mountain Vending',
    robots: {
      index: false,
      follow: false,
    },
  });
}

export default function PrivacyPolicy() {
  const structuredData = generateStructuredData({
    title: 'Privacy Policy',
    description: 'Privacy Policy for Rocky Mountain Vending',
    url: 'https://rockymountainvending.com/privacy-policy/',
    type: 'WebPage',
  });

  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
      />
      <PrivacyPolicyPage />
    </>
  );
}
