/* Unified chrome for Help, legal, and CMS content pages */

:root {
  --ab-shell-purple: #7622f0;
  --ab-shell-lime: #c8ff00;
  --ab-shell-ink: #04020f;
  --ab-shell-muted: #8990ae;
  --ab-shell-line: #e5e7e6;
  --ab-shell-max: 1180px;
}

body.ab-info-page {
  background: #fff;
  color: var(--ab-shell-ink);
  font-family: "Fira Sans", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body.ab-wrapper-chrome.ab-info-page .ab-info-main {
  padding-top: clamp(24px, 4vw, 32px);
}

@media (max-width: 768px) {
  body.ab-wrapper-chrome.ab-info-page .ab-info-main {
    padding-top: 24px;
  }
}

/* Desktop header ----------------------------------------------------------- */

.ab-unified-site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 12px 30px rgba(4, 2, 15, 0.08);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(16px, 4vw, 48px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}

.ab-unified-site-header .top-nav-desktop {
  align-items: center;
  flex: 1;
}

.ab-unified-site-header .logo-image {
  content: url("/assets/logos/primary/all-bettors-logo-color.svg");
  filter: none;
}

.ab-unified-site-header #header-action-area {
  margin-left: auto;
}

.ab-unified-site-header .secondary-cta {
  background: #fff;
  border: 2px solid var(--ab-shell-purple);
  border-radius: 999px;
  color: var(--ab-shell-purple);
  min-height: 36px;
  padding: 7px 18px;
}

.ab-unified-site-header .text-wrapper-2 {
  color: var(--ab-shell-purple);
  font-size: 14px;
  font-weight: 900;
}

/* Mobile header ------------------------------------------------------------ */

body.ab-info-page [data-ab-mobile-header].ab-unified-mobile-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(4, 2, 15, 0.08);
  display: none;
  justify-content: space-between;
  left: 0;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  position: fixed;
  right: 0;
  top: 0;
  z-index: 60;
}

body.ab-info-page [data-ab-mobile-header].ab-unified-mobile-header > a > img {
  display: block;
  height: 42px;
  max-width: 132px;
  object-fit: contain;
  width: auto;
}

body.ab-info-page [data-ab-mobile-header] .ab-mobile-header__actions,
body.ab-info-page [data-ab-mobile-header] .content-page-mobile-header__actions,
body.ab-info-page [data-ab-mobile-header] .faq-mobile-header__actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

body.ab-info-page [data-ab-mobile-header] .ab-mobile-header__guest-action,
body.ab-info-page [data-ab-mobile-header] .content-page-mobile-header__join,
body.ab-info-page [data-ab-mobile-header] .faq-mobile-header__join {
  background: #fff;
  border: 1px solid var(--ab-shell-purple);
  border-radius: 4px;
  color: var(--ab-shell-purple);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  text-decoration: none;
}

