/* parimatchapp.cl — dark "verification guide" theme. Teal accent, yellow logo-only. */

:root {
  --bg: #0b0f10;
  --bg-soft: #101617;
  --card: #141b1d;
  --card-hover: #1a2224;
  --text: #f2f5f5;
  --muted: #9fb0b3;
  --muted-soft: #6d7c7f;
  --line: #233032;
  --brand: #2fd9c4;
  --brand-dark: #1fb3a1;
  --warn: #f5a623;
  --pm-yellow: #f8ff13;
  --max: 1140px;
  --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.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { 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;
}

code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; color: var(--text); }

/* ---------- 18+ top bar ---------- */
.topbar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.badge-18 {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}
.topbar p { margin: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 16, 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: 38px;
  height: 38px;
  border-radius: 10px;
  background: #12181a;
  color: var(--pm-yellow);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  border: 1px solid var(--line);
}
.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; }

/* N5 — <div class="nav-links"> > <span> > <a> */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links span { display: inline-flex; }
.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(--brand); }

/* ---------- 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); }

/* ---------- Intro band (hero substitute) ---------- */
main { padding: 8px 0 48px; }

.intro { padding: 30px 0 6px; max-width: 820px; }
h1 {
  color: var(--text);
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.lead {
  color: #b7c4c6;
  font-size: clamp(16px, 1.6vw, 18px);
  margin: 0 0 18px;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.trust-badges li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft);
}

/* ---------- Content rail layout ---------- */
.content-rail {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  margin-top: 28px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
}
.toc-inner { border-left: 1px solid var(--line); padding-left: 14px; }
.toc h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
  margin: 0 0 10px;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 7px; }
.toc a { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.toc a:hover { color: var(--brand); text-decoration: none; }

.content { min-width: 0; }
.prose { max-width: 760px; }
.prose h2 {
  color: var(--text);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 42px 0 12px;
}
.prose h3 {
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  margin: 26px 0 8px;
}
.prose p { margin: 0 0 14px; }
.prose a { font-weight: 600; }

section { scroll-margin-top: 90px; }
.long { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* ---------- Tables ---------- */
.table-intro { max-width: 760px; margin: 18px 0 0; font-size: 15px; color: var(--muted-soft); }
.table-wrap {
  overflow-x: auto;
  margin: 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 480px;
}
caption {
  text-align: left;
  padding: 12px 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 {
  color: var(--text);
  font-weight: 700;
  background: var(--bg-soft);
  border-bottom: 2px solid var(--brand);
}
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; }

/* Verified / Unofficial badge pair */
.badge-pair { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.badge-verified, .badge-unofficial {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  border: 1px solid currentColor;
  background: none;
}
.badge-verified { color: var(--brand); }
.badge-unofficial { color: var(--muted-soft); }

/* ---------- Checklist rows ---------- */
.checklist { list-style: none; counter-reset: chk; margin: 18px 0 8px; padding: 0; max-width: 760px; }
.checklist li {
  position: relative;
  counter-increment: chk;
  padding: 0 0 20px 52px;
}
.checklist li::before {
  content: counter(chk);
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
}
.checklist li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px; top: 38px; bottom: 4px;
  width: 2px;
  background: var(--line);
}
.checklist b { color: var(--text); display: block; margin-bottom: 2px; }

/* ---------- Cards (RG section) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0 8px;
  max-width: 760px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: background 0.15s ease;
}
.card:hover { background: var(--card-hover); }
.card small {
  display: block;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.card h3 { margin: 0 0 8px; color: var(--text); font-size: 17px; }
.card p { margin: 0; font-size: 15px; }

/* ---------- Notice (teal) ---------- */
.notice {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 16px 0;
  max-width: 760px;
  font-size: 15px;
}
.notice p { margin: 0; }

/* ---------- Security warning block (amber) ---------- */
.warning {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 16px 0;
  max-width: 760px;
}
.warning h3 { margin: 0 0 8px; color: var(--text); font-size: 17px; }
.warning p { margin: 0 0 10px; font-size: 15px; }
.warning p:last-child { margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-top: 8px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 16px;
}
.faq details + details { margin-top: 10px; }
.faq details[open] { background: var(--card-hover); border-color: var(--brand); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 24px 12px 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: 10px;
  color: var(--brand);
  font-weight: 700;
  font-size: 20px;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #080b0c;
  border-top: 1px solid var(--line);
  padding: 36px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.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); }
.site-footer .foot-desc { color: var(--muted); max-width: 34ch; margin: 10px 0 0; }

/* Footer payment strip — M5: <section> + visually-hidden <h2> + direct <img>s */
.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-payments img {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.85;
}

.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;
}
.footer-legal .badge-18 { border-color: var(--muted-soft); color: var(--muted-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .content-rail { grid-template-columns: 1fr; gap: 8px; }
  .toc { position: static; }
  .toc-inner {
    border-left: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    background: var(--bg-soft);
  }
  .toc ul { columns: 2; column-gap: 24px; }
}
@media (max-width: 880px) {
  .site-header .container { flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--max)); }
  .toc ul { columns: 1; }
  .checklist li { padding-left: 46px; }
}
@media (max-width: 420px) {
  h1 { font-size: 30px; }
  table { font-size: 14px; }
}

.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}

.dl-btn{display:inline-block;padding:13px 28px;border-radius:10px;background:var(--brand);color:#0b0f10;font-weight:700;text-decoration:none;transition:background .15s ease}
.dl-btn:hover{background:var(--brand-dark);color:#0b0f10}

.nav-links a.nav-dl { color: var(--brand); font-weight: 700; }
.dl-btn--ghost { background: transparent; border: 2px solid var(--brand); color: var(--brand); padding: 11px 26px; }
.dl-btn--ghost:hover { background: var(--brand); color: #0b0f10; }
