/* The privacy policy, terms of use, and account-deletion pages (privacy.html, terms.html, delete-account.html): the game's
   dark look (like offline.html), readable on a phone. legal.js picks the language (English, Turkish, Spanish, Portuguese, German). */
:root { --bg: #0B1020; --surface: #151B36; --edge: #2A3260; --text: #EEF1FF; --muted: #9AA3C7; --gold: #FFC24B; --primary: #7C5CFF; }
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px;
       font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
       padding: calc(env(safe-area-inset-top, 0px) + 16px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 32px) max(16px, env(safe-area-inset-left, 0px)); }
main, header, footer { max-width: 720px; margin: 0 auto; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--edge); }
.brand { color: var(--gold); font-weight: 900; text-decoration: none; letter-spacing: .02em; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--edge); }
.lang button { min-height: 40px; min-width: 44px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--muted);
               font: inherit; font-weight: 800; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--primary); color: #fff; }
h1 { margin: 24px 0 4px; font-size: clamp(26px, 7vw, 34px); line-height: 1.2; }
h2 { margin: 28px 0 6px; font-size: 20px; color: var(--gold); }
p, li { color: var(--text); }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.updated { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
a { color: #8FB4FF; overflow-wrap: anywhere; }
.contact { margin: 18px 0; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--edge); }
.contact p { margin: 2px 0; }
.contact .label { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.note { padding: 12px 14px; border-radius: 14px; background: rgba(255, 194, 75, .1); border: 1px solid rgba(255, 194, 75, .35); }
/* Only the chosen language shows. */
html:not([data-lang="en"]) [data-l="en"], html:not([data-lang="tr"]) [data-l="tr"], html:not([data-lang="es"]) [data-l="es"],
html:not([data-lang="pt"]) [data-l="pt"], html:not([data-lang="de"]) [data-l="de"] { display: none !important; }
footer { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--edge); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
footer a { min-height: 40px; display: inline-flex; align-items: center; color: var(--muted); }

/* Inside the game (?embed=1, legal.js): the sheet around the frame has the title. */
[data-embed] body > header { display: none; }
[data-embed] body { padding-top: 4px; }
