/* Footer link sections.
   Kept apart from landing.css so the betting app and the document pages can
   load the footer without inheriting marketing styles — the two stylesheets
   share four class names (btn-ghost, on, warn, has-img) and loading both would
   have quietly reskinned parts of the app. */

/* ---------- footer ---------- */

.lp-foot { padding: 22px 14px 40px; }

/* Collapsible on a phone, four columns on a desktop. Built on <details> so it
   works with no JavaScript and every link stays in the markup for crawlers. */
.foot-cols { display: flex; flex-direction: column; gap: 0; margin-bottom: 22px; }
.foot-col { border-bottom: 1px solid var(--line); }
.foot-col:first-child { border-top: 1px solid var(--line); }
.foot-col > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  cursor: pointer;
  list-style: none;
  font-family: Archivo, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.foot-col > summary::-webkit-details-marker { display: none; }
.foot-col > summary:hover { color: var(--gold); }
.chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.foot-col[open] > summary .chev { transform: rotate(-135deg) translate(-2px, -2px); }

.foot-col ul { list-style: none; margin: 0; padding: 0 4px 14px; }
.foot-col li { margin-bottom: 2px; }
.foot-col a {
  display: block;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.foot-col a:hover { color: var(--gold); }

.foot-base { text-align: center; }
.foot-base img { display: block; margin: 0 auto 10px; height: 40px; width: 40px; opacity: .95; }
.foot-base .warn { color: #fff; font-weight: 600; font-size: 12px; margin: 0 0 10px; }
.foot-base p:last-child {
  max-width: 640px;
  margin: 0 auto;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}


@media (min-width: 780px) {
  /* Enough width for four columns, so the sections stop being drawers and
     become a plain sitemap. footer.js opens them; CSS cannot force a closed
     <details> open, because browsers hide its contents through the shadow slot
     rather than a display rule an author can override. */
  .foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 24px; }
  .foot-col, .foot-col:first-child { border: none; }
  .foot-col > summary { cursor: default; padding: 0 0 10px; pointer-events: none; }
  .chev { display: none; }
  .foot-col ul { padding: 0; }
  .foot-col a { padding: 6px 0; }
}

/* ---------- social row ---------- */

/* Last thing on the page, after the legal line. Circular targets sized for a
   thumb rather than a mouse. */
.social-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.social-row a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .15s ease, border-color .15s ease;
}
.social-row a:hover { color: var(--gold); border-color: var(--gold); }
.social-row svg { width: 20px; height: 20px; display: block; }

/* ---------- cookie banner ---------- */

.cookie-bar {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: var(--panel);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
}
.cookie-copy { flex: 1 1 260px; min-width: 0; }
.cookie-copy b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.cookie-copy span { display: block; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.cookie-copy a { color: var(--gold); }

.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
/* Both buttons are identical. Styling Accept as the primary action and
   Decline as a faint link is the exact pattern regulators fine people for. */
.cookie-actions button {
  flex: 1 1 auto;
  min-width: 108px;
  padding: 11px 18px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cookie-actions button:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 560px) {
  .cookie-actions { width: 100%; }
}

/* Sits with the legal line rather than in the link columns — it is a control,
   not a destination. */
.cookie-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
}
.cookie-link:hover { color: var(--gold); }
