// pages-legal.jsx
const { useEffect:useELg } = React;

const LEGAL = {
  "terms": {
    title:"Terms of Use",
    updated:"Last Updated: 31 May 2026",
    intro:"Welcome to Debaters' Tribune, a publication of DebaterVerse Limited. These Terms of Use govern your access to and use of DebatersTribune.com, including all articles, contributor profiles, newsletters, submissions, and related services. By accessing, reading, contributing to, or otherwise using the platform, you agree to these terms.",
    sections:[
      { h:"About Debaters' Tribune", body:[
        "Debaters' Tribune is an editorial publication dedicated to preserving the stories, experiences, histories, and human realities of debate communities around the world.",
        "The platform exists to document what debate does to people, not simply who wins competitions."] },
      { h:"Using the platform", body:[
        "You may access, read, share, and link to content published on Debaters' Tribune for personal and non-commercial purposes.",
        "You agree not to interfere with or disrupt the operation of the website, attempt unauthorized access to systems, accounts, or data, scrape, harvest, or reproduce content at scale without permission, republish complete articles, essays, interviews, or other content without written authorization, or misrepresent your identity or affiliation when interacting with the platform.",
        "We reserve the right to restrict access to any user who violates these terms."] },
      { h:"Contributor submissions", body:[
        "Debaters' Tribune welcomes pitches, essays, personal narratives, interviews, historical accounts, and other contributions from members of the global debate community.",
        "By submitting content, you confirm that the work is your own or you have the right to submit it, the information provided is accurate to the best of your knowledge, the submission does not knowingly infringe on the rights of others, and you have obtained any permissions necessary for third-party materials included in the submission.",
        "Submission does not guarantee publication. All submissions are subject to editorial review, fact-checking, editing, and publication decisions at the discretion of Debaters' Tribune."] },
      { h:"Rights and ownership", body:[
        "Contributors retain ownership of their original work.",
        "By publishing with Debaters' Tribune, you grant DebaterVerse Limited a non-exclusive, worldwide, royalty-free license to edit and format the work for publication, host and archive the work indefinitely, distribute the work through the website, newsletters, social media channels, podcasts, video content, and future publication formats, and promote the work with appropriate attribution.",
        "Unless otherwise agreed in writing, contributors remain free to republish their work elsewhere."] },
      { h:"Editorial independence", body:[
        "Debaters' Tribune reserves the right to edit, decline, remove, update, or archive content in accordance with its editorial standards and policies.",
        "Publication does not imply endorsement of every opinion expressed by contributors. Views expressed by authors are their own and do not necessarily represent the views of Debaters' Tribune, DebaterVerse Limited, its editors, partners, or affiliates."] },
      { h:"Intellectual property", body:[
        "The Debaters' Tribune name, branding, visual identity, website design, logos, editorial compilations, and original platform materials are the intellectual property of DebaterVerse Limited unless otherwise indicated.",
        "Individual articles, essays, interviews, and contributor content remain the property of their respective authors.",
        "Unauthorized commercial use of platform content is prohibited."] },
      { h:"Accuracy and historical content", body:[
        "Many articles on Debaters' Tribune discuss personal experiences, memories, historical events, and community perspectives.",
        "While we strive for accuracy, we do not guarantee that all content will be complete, current, or error-free. Readers should understand that personal narratives and opinion pieces reflect individual viewpoints."] },
      { h:"Third-party links", body:[
        "The platform may contain links to third-party websites, organizations, tournaments, publications, or resources.",
        "Debaters' Tribune is not responsible for the content, availability, or practices of external websites."] },
      { h:"Limitation of liability", body:[
        "The platform is provided on an \"as is\" and \"as available\" basis.",
        "To the fullest extent permitted by applicable law, DebaterVerse Limited shall not be liable for any direct, indirect, incidental, consequential, or special damages arising from use of the platform, inability to access the platform, reliance on published content, or errors, interruptions, or technical failures."] },
      { h:"Changes to these terms", body:[
        "We may update these Terms of Use as the publication evolves.",
        "Material changes will be reflected by updating the \"Last Updated\" date above. Continued use of the platform after changes take effect constitutes acceptance of the revised terms."] },
      { h:"Contact", body:[
        "Questions regarding these Terms of Use may be directed to DebaterVerse Limited — Debaters' Tribune at hello@debaterstribune.com."] },
    ],
  },
  "privacy": {
    title:"Privacy Policy",
    updated:"Last Updated: 31 May 2026",
    intro:"At Debaters' Tribune, we believe stories should be shared, not personal data. This Privacy Policy explains what information we collect, how we use it, and the choices you have regarding your information when you visit DebatersTribune.com. Our approach is simple: we collect only the information we need to operate the publication and serve our readers, contributors, and community.",
    sections:[
      { h:"Information we collect", body:[
        "Newsletter subscriptions: When you subscribe to The Dispatch or any of our newsletters, we collect your first name and email address. This information is used solely to send you the content you requested and to communicate with you about the publication.",
        "Story pitches and contributor submissions: When you submit a pitch or contribution, we may collect your name, email address, professional or contributor information, the content of your submission, and any supporting materials you provide. We use this to review submissions, communicate with contributors, and manage the editorial process.",
        "Website analytics: We collect limited analytics to understand how readers use the site — pages visited, referral sources, device and browser information, general geographic region, and time spent on pages. Where possible, this is aggregated and anonymised. We do not use analytics to identify individual readers."] },
      { h:"How we use information", body:[
        "We use the information we collect to deliver newsletters and updates you request, review and manage contributor submissions, respond to inquiries and correspondence, improve the website and editorial experience, understand what content is valuable to readers, and maintain the security and reliability of the platform.",
        "We do not use your information for unrelated advertising purposes."] },
      { h:"Sharing information", body:[
        "We do not sell, rent, or trade personal information.",
        "We may share information only with trusted service providers that help us operate the publication — such as email delivery providers, website hosting and infrastructure providers, analytics services, and content management platforms. These providers may access information only as necessary to perform services on our behalf and are required to protect it appropriately.",
        "We may also disclose information when required by law or when necessary to protect the rights, safety, or integrity of Debaters' Tribune, its contributors, or its readers."] },
      { h:"Contributor content", body:[
        "Information that contributors choose to publish as part of an article, biography, interview, or contributor profile may become publicly available on the website.",
        "Contributors should carefully consider what information they choose to include in published content."] },
      { h:"Data retention", body:[
        "We retain personal information only for as long as reasonably necessary to provide requested services, maintain publication records, fulfil legal and operational obligations, and preserve published archives.",
        "Published articles and contributor records may remain archived indefinitely as part of the historical record of the publication."] },
      { h:"Your rights and choices", body:[
        "Depending on your location and applicable law, you may have the right to access personal information we hold about you, correct inaccurate information, request deletion of personal information, withdraw consent to receive communications, and request information about how your data is used.",
        "You may unsubscribe from newsletters at any time using the unsubscribe link included in every email.",
        "To request access, correction, or deletion of personal information, contact privacy@debaterstribune.com. We will respond within a reasonable timeframe and in accordance with applicable law."] },
      { h:"Cookies", body:[
        "Debaters' Tribune may use essential cookies and similar technologies required for site functionality, security, analytics, and performance.",
        "We do not use cookies to build advertising profiles or sell audience data."] },
      { h:"Third-party services", body:[
        "The website may contain links to third-party websites, publications, tournaments, organisations, and resources.",
        "We are not responsible for the privacy practices of external sites and encourage users to review their policies separately."] },
      { h:"Changes to this policy", body:[
        "We may update this Privacy Policy from time to time as the publication evolves. When significant changes are made, the revised date at the top of this page will be updated.",
        "Continued use of the platform after updates take effect constitutes acceptance of the revised policy."] },
      { h:"Contact", body:[
        "Questions regarding this Privacy Policy may be directed to Debaters' Tribune — DebaterVerse Limited at hello@debaterstribune.com."] },
    ],
  },
  "editorial": {
    title:"Editorial Policy",
    updated:"Last Updated: 31 May 2026",
    intro:"Debaters' Tribune is an independent publication dedicated to documenting the human experience of debate. We publish stories about identity, ambition, friendship, failure, belonging, transition, memory, and growth. Our focus is not what happened on the ballot. Our focus is what happened to the people holding it. We do not document who won. We document what debate does to people.",
    sections:[
      { h:"What we publish", body:[
        "We publish narrative-driven writing rooted in lived experience. Every published piece should be grounded in a real experience, event, or reflection; written in a clear and accessible voice; focused on storytelling rather than reporting; driven by insight, memory, or personal perspective; and structured around a meaningful moment, question, tension, or transformation.",
        "We welcome work from every debate format, circuit, and generation, including voices that have historically been excluded from the dominant narratives of debate.",
        "Our primary sections are: Essays — personal reflections, lessons, and lived experiences. Histories — stories that preserve people, institutions, and moments from debate's past. Beyond — pieces exploring life after debate and the ways debating continues to shape people beyond competition."] },
      { h:"What we do not publish", body:[
        "Debaters' Tribune is not a results archive, rankings platform, or tournament news outlet.",
        "As a general rule, we do not publish tournament results or rankings, tab summaries or competitive recaps, breaking news coverage, promotional content disguised as editorial work, or personal attacks, harassment, or defamatory content.",
        "Competition may appear in our stories, but it is never the story itself."] },
      { h:"Working with contributors", body:[
        "We commission as much as we collect. Many contributors are first-time writers. We believe important stories should not be limited to people who already know how to write for publication.",
        "Contributors may work directly with an editor to develop an idea from a written pitch, a conversation, an interview, voice notes, or draft notes and personal reflections.",
        "Our editorial process is collaborative. We edit for clarity, structure, pacing, and readability while preserving the voice, perspective, and intent of the contributor. Nothing is published without contributor approval.",
        "Published work is attributed to its author unless anonymity is requested and approved for reasons of privacy, safety, or professional sensitivity."] },
      { h:"Accuracy and fairness", body:[
        "We prioritise truthfulness of experience. Many pieces published by Debaters' Tribune are personal narratives and reflections. These stories represent the author's memory, interpretation, and perspective.",
        "Where articles discuss identifiable individuals, organisations, or institutions, we take reasonable steps to ensure fairness, accuracy, and context.",
        "If we discover a significant factual error, we will correct it promptly and transparently."] },
      { h:"Corrections", body:[
        "When errors are identified, we aim to correct them as quickly as possible. Substantive corrections may be accompanied by an editor's note explaining what was changed.",
        "Readers may report potential errors by contacting hello@debaterstribune.com."] },
      { h:"Independence", body:[
        "Debaters' Tribune operates independently of tournaments, debate unions, sponsors, leagues, institutions, and governing bodies.",
        "Editorial decisions are made solely by the publication's editorial team. Partnerships, sponsorships, or financial relationships do not determine what we publish, what we investigate, or whose stories we tell."] },
      { h:"Representation", body:[
        "Debate is larger than any single circuit, country, institution, or format.",
        "We actively seek stories from underrepresented regions, communities, and generations of debaters. Our goal is to build a richer and more complete record of debate's global culture than currently exists.",
        "No single experience represents debate. The archive grows through many voices."] },
      { h:"Our standard", body:[
        "The question that guides every editorial decision is simple: Will this help future debaters better understand what it felt like to be here?"] },
    ],
  },
};

