/* Nightshot native first-party cookie banner */
.ns-cookie-banner[hidden]{display:none!important}
.ns-cookie-banner{
  position:fixed;
  left:50%;
  bottom:max(14px,env(safe-area-inset-bottom));
  transform:translateX(-50%);
  z-index:2147482000;
  width:min(760px,calc(100% - 24px));
  padding:16px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.015)),
    rgba(7,8,17,.97);
  color:#f8f7fb;
  box-shadow:0 28px 90px rgba(0,0,0,.5);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
.ns-cookie-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
}
.ns-cookie-copy strong{
  display:block;
  margin-bottom:5px;
  font-size:.9rem;
  letter-spacing:.03em;
}
.ns-cookie-copy p{
  margin:0;
  color:#aaa4b3;
  font-size:.76rem;
  line-height:1.5;
}
.ns-cookie-copy a{color:#c8b8ff}
.ns-cookie-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.ns-cookie-actions button{
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
  color:#fff;
  font:800 .68rem/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  cursor:pointer;
}
.ns-cookie-actions .primary{
  border:0;
  background:linear-gradient(90deg,#3b7cff,#754cff,#ed3dc3);
}
.ns-site-footer{
  margin-top:70px;
  padding:34px 20px calc(28px + env(safe-area-inset-bottom));
  border-top:1px solid rgba(255,255,255,.07);
  background:rgba(3,3,8,.24);
  color:#fff;
}
.ns-site-footer-inner{
  width:min(1160px,100%);
  margin:auto;
  display:grid;
  grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr));
  gap:28px;
}
.ns-footer-brand strong{
  display:block;
  font-size:1rem;
  letter-spacing:.15em;
}
.ns-footer-brand span,
.ns-footer-col a,
.ns-footer-col p{
  color:#918b9b;
  font-size:.74rem;
  line-height:1.65;
}
.ns-footer-col h3{
  margin:0 0 9px;
  font-size:.62rem;
  letter-spacing:.14em;
  color:#c8b8ff;
}
.ns-footer-col a{
  display:block;
  text-decoration:none;
  margin:4px 0;
}
.ns-footer-col a:hover{color:#fff}
.ns-footer-bottom{
  width:min(1160px,100%);
  margin:26px auto 0;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.06);
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:#706b78;
  font-size:.68rem;
}
.ns-cookie-manage{
  border:0;
  background:transparent;
  color:#918b9b;
  padding:0;
  font:inherit;
  cursor:pointer;
}
.ns-cookie-manage:hover{color:#fff}
@media(max-width:760px){
  .ns-cookie-row{grid-template-columns:1fr}
  .ns-cookie-actions{justify-content:stretch}
  .ns-cookie-actions button{flex:1}
  .ns-site-footer-inner{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .ns-cookie-banner{padding:14px}
  .ns-site-footer-inner{grid-template-columns:1fr}
}

/* Legal pages only: balanced typography on phone, tablet and desktop. */
.ns-legal-page{
  max-width:880px;
  min-width:0;
  overflow-x:clip;
}
.ns-legal-page .hero{
  min-height:0!important;
  height:auto!important;
  padding:30px 0 20px!important;
}
.ns-legal-page .hero h1{
  width:auto!important;
  max-width:18ch!important;
  margin:0!important;
  font-size:clamp(1.9rem,5vw,3.4rem)!important;
  line-height:1.05!important;
  letter-spacing:-.035em!important;
  text-align:left!important;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
.ns-legal-page .hero p{
  margin:12px 0 0!important;
  font-size:clamp(.9rem,1.8vw,1.05rem)!important;
  line-height:1.55!important;
  text-wrap:balance;
}
.ns-legal-page article{
  min-width:0;
}
.ns-legal-page article h2{
  margin:28px 0 10px;
  font-size:clamp(1.15rem,2.2vw,1.55rem);
  line-height:1.25;
  letter-spacing:-.015em;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
.ns-legal-page article h3{
  font-size:clamp(1rem,1.8vw,1.25rem);
  line-height:1.3;
  overflow-wrap:anywhere;
}
.ns-legal-page .legal-table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}
.ns-legal-page table{
  min-width:720px;
}
.ns-legal-page th,
.ns-legal-page td{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  vertical-align:top;
  font-size:.82rem;
  line-height:1.5;
}

@media (min-width:481px) and (max-width:1024px){
  .ns-legal-page .hero h1{
    font-size:clamp(2.2rem,5vw,3rem)!important;
  }
  .ns-legal-page article h2{
    font-size:clamp(1.2rem,2.4vw,1.45rem);
  }
}

@media (max-width:480px){
  .ns-legal-page{
    width:min(100% - 28px,880px);
    padding-top:22px;
  }
  .ns-legal-page .hero{
    min-height:0!important;
    height:auto!important;
    padding:24px 0 18px!important;
  }
  .ns-legal-page .hero h1{
    width:auto!important;
    max-width:100%!important;
    margin-bottom:10px!important;
    font-size:clamp(1.75rem,9vw,2.25rem)!important;
    line-height:1.08!important;
    letter-spacing:-.035em!important;
  }
  .ns-legal-page .hero p{
    margin-top:0;
    font-size:.9rem;
    line-height:1.5;
  }
  .ns-legal-page article h2{
    margin-top:26px;
    margin-bottom:10px;
    font-size:1.15rem;
    line-height:1.3;
  }
  .ns-legal-page article p,
  .ns-legal-page article li{
    font-size:.94rem;
    line-height:1.65;
  }
}

/* iOS: keep the legal footer in normal flow and prevent phantom height. */
@media (max-width:760px){
  .ns-legal-page ~ .ns-site-footer{
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:32px 0 0!important;
    padding:30px 20px calc(22px + env(safe-area-inset-bottom))!important;
    overflow:hidden!important;
    contain:layout paint;
  }
  .ns-legal-page ~ .ns-site-footer::before,
  .ns-legal-page ~ .ns-site-footer::after{
    content:none!important;
    display:none!important;
  }
  .ns-legal-page ~ .ns-site-footer .ns-site-footer-inner{
    position:static!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    grid-template-columns:1fr 1fr!important;
    gap:24px 18px!important;
    align-items:start!important;
  }
  .ns-legal-page ~ .ns-site-footer .ns-footer-bottom{
    position:static!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:24px 0 0!important;
    padding:16px 0 0!important;
    gap:6px!important;
  }
  body > #CookiebotWidget,
  body > #CybotCookiebotDialog{
    position:fixed!important;
    margin:0!important;
  }
}

@media (max-width:390px){
  .ns-legal-page ~ .ns-site-footer{
    padding-right:18px!important;
    padding-left:18px!important;
  }
  .ns-legal-page ~ .ns-site-footer .ns-site-footer-inner{
    grid-template-columns:1fr 1fr!important;
    gap:22px 16px!important;
  }
}
