import Link from 'next/link';
import { BookOpen, CheckCircle, Mail, RefreshCw, ShieldCheck, UserCheck } from 'lucide-react';
import CVHeader from '@/components/layout/CVHeader';
import CVFooter from '@/components/layout/CVFooter';

export const metadata = {
  title: 'Editorial Policy | Cambridge Veritas',
  description: 'Learn how Cambridge Veritas plans, reviews, updates and corrects its TESOL, English-teaching and professional-learning content.',
  alternates: { canonical: 'https://cambridgeveritas.com/editorial-policy' },
  robots: { index: true, follow: true },
};

const standards = [
  { icon: BookOpen, title: 'Useful and original', text: 'We create content to answer a defined learner or teacher need. Articles should add practical context, explanation or examples rather than simply restating another source.' },
  { icon: UserCheck, title: 'Reviewed for subject accuracy', text: 'Teacher-training content may be reviewed by a named teacher educator or subject specialist. The reviewer and review date are displayed when that review has taken place.' },
  { icon: ShieldCheck, title: 'Clear about evidence', text: 'Where an article relies on external research, standards or regulatory information, editors are expected to identify suitable primary or authoritative references and avoid unsupported guarantees.' },
  { icon: RefreshCw, title: 'Maintained over time', text: 'We review time-sensitive guidance when programmes, requirements, research or professional practice changes. Material updates are reflected in the visible review date.' },
];

export default function EditorialPolicyPage() {
  const schema = {
    '@context': 'https://schema.org',
    '@type': 'WebPage',
    name: 'Cambridge Veritas Editorial Policy',
    url: 'https://cambridgeveritas.com/editorial-policy',
    description: 'How Cambridge Veritas creates, reviews, updates and corrects educational content.',
    publisher: { '@type': 'Organization', name: 'Cambridge Veritas', url: 'https://cambridgeveritas.com' },
    dateModified: '2026-10-06',
  };

  return (
    <div className="min-h-screen bg-[#FAF5F0] text-[#1C0A12]">
      <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(schema).replace(/</g, '\\u003c') }} />
      <CVHeader />
      <main>
        <section className="border-b border-[#E8DDD5] bg-gradient-to-br from-[#2D0A18] via-[#4A1429] to-[#6B1E3D] px-4 py-16 text-white sm:py-20">
          <div className="mx-auto max-w-4xl">
            <p className="text-xs font-extrabold uppercase tracking-[0.24em] text-[#D4B038]">Editorial standards</p>
            <h1 className="mt-4 text-4xl font-black leading-tight sm:text-5xl">Cambridge Veritas Editorial Policy</h1>
            <p className="mt-5 max-w-3xl text-base leading-8 text-white/75">Our educational content is designed to be useful, transparent and responsible. This page explains how we commission, review, update and correct articles about TESOL, English teaching and professional learning.</p>
            <p className="mt-4 text-xs text-white/55">Last reviewed: 6 October 2026</p>
          </div>
        </section>

        <section className="px-4 py-14 sm:px-6">
          <div className="mx-auto max-w-4xl">
            <div className="grid gap-5 sm:grid-cols-2">
              {standards.map(({ icon: Icon, title, text }) => (
                <article key={title} className="rounded-3xl border border-[#E8DDD5] bg-white p-6 shadow-sm">
                  <div className="flex h-11 w-11 items-center justify-center rounded-2xl bg-[#4A1429] text-[#D4B038]"><Icon className="h-5 w-5" /></div>
                  <h2 className="mt-4 text-xl font-black">{title}</h2>
                  <p className="mt-2 text-sm leading-7 text-[#7A5C65]">{text}</p>
                </article>
              ))}
            </div>

            <div className="mt-10 space-y-8 rounded-3xl border border-[#E8DDD5] bg-white p-7 sm:p-10">
              <section>
                <h2 className="text-2xl font-black">Authors, editors and reviewers</h2>
                <p className="mt-3 leading-8 text-[#5F4450]">Articles identify the responsible editorial team and, where applicable, a named subject reviewer. Contributor credentials should be relevant to the topic. Organisational authorship is used when a piece is produced collaboratively and no single byline accurately represents the work.</p>
              </section>
              <section>
                <h2 className="text-2xl font-black">Sources and commercial independence</h2>
                <p className="mt-3 leading-8 text-[#5F4450]">Educational guidance may link to Cambridge Veritas programmes when the programme is a relevant next step. Those links do not change the standard applied to the article. We distinguish general information from programme details, avoid presenting marketing claims as independent evidence, and do not promise search rankings, employment or professional outcomes.</p>
              </section>
              <section>
                <h2 className="text-2xl font-black">Use of assisted tools</h2>
                <p className="mt-3 leading-8 text-[#5F4450]">Editors may use software-assisted research, drafting or quality checks. A human editor remains responsible for relevance, accuracy, originality, tone and publication. Sensitive claims, quotations, course facts and time-dependent information require human verification before publication.</p>
              </section>
              <section>
                <h2 className="text-2xl font-black">Corrections and feedback</h2>
                <p className="mt-3 leading-8 text-[#5F4450]">When a substantive error is confirmed, we correct the article and update its review date. Minor spelling or formatting changes may be made without a correction note. To report an issue, include the article URL, the statement in question and a reliable supporting source.</p>
                <a href="mailto:contact@cambridgeveritas.com?subject=Editorial%20correction" className="mt-5 inline-flex items-center gap-2 rounded-xl bg-[#4A1429] px-5 py-3 text-sm font-extrabold text-white"><Mail className="h-4 w-4" /> Request a correction</a>
              </section>
            </div>

            <div className="mt-10 flex flex-wrap items-center justify-between gap-4 rounded-3xl bg-[#FFFBEB] p-6 ring-1 ring-[#D4B038]/30">
              <div><p className="font-black">Explore reviewed teacher-development guidance</p><p className="mt-1 text-sm text-[#7A5C65]">Browse certification, methodology, assessment and teaching-practice resources.</p></div>
              <Link href="/blog/teacher-training" className="inline-flex items-center gap-2 rounded-xl bg-[#4A1429] px-5 py-3 text-sm font-extrabold text-white">TESOL resources <CheckCircle className="h-4 w-4" /></Link>
            </div>
          </div>
        </section>
      </main>
      <CVFooter />
    </div>
  );
}
