/* ==========================================================================
   pages.css — static info pages (about-us, responsible-gaming, privacy-policy)
   Every class starts with pg-. Uses the tokens from base.css.
   ========================================================================== */

/* ===== PAGE SHELL ===== */
.pg { padding-block: 8px 20px; max-width: 900px; }

/* ===== HERO ===== */
.pg-hero { background: linear-gradient(135deg, #1c1608, #0f0f18); border: 1px solid var(--gold); border-radius: 16px; padding: 24px 22px; margin-bottom: 20px; }
.pg-hero h1 { margin-bottom: 10px; font-size: clamp(26px, 5vw, 40px); line-height: 1.2; color: #fff; }
.pg-lead { margin: 0; color: #d6d6e2; font-size: 17px; }

/* ===== TABLE OF CONTENTS ===== */
.pg-toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 26px; }
.pg-toc-title { margin: 0 0 8px; font-weight: 800; color: var(--gold); }
.pg-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.pg-toc li { break-inside: avoid; margin-bottom: 6px; font-size: 15px; }
.pg-toc a { text-decoration: none; color: var(--text); }
.pg-toc a:hover, .pg-toc a.is-active { color: var(--gold); text-decoration: underline; }

/* ===== BODY TEXT ===== */
.pg-body p { color: #d6d6e2; }
.pg-body section { margin-top: 32px; }
.pg-body h2 { font-size: clamp(21px, 3.4vw, 27px); line-height: 1.3; color: var(--gold); margin-bottom: 10px; padding-left: 12px; border-left: 4px solid var(--gold); }
.pg-body strong { color: #fff; }

/* ===== LISTS ===== */
.pg-list { list-style: none; padding: 0; margin: 12px 0 16px; }
.pg-list li { position: relative; padding: 8px 12px 8px 34px; margin-bottom: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: #d6d6e2; }
.pg-list li::before { content: ""; position: absolute; left: 13px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

/* ===== HELP BOX ===== */
.pg-help { background: #1c1011; border: 1px solid var(--red); border-left-width: 5px; border-radius: 10px; padding: 14px 16px; margin: 18px 0; color: #f2d6d9; }
.pg-help a { color: var(--gold); font-weight: 800; }

/* ===== UPDATED LINE ===== */
.pg-updated { margin: 30px 0 0; font-size: 13px; color: var(--muted); }

/* ===== RELATED LINKS ===== */
.pg-related { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.pg-related-title { font-size: 20px; color: var(--gold); margin-bottom: 12px; }
.pg-related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pg-related a { display: block; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; }
.pg-related a:hover { border-color: var(--gold); }
.pg-related strong { display: block; color: #fff; margin-bottom: 4px; }
.pg-related span { font-size: 14px; color: var(--muted); }

/* ===== BACK TO TOP ===== */
.pg-top { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); background: var(--panel); color: var(--gold); font-size: 22px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; }
.pg-top.is-visible { display: flex; }
.pg-top:hover { background: var(--gold); color: #1a1300; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .pg-hero { padding: 18px 16px; }
  .pg-toc ol { columns: 1; }
}
