/* Terms / Privacy pages — same palette as index.html, generated by
   /root/tidhex-terms/build.py (edit the .md sources there, not the HTML). */
:root {
  --bg: #0a0b0d; --bg-2: #111317; --surface: #15181d; --line: #1f242b;
  --line-strong: #2a323c; --text: #e8ecef; --text-dim: #8a9199; --text-faint: #4a5159;
  --accent: #ff5722;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-ar: 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Geeza Pro', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font-body);
  line-height: 1.75; overflow-x: hidden;
  background-image: radial-gradient(ellipse 80% 40% at 50% -10%, rgba(255, 87, 34, 0.12), transparent),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}
html[dir="rtl"] body { font-family: var(--font-ar); line-height: 1.9; }
a { color: var(--accent); }

.top { border-bottom: 1px solid var(--line); background: rgba(10, 11, 13, 0.7); }
.top-inner { max-width: 860px; margin: 0 auto; padding: 1rem 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.08em; color: var(--text); }
.logo svg { width: 28px; height: 28px; }
.logo span { color: var(--accent); }
.lang { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-dim);
  text-decoration: none; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0.3rem 0.7rem; }
.lang:hover { color: var(--text); border-color: var(--text-faint); }

main { max-width: 860px; margin: 0 auto; padding: 2.5rem 16px 4rem; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.3; margin-bottom: 0.4rem; }
.updated { color: var(--text-faint); font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 1.5rem; }
.note { border-inline-start: 3px solid var(--accent); background: var(--surface);
  padding: 0.8rem 1rem; border-radius: 6px; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 2rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem 1.25rem; margin-bottom: 2.5rem; }
.toc ol { padding-inline-start: 1.25rem; columns: 2; column-gap: 2rem; }
.toc li { color: var(--text-dim); font-size: 0.92rem; break-inside: avoid; }
.toc a { color: var(--text-dim); text-decoration: none; }
.toc a:hover { color: var(--text); }
h2 { font-size: 1.3rem; margin: 2.5rem 0 0.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  scroll-margin-top: 1rem; }
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.6rem; color: var(--text); }
p { margin-bottom: 0.9rem; color: var(--text); }
ul { padding-inline-start: 1.3rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; color: var(--text-dim); }
li strong { color: var(--text); }
.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: start; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text-faint); font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; }
td:first-child { color: var(--text); white-space: nowrap; }
td { color: var(--text-dim); }

footer { border-top: 1px solid var(--line); }
.foot-inner { max-width: 860px; margin: 0 auto; padding: 1.5rem 16px;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); }
.foot-inner a { color: var(--text-dim); text-decoration: none; margin-inline-end: 1rem; }
.foot-inner a:hover { color: var(--text); }

@media (max-width: 600px) {
  .toc ol { columns: 1; }
  td:first-child { white-space: normal; }
}
@media print {
  body { background: #fff; color: #000; }
  .top, footer, .toc { display: none; }
  li, td, p, .note { color: #000; }
}
