/* JokerTV — gedeelde layout voor info-pagina's */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.subpage {
  margin: 0;
  min-width: 0;
  font-family: "Poppins", sans-serif;
  background: #f5f7fb;
  color: #1d2647;
}

img {
  max-width: 100%;
  height: auto;
}

.subpage-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Compacte pagina-header (zelfde idee als checkout-topbar) */
.subpage-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 10px
    max(14px, env(safe-area-inset-left, 0px));
  background: linear-gradient(165deg, #0328b9 0%, #0633c5 52%, #0a3fd4 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.subpage-topbar__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.subpage-topbar__logo img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
}

.subpage-topbar__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subpage-topbar__link {
  flex-shrink: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.subpage-topbar__link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.subpage-topbar__link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.subpage-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
}

.subpage-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
}

.subpage-breadcrumb li + li::before {
  content: "›";
  color: #94a3b8;
  font-size: 14px;
  line-height: 1;
}

.subpage-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.subpage-breadcrumb a:hover {
  text-decoration: underline;
}

.subpage-breadcrumb li[aria-current="page"] {
  color: #475569;
}

/* Inhoud */
.subpage-main {
  flex: 1;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 18px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px));
}

.subpage-card {
  background: #ffffff;
  border: 1px solid rgba(14, 26, 67, 0.07);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(14, 27, 72, 0.08);
  padding: 32px 32px 28px;
}

.subpage-section + .subpage-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(14, 26, 67, 0.08);
}

.subpage-section h2 {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.25;
  font-weight: 700;
  color: #0e1a43;
}

.subpage-section p,
.subpage-section li {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #445068;
}

.subpage-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.subpage-section p:last-child,
.subpage-section ul:last-child {
  margin-bottom: 0;
}

.subpage-contact {
  margin-top: 4px;
}

.subpage-contact a {
  color: #2446ff;
  font-weight: 600;
  text-decoration: none;
}

.subpage-contact a:hover {
  text-decoration: underline;
}

/* Betaalmethoden-grid */
.subpage-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin: 24px 0 8px;
}

.subpage-pay-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 14px 16px;
  background: #f5f7fb;
  border: 1px solid rgba(14, 26, 67, 0.07);
  border-radius: 12px;
}

.subpage-pay-item img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

.subpage-lead {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.65;
  color: #445068;
}

/* Footer */
.subpage .footer-es {
  background: #06176b;
  color: #ffffff;
  margin-top: auto;
}

.subpage .footer-es-main {
  padding: 54px max(16px, env(safe-area-inset-right, 0px)) calc(42px + env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
}

.subpage .footer-es-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.subpage .footer-es-logo {
  width: 120px;
  height: auto;
  margin-bottom: 14px;
}

.subpage .footer-es-brand p {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.6;
  max-width: 360px;
}

.subpage .footer-es-links h4,
.subpage .footer-es-payments h4 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.subpage .footer-es-links a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.subpage .footer-es-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.subpage .footer-es-pay-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.subpage .footer-es-pay-item img {
  max-height: 30px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.subpage .footer-es-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
}

.subpage .footer-es-bottom-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.subpage .footer-es-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.subpage .footer-es-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.subpage .footer-es-bottom-links a {
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .subpage-main {
    padding: 16px 12px 44px;
  }

  .subpage-card {
    padding: 22px 18px 20px;
  }

  .subpage .footer-es-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 520px) {
  .subpage-topbar__title {
    font-size: 13px;
  }

  .subpage-topbar__link {
    font-size: 12px;
    padding: 6px 10px;
  }

  .subpage-topbar__logo img {
    height: 26px;
    max-width: 72px;
  }
}
