/* Usovo — Open Source Notices page. Content mirrors terms/open-source-policy.md verbatim. */
const S = LegalStyles;

function OpenSourceNotices() {
  return (
    <div className="usovo-page" style={S.page}>
      <LegalHeader eyebrow="Legal" title="Open Source Notices" effective="September 4, 2026" />
      <main className="usovo-legal-container" style={S.container}>
        <p style={S.p}>Usovo runs speech-synthesis models locally on your device. Some of these are built on open-source models made available by their respective creators under permissive licenses. This page lists them, as required by those licenses — for the branding and marketing story behind Usovo's own model family, see <a href="/" style={{ color: '#5B6E2C' }}>usovo.in</a> or the in-app model cards.</p>
        <p style={S.p}>None of these licenses require payment, impose usage restrictions on Usovo, or affect your rights as a Usovo user — they're reproduced here for transparency and legal completeness.</p>

        <hr style={S.hr} />

        <h2 style={S.h2}>Lite</h2>
        <p style={S.p}>Built on <strong>Kokoro-82M</strong> by hexgrad.<br />
          <strong>License:</strong> Apache License, Version 2.0<br />
          <strong>License text:</strong> <a href="https://www.apache.org/licenses/LICENSE-2.0" style={{ color: '#5B6E2C' }}>apache.org/licenses/LICENSE-2.0</a>
        </p>
        <p style={S.p}>A small portion of Kokoro-82M's training data (under 12 hours total, out of several hundred) was drawn from the Koniwa dataset (CC BY 3.0) and the SIWIS dataset (CC BY 4.0). These are Creative Commons attributions from the model's own training process, reproduced here for completeness.</p>

        <h2 style={S.h2}>Spinto</h2>
        <p style={S.p}>Built on <strong>Qwen3-TTS-12Hz-0.6B-Base</strong> by Alibaba's Qwen team.<br />
          <strong>License:</strong> Apache License, Version 2.0<br />
          <strong>License text:</strong> <a href="https://www.apache.org/licenses/LICENSE-2.0" style={{ color: '#5B6E2C' }}>apache.org/licenses/LICENSE-2.0</a>
        </p>

        <h2 style={S.h2}>Character-voice attribution (audiobook narration)</h2>
        <p style={S.p}>Usovo's audiobook feature uses <strong>Qwen3-4B-Instruct-2507</strong> by Alibaba's Qwen team internally to detect chapter structure and attribute dialogue to characters. This runs locally on your device and is never exposed as a selectable voice model.<br />
          <strong>License:</strong> Apache License, Version 2.0<br />
          <strong>License text:</strong> <a href="https://www.apache.org/licenses/LICENSE-2.0" style={{ color: '#5B6E2C' }}>apache.org/licenses/LICENSE-2.0</a>
        </p>

        <hr style={S.hr} />

        <h2 style={{ ...S.h2, marginTop: 0 }}>Apache License 2.0 — summary</h2>
        <p style={S.p}>Each of the above is licensed under the Apache License, Version 2.0, a permissive open-source license that allows commercial use, modification, and redistribution. It requires only that the original copyright notice and license text be preserved and made available — as this page does — and that any changes made to the licensed material be noted. It does not require Usovo to open-source its own code, and it grants no trademark rights to the licensor's name or logo.</p>

        <hr style={S.hr} />

        <h2 style={{ ...S.h2, marginTop: 0 }}>Runtime &amp; tooling</h2>
        <p style={S.p}>Usovo's on-device inference runs on <strong>MLX</strong>, Apple's open-source array framework for Apple Silicon (Apache License, Version 2.0), via community-maintained MLX conversions of the models above.</p>

        <hr style={S.hr} />
        <p style={{ ...S.p, fontSize: 14, opacity: 0.5, fontStyle: 'italic' }}>This page will be updated as models are added, removed, or changed. If a future model ships under different license terms, that will be reflected here before release.</p>
      </main>
      <LegalFooter />
    </div>
  );
}
