// The public legal pages (GET /privacy/, GET /eula/): the owner-edited RU + EN markdown under // ui/legal/, rendered by the SAME shared renderLegalHtml the offer uses (bundled from ui/src/lib/offer) // into one bilingual page with a language + theme switcher. Unlike the offer, these carry no dynamic // data — no backend fetch, no marker splice. Kept out of server.mjs so the per-page title/canonical // presets are unit-testable without HTTP (test/legal.test.mjs). import { renderLegalHtml } from '../dist/gameimage.mjs'; // renderPrivacy renders the privacy-policy markdown (RU + EN) as the standalone /privacy/ page. export function renderPrivacy(ruMd, enMd) { return renderLegalHtml({ ru: { md: ruMd, title: 'Политика конфиденциальности — Эрудит' }, en: { md: enMd, title: 'Privacy Policy — Erudit' }, canonical: 'https://erudit-game.ru/privacy/', }); } // renderEula renders the end-user licence agreement markdown (RU + EN) as the standalone /eula/ page. export function renderEula(ruMd, enMd) { return renderLegalHtml({ ru: { md: ruMd, title: 'Пользовательское соглашение — Эрудит' }, en: { md: enMd, title: 'Terms of Use — Erudit' }, canonical: 'https://erudit-game.ru/eula/', }); }