// The public legal pages (GET /privacy/, GET /eula/): the owner-edited markdown under ui/legal/, // rendered by the SAME shared renderLegalHtml the offer uses (bundled from ui/src/lib/offer). 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 as the standalone /privacy/ page. export function renderPrivacy(markdown) { return renderLegalHtml(markdown, { title: 'Политика конфиденциальности — Эрудит', canonical: 'https://erudit-game.ru/privacy/', }); } // renderEula renders the end-user licence agreement markdown as the standalone /eula/ page. export function renderEula(markdown) { return renderLegalHtml(markdown, { title: 'Пользовательское соглашение — Эрудит', canonical: 'https://erudit-game.ru/eula/', }); }