function LegalPage({ doc }){
  useELg(()=>{ window.scrollTo(0,0); },[doc]);
  const d = LEGAL[doc];
  if(!d) return <div className="wrap" style={{padding:"120px 0"}}>Page not found.</div>;
  const others = Object.keys(LEGAL).filter(k=>k!==doc);
  return (
    <div className="route-enter">
      <header className="wrap" style={{maxWidth:760,paddingTop:"clamp(40px,6vw,76px)"}}>
        <div className="kicker">Legal</div>
        <h1 style={{fontFamily:"var(--ff-display)",fontWeight:800,fontSize:"clamp(36px,5.4vw,64px)",lineHeight:0.98,letterSpacing:"-0.024em",marginTop:14}}>{d.title}</h1>
        <div className="mono" style={{fontSize:11,letterSpacing:"0.08em",color:"var(--fg-muted)",marginTop:16}}>{d.updated.toUpperCase()}</div>
        <p style={{fontFamily:"var(--ff-body)",fontSize:"clamp(18px,1.7vw,21px)",lineHeight:1.55,marginTop:24}}>{d.intro}</p>
      </header>

      <article className="wrap" style={{maxWidth:760,paddingTop:"clamp(32px,4vw,48px)",paddingBottom:"clamp(48px,6vw,80px)"}}>
        {d.sections.map((s,i)=>(
          <section key={i} style={{paddingTop:36,borderTop:"1px solid var(--hair)",marginTop:36}}>
            <h2 style={{fontFamily:"var(--ff-display)",fontWeight:700,fontSize:"clamp(21px,2.2vw,27px)",letterSpacing:"-0.01em"}}>{s.h}</h2>
            {s.body.map((p,j)=>(
              <p key={j} style={{fontFamily:"var(--ff-body)",fontSize:"clamp(16.5px,1.4vw,19px)",lineHeight:1.62,marginTop:16,color:"var(--fg)"}}>{p}</p>
            ))}
          </section>
        ))}
      </article>

      <div className="wrap" style={{maxWidth:760,paddingBottom:"clamp(56px,8vw,100px)"}}>
        <hr className="hairline"/>
        <div style={{display:"flex",gap:24,flexWrap:"wrap",marginTop:24}}>
          {others.map(k=>(
            <a key={k} href={"#/"+k} onClick={(e)=>{e.preventDefault();go("/"+k);}} className="label" style={{color:"var(--accent)"}}>{LEGAL[k].title} →</a>
          ))}
        </div>
      </div>
    </div>
  );
}

Object.assign(window, { LegalPage });