body.ab-info-page [data-ab-mobile-header] .content-page-mobile-header__menu,
body.ab-info-page [data-ab-mobile-header] .faq-mobile-header__menu {
  align-items: center;
  background: rgba(200, 255, 0, 0.94);
  border: 2px solid var(--ab-shell-purple);
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

body.ab-info-page [data-ab-mobile-header] .content-page-mobile-header__menu span,
body.ab-info-page [data-ab-mobile-header] .faq-mobile-header__menu span {
  background: var(--ab-shell-purple);
  border-radius: 2px;
  display: block;
  height: 2px;
  width: 22px;
}

/* Main layout -------------------------------------------------------------- */

.ab-info-main {
  margin: 0 auto;
  max-width: var(--ab-shell-max);
  padding: 138px clamp(16px, 4vw, 32px) 72px;
  width: 100%;
  box-sizing: border-box;
}

.ab-info-hero {
  background: linear-gradient(135deg, rgba(118, 34, 240, 0.08), rgba(200, 255, 0, 0.22));
  border: 1px solid var(--ab-shell-line);
  border-radius: 28px;
  margin-bottom: clamp(20px, 4vw, 32px);
  padding: clamp(22px, 4vw, 36px);
}

.ab-info-hero h1 {
  color: var(--ab-shell-ink);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

.ab-info-hero p {
  color: var(--ab-shell-muted);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.5;
  margin: 10px 0 0;
  max-width: 52ch;
}

.ab-info-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 20px;
}

.ab-info-back {
  align-items: center;
  background: #f6f6fb;
  border: 1px solid var(--ab-shell-line);
  border-radius: 10px;
  color: var(--ab-shell-ink);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
  padding: 10px 14px;
}

.ab-info-back:hover {
  border-color: var(--ab-shell-purple);
}

.ab-info-breadcrumb {
  align-items: center;
  color: var(--ab-shell-muted);
  display: flex;
  flex: 1 1 200px;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 6px;
  min-width: 0;
}

.ab-info-breadcrumb a {
  color: var(--ab-shell-purple);
  font-weight: 700;
  text-decoration: none;
}

.ab-info-breadcrumb a:hover {
  text-decoration: underline;
}

.ab-info-breadcrumb .bc-current {
  color: var(--ab-shell-ink);
  font-weight: 700;
  word-break: break-word;
}

.ab-info-card {
  background: #fff;
  border: 1px solid var(--ab-shell-line);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(4, 2, 15, 0.05);
  padding: clamp(20px, 4vw, 32px);
}

/* Footer ------------------------------------------------------------------- */

body.ab-info-page .footer {
  background: #fff;
  border-top: 1px solid var(--ab-shell-line);
  box-sizing: border-box;
  margin: 0 auto;
  max-width: var(--ab-shell-max);
  padding: 44px clamp(16px, 4vw, 32px) 110px;
  width: 100%;
}

body.ab-info-page .footer .frame-46 {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
  max-width: 520px;
}

body.ab-info-page .footer .frame-47 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.ab-info-page .footer .text-wrapper-17 {
  color: var(--ab-shell-muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 0;
}

body.ab-info-page .footer .text-wrapper-18,
body.ab-info-page .footer .text-wrapper-18 a {
  color: var(--ab-shell-purple);
  /* B8.1 — match the site-wide footer link size (16px/600) Sergio asked for. */
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: normal;
}

body.ab-info-page .footer .text-wrapper-18:hover,
body.ab-info-page .footer .text-wrapper-18 a:hover {
  color: #410599;
}

body.ab-info-page .footer .text-wrapper-19 {
  color: var(--ab-shell-muted);
  font-size: 13px;
  margin: 0;
  max-width: none;
  width: 100%;
  /* B8.1 — disclaimer reads left-aligned, never centered. */
  text-align: left;
}

body.ab-info-page .footer .logout-footer-item {
  display: none;
}

/* Marketing band ----------------------------------------------------------- */

.ab-info-marketing {
  background: linear-gradient(135deg, var(--ab-shell-purple) 0%, #410599 100%);
  color: #fff;
  margin: clamp(24px, 4vw, 40px) auto 0;
  max-width: var(--ab-shell-max);
  padding: 28px clamp(16px, 4vw, 32px);
  width: 100%;
  box-sizing: border-box;
}

.ab-info-marketing-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
  max-width: var(--ab-shell-max);
}

.ab-info-marketing-copy h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.ab-info-marketing-copy p {
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
  opacity: 0.92;
}

.ab-info-marketing-cta {
  align-items: center;
  background: var(--ab-shell-lime);
  border-radius: 999px;
  color: var(--ab-shell-ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: center;
  padding: 12px 24px;
  text-decoration: none;
}

/* Responsive --------------------------------------------------------------- */

@media (min-width: 600px) {
  .ab-info-marketing-inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 769px) {
  body.ab-info-page [data-ab-mobile-header].ab-unified-mobile-header {
    display: none;
  }

  .ab-unified-site-header {
    display: flex;
  }
}

@media (max-width: 768px) {
  .ab-unified-site-header {
    display: none;
  }

  body.ab-info-page [data-ab-mobile-header].ab-unified-mobile-header {
    display: flex;
  }

  .ab-info-main {
    padding-bottom: 96px;
    padding-top: 84px;
  }

  body.ab-info-page .footer {
    padding-bottom: 96px;
  }

  body.ab-info-page .footer .frame-46 {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  /* Sergio: content-page footer wasn't mobile-optimised — the two link
     columns stayed cramped down to 420px and the disclaimer could push the
     layout wider than the viewport. Stack to a single column on phones and
     keep everything inside the screen. */
  body.ab-info-page .footer {
    overflow-x: hidden;
    padding-left: 16px;
    padding-right: 16px;
    /* Clear the fixed bottom-nav + iOS home indicator so the disclaimer
       isn't hidden behind the bar (Sergio: footer felt cut off on phones). */
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px) + 24px);
  }

  body.ab-info-page .footer .frame-46 {
    /* Keep the two-column footer on phones so info/legal pages (fairness,
       terms, privacy, …) match the rest of the site, where body:has(.nav-main)
       stays 2-col on mobile. The previous single-column collapse made these
       pages read as a broken, tall vertical stack unlike every other page. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 24px;
  }

  body.ab-info-page .footer .text-wrapper-19 {
    overflow-wrap: anywhere;
    white-space: normal;
  }
}
