/* Llama Legends — Static Subpage Stylesheet
   Shared by /about.html, /privacy.html, /legal.html
   Dark theme matching the game's slate-950/amber palette. */

:root {
  --bg: #0f172a;
  --bg-card: #1a2235;
  --bg-soft: #1e293b;
  --text: #e2e8f0;
  --text-soft: #94a3b8;
  --text-dim: #64748b;
  --accent: #f59e0b;
  --accent-soft: #d4af37;
  --accent-glow: rgba(245, 158, 11, 0.25);
  --border: rgba(245, 158, 11, 0.18);
  --border-soft: rgba(148, 163, 184, 0.18);
  --link: #60a5fa;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(96, 165, 250, 0.4); }
a:hover { color: #93c5fd; text-decoration-color: #93c5fd; }

img { max-width: 100%; height: auto; }

code { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; background: rgba(245, 158, 11, 0.08); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; color: #fbbf24; }

/* ---- Site header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.site-header__brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 800; letter-spacing: 0.04em; color: #fff; }
.site-header__brand img { width: 32px; height: 32px; border-radius: 6px; }
.site-header__brand small { display: block; color: var(--accent); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.site-header__nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; font-size: 0.85rem; font-weight: 600; }
.site-header__nav a { color: var(--text-soft); text-decoration: none; padding: 0.35rem 0.6rem; border-radius: 4px; transition: color 0.15s, background 0.15s; }
.site-header__nav a:hover { color: #fff; background: rgba(245, 158, 11, 0.12); }
.site-header__nav .cta { color: #0f172a; background: linear-gradient(135deg, #fbbf24, #d4af37); padding: 0.45rem 0.9rem; border-radius: 6px; font-weight: 800; }
.site-header__nav .cta:hover { color: #0f172a; background: linear-gradient(135deg, #fcd34d, #e0b84f); }

/* ---- Main layout ---- */
.site-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.site-main__head { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-soft); }
.site-main__head h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0 0 0.5rem; color: #fff; letter-spacing: -0.01em; line-height: 1.18; }
.site-main__head p { margin: 0; color: var(--text-soft); font-size: 1.05rem; }
.lastmod { display: inline-block; margin-top: 0.6rem; color: var(--text-dim); font-size: 0.82rem; font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.02em; }
.lastmod time { color: var(--accent-soft); font-weight: 700; }

/* ---- Headings ---- */
.site-main h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); color: #fff; margin: 2.6rem 0 1rem; letter-spacing: -0.005em; padding-top: 0.5rem; }
.site-main h3 { font-size: 1.2rem; color: #fff; margin: 1.8rem 0 0.7rem; }
.site-main h4 { font-size: 1rem; color: var(--accent); margin: 1.4rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-main p { margin: 0 0 1.1rem; }
.site-main ul, .site-main ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.site-main li { margin: 0.35rem 0; }
.site-main li::marker { color: var(--accent); }

/* ---- Cards & feature blocks ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  margin: 1rem 0 1.4rem;
}
.card--accent { border-color: var(--border); box-shadow: 0 0 24px var(--accent-glow); }
.card h3:first-child, .card h4:first-child { margin-top: 0; }

/* Definition list (used in FAQ sections) */
dl.faq { margin: 1.5rem 0; }
dl.faq dt { font-weight: 800; color: #fff; margin-top: 1.2rem; padding-left: 0.8rem; border-left: 3px solid var(--accent); }
dl.faq dd { margin: 0.4rem 0 0 0.8rem; color: var(--text-soft); }

/* ---- Comparison table ---- */
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.4rem 0 2rem; font-size: 0.92rem; overflow: hidden; border-radius: 10px; border: 1px solid var(--border-soft); }
.comparison-table th, .comparison-table td { padding: 0.8rem 0.95rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.comparison-table thead th { background: rgba(245, 158, 11, 0.08); color: #fff; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.comparison-table tbody tr:nth-child(even) td { background: rgba(30, 41, 59, 0.32); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table .col-llama { color: #fbbf24; font-weight: 700; }

/* USP block */
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.4rem 0 2rem; }
.usp { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 10px; padding: 1rem 1.1rem; }
.usp strong { display: block; color: var(--accent); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.35rem; }
.usp p { margin: 0; font-size: 0.92rem; color: var(--text-soft); }

/* ---- Changelog entries ---- */
.changelog-entry { padding: 1.1rem 1.3rem; margin: 1rem 0; background: var(--bg-card); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
.changelog-entry h3 { margin: 0 0 0.4rem; color: #fff; font-size: 1.1rem; }
.changelog-entry .meta { display: inline-block; margin-right: 0.6rem; color: var(--text-dim); font-size: 0.78rem; font-family: "JetBrains Mono", ui-monospace, monospace; }
.changelog-entry .badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.badge--major { background: rgba(59, 130, 246, 0.18); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.badge--update { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge--promo { background: rgba(245, 158, 11, 0.16); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge--event { background: rgba(168, 85, 247, 0.16); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }

/* ---- Language toggle / helper ---- */
.lang-toggle { display: inline-flex; gap: 0.4rem; font-size: 0.78rem; color: var(--text-dim); margin-left: 0.5rem; }
.lang-toggle b { color: var(--accent-soft); }

/* ---- Site footer ---- */
.site-footer {
  margin-top: 3.5rem;
  padding: 1.6rem 1.5rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; justify-content: center; margin-bottom: 0.6rem; }
.site-footer .links a { color: var(--text-soft); text-decoration: none; }
.site-footer .links a:hover { color: #fff; }

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .site-header { padding: 0.7rem 1rem; }
  .site-header__nav { width: 100%; justify-content: flex-start; }
  .site-main { padding: 1.5rem 1rem 3rem; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 0.6rem 0.65rem; }
}

/* Mailto obfuscation helper */
.mailto { unicode-bidi: bidi-override; direction: rtl; }