/* Standalone legal pages (Terms / Privacy). Theme e cream, no game chrome. */
html[data-hub-theme="e"], html {
  --bg: #FFF5EE;
  --text: #46313B;
  --muted: #77636D;
  --heading: #3B1822;
  --accent: #C0364A;
  --link: #B43A2E;
  --rule: #F0DAD3;
  --card: #FFFCFA;
}
html, body {
  margin: 0;
  background: linear-gradient(175deg, #FFF9F4 0%, #FFECE4 53%, #FFF0E9 100%);
  color: var(--text);
  font-family: Tahoma, "Segoe UI", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans CJK JP", "Noto Sans CJK KR", "Noto Sans CJK SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Hiragino Sans", "Yu Gothic", "Apple SD Gothic Neo", "Malgun Gothic", "PingFang SC", "Microsoft YaHei", "Noto Sans", system-ui, sans-serif;
  line-height: 1.75;
}
body { min-height: 100vh; }
.wrap { max-width: 740px; margin: 0 auto; padding: 20px 18px 56px; }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.bar a, .cross a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.bar a:hover, .cross a:hover { text-decoration: underline; }
.lg {
  font: inherit;
  min-height: 44px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 6px 10px;
}
h1 { font-size: 28px; margin: 0 0 8px; color: var(--heading); font-weight: 900; }
h2 { font-size: 19px; margin: 28px 0 8px; color: var(--accent); font-weight: 800; }
p, li { color: var(--text); overflow-wrap: break-word; }
a { color: var(--link); overflow-wrap: anywhere; word-break: break-word; }
.meta { color: var(--muted); margin-top: 0; }
.cross { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--rule); }
noscript .lang-en { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--rule); }
/* Without JS, only Arabic and English are shown. */
html:not(.js) .lang-fr,
html:not(.js) .lang-es,
html:not(.js) .lang-de,
html:not(.js) .lang-tr,
html:not(.js) .lang-pt,
html:not(.js) .lang-id,
html:not(.js) .lang-hi,
html:not(.js) .lang-ru,
html:not(.js) .lang-ja,
html:not(.js) .lang-ko,
html:not(.js) .lang-zh { display: none; }
html.js .lang-ar[hidden], html.js .lang-en[hidden],
html.js .lang-fr[hidden], html.js .lang-es[hidden], html.js .lang-de[hidden],
html.js .lang-tr[hidden], html.js .lang-pt[hidden], html.js .lang-id[hidden],
html.js .lang-hi[hidden], html.js .lang-ru[hidden], html.js .lang-ja[hidden],
html.js .lang-ko[hidden], html.js .lang-zh[hidden] { display: none; }
