/* ISBAT site governance v1 — scoped privacy page and consent UI. */

.isbat-consent[hidden] {
  display: none !important;
}

.isbat-consent {
  position: fixed;
  z-index: 2147483000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  box-sizing: border-box;
  width: min(760px, calc(100% - 36px));
  margin-inline: auto;
  border: 1px solid rgba(45, 212, 255, .36);
  border-radius: 10px;
  background: #0a0f1a;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.isbat-consent *,
.isbat-consent *::before,
.isbat-consent *::after {
  box-sizing: border-box;
}

.isbat-consent__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 22px;
}

.isbat-consent__eyebrow {
  margin: 0 0 6px;
  color: #2dd4ff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.isbat-consent h2 {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem);
  font-weight: 850;
  line-height: 1.2;
}

.isbat-consent__copy > p:not(.isbat-consent__eyebrow) {
  max-width: 58ch;
  margin: 9px 0 7px;
  color: #b9c4d6;
  font-size: .9rem;
  line-height: 1.5;
}

.isbat-consent a {
  color: #2dd4ff;
  font-size: .86rem;
  font-weight: 750;
  text-underline-offset: 3px;
}

.isbat-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  min-width: 300px;
}

.isbat-consent button {
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 7px;
  background: #182235;
  color: #fff;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
}

.isbat-consent button[data-isbat-consent-choice="granted"] {
  border-color: #e30613;
  background: #e30613;
}

.isbat-consent button:hover {
  border-color: #2dd4ff;
  box-shadow: 0 0 0 3px rgba(45, 212, 255, .18);
}

.isbat-consent :focus-visible {
  outline: 3px solid #2dd4ff;
  outline-offset: 3px;
}

.isbat-legal-v1 {
  min-height: 60vh;
  padding: clamp(48px, 7vw, 88px) 20px;
  background: #0a0f1a;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

.isbat-legal-v1__wrap {
  width: min(100%, 920px);
  margin-inline: auto;
}

.isbat-legal-v1__eyebrow {
  margin: 0 0 10px;
  color: #2dd4ff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.isbat-legal-v1 :where(h1, h2) {
  color: #fff;
  font-family: inherit;
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.isbat-legal-v1 h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.2rem, 1.7rem + 2vw, 4rem);
}

.isbat-legal-v1__lead {
  max-width: 65ch;
  margin: 18px 0 0;
  color: #b9c4d6;
  font-size: 1.08rem;
}

.isbat-legal-v1__toc,
.isbat-legal-v1 section {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: #131a2a;
}

.isbat-legal-v1__toc ul {
  columns: 2;
  gap: 32px;
  margin: 0;
  padding-left: 20px;
}

.isbat-legal-v1 a {
  color: #2dd4ff;
  text-underline-offset: 3px;
}

.isbat-legal-v1 h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 1.25rem + .6vw, 1.9rem);
}

.isbat-legal-v1 :where(p, ul) {
  color: #c2ccda;
}

.isbat-legal-v1 section > :last-child {
  margin-bottom: 0;
}

.isbat-legal-v1 button[data-isbat-cookie-settings] {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #e30613;
  border-radius: 7px;
  background: #e30613;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.isbat-legal-v1 :focus-visible {
  outline: 3px solid #2dd4ff;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .isbat-consent__inner {
    grid-template-columns: 1fr;
  }

  .isbat-consent__actions {
    min-width: 0;
  }

  .isbat-legal-v1__toc ul {
    columns: 1;
  }
}

@media (max-width: 440px) {
  .isbat-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
  }

  .isbat-consent__inner {
    padding: 17px;
  }

  .isbat-consent__actions {
    grid-template-columns: 1fr;
  }

  .isbat-legal-v1 {
    padding-inline: 14px;
  }

  .isbat-legal-v1__toc,
  .isbat-legal-v1 section {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .isbat-consent *,
  .isbat-legal-v1 * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Permanent legal link in the existing shared footer. */
.isbat-foot__chips a[data-isbat-privacy-link] {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(95, 208, 255, .2);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, .04);
  color: #d8f7ff;
  font-size: .76rem;
  font-weight: 750;
  text-decoration: none;
}

.isbat-foot__chips a[data-isbat-privacy-link]:hover,
.isbat-foot__chips a[data-isbat-privacy-link]:focus-visible {
  border-color: rgba(95, 208, 255, .5);
  color: #fff;
}
