/* parimatch-en-chile.cl — dark slate-navy "regulatory document" theme.
   Yellow reserved for citation markers only; muted blue for info/disclaimer. */

:root {
  --bg: #0e1117;
  --bg-soft: #131722;
  --card: #171b26;
  --card-hover: #1c2130;
  --text: #eef0f4;
  --muted: #9aa3b5;
  --muted-soft: #6b7386;
  --line: #242a3a;
  --brand: #f8ff13;
  --accent-info: #5b8def;
  --max: 1140px;
  --max-prose: 780px;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

a { color: var(--accent-info); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Informational tag bar (replaces 18+ badge bar) ---------- */
.topbar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted-soft);
  font-size: 13px;
}
.topbar .container { padding: 9px 0; }
.topbar p { margin: 0; }
.topbar strong { color: var(--muted); font-weight: 600; }

/* ---------- Header / nav (N4: nested nav.nav-links landmark) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 17, 23, 0.96);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
}
.brand-name {
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-name span { color: var(--muted-soft); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 10px 0;
  color: var(--muted-soft);
}
.breadcrumb li { display: inline-flex; gap: 8px; align-items: center; }
.breadcrumb li + li::before { content: "›"; color: var(--muted-soft); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- Main ---------- */
main { padding: 8px 0 56px; }

.hero { padding: 34px 0 6px; max-width: var(--max-prose); }
.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--accent-info);
  border-radius: 999px;
  color: var(--accent-info);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
h1 {
  color: var(--text);
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  margin: 0 0 20px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 4px 0 8px;
  font-weight: 600;
  font-size: 15px;
}
.hero-cta a { display: inline-flex; align-items: center; gap: 6px; }
.hero-cta a::after { content: "→"; font-weight: 400; }

/* ---------- Prose ---------- */
.prose { max-width: var(--max-prose); }
.section-num {
  display: block;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--muted-soft);
  letter-spacing: 0.08em;
  margin: 44px 0 4px;
}
.prose h2 {
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 6px 0 14px;
  scroll-margin-top: 84px;
}
.prose h3 {
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 8px;
}
.prose p { margin: 0 0 14px; }
.prose a { font-weight: 600; }
section { scroll-margin-top: 84px; }

.long { content-visibility: auto; contain-intrinsic-size: auto 640px; }

/* ---------- Disclaimer callout (blue border) ---------- */
.disclaimer {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-info);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 24px 0 8px;
  max-width: var(--max-prose);
  font-size: 15px;
}
.disclaimer h2 { font-size: 16px; margin: 0 0 8px; color: var(--text); }
.disclaimer p { margin: 0 0 10px; }
.disclaimer p:last-child { margin: 0; }

/* ---------- Citation / definition block (yellow border — only yellow use) ---------- */
.citation {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 20px 0;
  max-width: var(--max-prose);
  font-size: 15px;
  color: var(--text);
}
.citation p { margin: 0; }
.citation strong { color: var(--text); }

/* ---------- Tables (primary content device) ---------- */
.table-wrap {
  max-width: var(--max);
  overflow-x: auto;
  margin: 20px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
caption {
  text-align: left;
  padding: 13px 16px 0;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 600;
}
th, td {
  text-align: left;
  padding: 12px 16px;
  vertical-align: top;
}
thead th {
  background: var(--bg-soft);
  color: var(--muted-soft);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
}
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:last-child { border-bottom: none; }
tbody td:first-child { color: var(--text); font-weight: 600; }

/* ---------- Responsible-gaming cards (2 per page) ---------- */
.rg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0 8px;
  max-width: var(--max-prose);
}
.rg-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: background 0.15s ease;
}
.rg-card:hover { background: var(--card-hover); }
.rg-card h3 { margin: 0 0 8px; color: var(--text); font-size: 17px; }
.rg-card p { margin: 0; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--max-prose); margin-top: 8px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
}
.faq details + details { margin-top: 10px; }
.faq details[open] { background: var(--card-hover); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 26px 13px 0;
  position: relative;
  font-weight: 700;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 11px;
  color: var(--accent-info);
  font-weight: 700;
  font-size: 20px;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
}
.site-footer h4 {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--muted); }
.footer-brand .logo-mark { margin-bottom: 12px; }
.foot-desc { color: var(--muted); max-width: 42ch; margin: 0; }

/* Footer payment strip — M4: div.footer-payments > span.pay-badge > img */
.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-payments .pay-badge { display: inline-flex; }
.footer-payments img {
  height: 26px;
  width: auto;
  display: block;
}

.footer-legal {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-soft);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .site-header .container { flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--max)); }
  .rg-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  h1 { font-size: clamp(26px, 8vw, 34px); }
  .prose h2 { font-size: clamp(22px, 7vw, 28px); }
  table { font-size: 14px; }
}
</content>
</invoke>

.logo-mark img { width: 36px; height: 36px; display: block; object-fit: cover; }

.legal-doc{padding:48px 0;max-width:820px}
.legal-doc h1{margin-bottom:8px}
.legal-doc h2{margin-top:34px}
.legal-doc .legal-updated{color:var(--muted,#888);font-size:14px}

.content-figure{margin:24px 0}
.content-figure img{width:100%;height:auto;border-radius:var(--radius,12px);display:block}

.nav-links a.nav-strong { color: var(--accent-info); font-weight: 700; }
