/* TruePets — the legal pages (privacy policy, terms of use, support): one quiet, readable document style, in Hebrew
   (right to left) and English, light and dark. Opened in a browser (the store listings link here) and inside the game
   (Settings → About), where ?app=1 drops the page's own header links. No external fonts or scripts. */
:root {
  --ink: #1d2433;
  --muted: #5b6475;
  --faint: #8a93a3;
  --line: #e3e7ee;
  --soft: #f5f7fa;
  --page: #ffffff;
  --bg: #eef2f7;
  --accent: #1a5dc4;
  --accent2: #e0700a;
  --note: #fff7ea;
  --note-line: #f3d7a6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e7ebf2;
    --muted: #aab3c2;
    --faint: #7d8797;
    --line: #2c3442;
    --soft: #1b212c;
    --page: #141922;
    --bg: #0d1118;
    --accent: #7fb2ff;
    --accent2: #ffaa5c;
    --note: #2a2214;
    --note-line: #5a4523;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans Hebrew", sans-serif;
}
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}
.sheet {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px clamp(18px, 5vw, 52px) 44px;
}
.brand {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.brand .logo { direction: ltr; font-weight: 800; font-size: 26px; letter-spacing: -.5px; text-decoration: none; }
.brand .logo .a { color: var(--accent); }
.brand .logo .b { color: var(--accent2); }
.brand nav { display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.brand nav a {
  color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.brand nav a:hover, .brand nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }

h1 { font-size: clamp(26px, 4.6vw, 34px); line-height: 1.2; margin: 0 0 6px; letter-spacing: -.3px; }
.meta { color: var(--faint); font-size: 14px; margin: 0 0 26px; }
h2 {
  font-size: 20px; line-height: 1.35; margin: 40px 0 10px; padding-top: 6px;
  scroll-margin-top: 16px;
}
h2 .n { color: var(--accent); font-variant-numeric: tabular-nums; margin-inline-end: 8px; }
h3 { font-size: 16.5px; margin: 22px 0 6px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 14px; padding-inline-start: 22px; }
li { margin: 4px 0; }
a { color: var(--accent); }
strong { font-weight: 650; }

.summary {
  background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 8px; margin: 0 0 28px;
}
.summary h2 { margin: 0 0 8px; font-size: 17px; padding: 0; }
.summary ul { padding-inline-start: 20px; }

.note {
  background: var(--note); border: 1px solid var(--note-line); border-radius: 12px; padding: 12px 16px; margin: 14px 0;
  font-size: 15px;
}

.toc { border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; margin: 0 0 8px; }
.toc strong { display: block; margin-bottom: 6px; font-size: 15px; color: var(--muted); }
.toc ol { margin: 0; columns: 2 260px; column-gap: 28px; font-size: 15px; }
.toc li { break-inside: avoid; }
.toc a { text-decoration: none; }

.table-wrap { overflow-x: auto; margin: 10px 0 18px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; line-height: 1.55; }
th, td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 650; color: var(--muted); font-size: 13.5px; }
tr:last-child td { border-bottom: 0; }

.ltr { direction: ltr; unicode-bidi: isolate; }
.contact { background: var(--soft); border-radius: 12px; padding: 14px 18px; margin: 10px 0 16px; }
.contact p { margin: 2px 0; }
.foot { color: var(--faint); font-size: 13.5px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }

/* a narrow screen: each table row a small card, every cell under its column's name (legal.js adds the names) */
@media (max-width: 600px) {
  .table-wrap.stackable { border: 0; overflow: visible; }
  .stackable table { min-width: 0; }
  .stackable thead { display: none; }
  .stackable table, .stackable tbody, .stackable tr, .stackable td { display: block; }
  .stackable tr { border: 1px solid var(--line); border-radius: 12px; padding: 4px 0; margin: 0 0 10px; }
  .stackable td { border: 0; padding: 6px 14px; }
  .stackable td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 650; color: var(--faint); }
  .stackable td:first-child { font-weight: 650; }
}

/* inside the game (a narrow landscape phone, the game's own frame and title around it): just the text */
.app body { background: var(--page); }
.app .doc { padding: 0; }
.app .sheet { border: 0; border-radius: 0; padding: 18px 22px 32px; }
.app .brand { display: none; }
@media print {
  body { background: #fff; }
  .sheet { border: 0; padding: 0; }
  .brand nav { display: none; }
}
