/* LEGAL — layout tipo documento formal (columna centrada, secciones numeradas), variante verde + azul marino/gris */
:root {
  --bg: #14171c;
  --bg-elevated: #1b1f26;
  --bg-card: #20242c;
  --text: #e9edf2;
  --text-muted: #98a3b0;
  --accent: #39e26a;
  --accent-dark: #1fa84f;
  --gold: #7fa8d9;
  --border: #2c313a;
  --radius: 8px;
  --content-width: 800px;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: underline; }
a:hover { color: var(--text); }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.content-narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 20px; }

/* Header: plain formal masthead, text links (no pills, no sidebar) */
.site-header { background: var(--bg-elevated); border-bottom: 3px solid var(--gold); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 56px; flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--text); }
.logo span { color: var(--gold); }
.top-links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.top-links a { color: var(--text-muted); font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.top-links a:hover, .top-links a.active { color: var(--gold); text-decoration: underline; }

.btn-cta { display: inline-block; background: var(--accent); color: #06170f; font-weight: 700; padding: 9px 20px; border-radius: 4px; font-size: 0.87rem; text-decoration: none; }
.btn-cta:hover { background: var(--accent-dark); text-decoration: none; }

/* Document header block */
.doc-hero { padding: 36px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.doc-hero h1 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin: 0 0 10px; line-height: 1.3; }
.doc-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.doc-meta strong { color: var(--text); }
.hero-dek { color: var(--text-muted); font-size: 1.02rem; margin: 0 0 16px; }
.breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--text-muted); }

/* Article body, numbered sections */
article { padding: 20px 0 50px; }
h2 { font-family: var(--font-heading); font-size: 1.35rem; margin: 36px 0 14px; padding-top: 14px; border-top: 1px solid var(--border); }
h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
h2 .n { color: var(--gold); margin-right: 8px; }
h3 { font-size: 1.02rem; }

/* Table */
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; min-width: 420px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
th { color: var(--gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* Numbered steps (verification checklist style) */
.checklist { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: chk; }
.checklist li { counter-increment: chk; position: relative; padding: 8px 0 8px 34px; border-bottom: 1px solid var(--border); }
.checklist li::before { content: counter(chk); position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border: 1px solid var(--gold); color: var(--gold); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "§ "; color: var(--gold); }
.faq-item p { color: var(--text-muted); margin: 10px 0 0; }

/* Callout */
.callout { background: var(--bg-elevated); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 14px 18px; font-size: 0.9rem; color: var(--text-muted); margin: 0 0 16px; }
.callout strong { color: var(--text); }

/* Help resources box (distinct from brand box, for hotlines etc) */
.help-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px; }
.help-box h3 { margin: 0 0 10px; color: var(--gold); }
.help-box ul { margin: 0; padding-left: 18px; }
.help-box li { margin-bottom: 6px; }

/* Brand tie-in box */
.brand-box { background: var(--bg-card); border: 1px solid var(--gold); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.brand-box h2 { border-top: none; margin-top: 0; padding-top: 0; }
.brand-box .btn-cta { margin-top: 8px; }

/* Sources / citations list */
.sources { font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 30px; }
.sources h3 { color: var(--text); font-size: 0.9rem; margin: 0 0 8px; }
.sources ol { margin: 0; padding-left: 18px; }
.sources li { margin-bottom: 4px; }

/* Footer */
.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 26px 0 20px; font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 14px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--gold); }
.responsible-gaming { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; max-width: 640px; margin-left: auto; margin-right: auto; }

@media (max-width: 600px) {
  .doc-hero { padding: 24px 0 4px; }
  h2 { font-size: 1.15rem; }
}

/* Sticky CTA — cierre de embudo, visible en todas las páginas */
.sticky-cta {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #06170f;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  text-decoration: none;
  line-height: 1;
}
.sticky-cta:hover { background: var(--accent-dark); text-decoration: none; }
@media (max-width: 480px) {
  .sticky-cta { bottom: 12px; right: 12px; padding: 10px 16px; font-size: 0.82rem; }
}
