/* =====================================================
   AKIBABIT LEGAL MODAL — CYBERPUNK GLASS (POPUP)
   - No iframes, no redirects
   - Desktop + Mobile responsive
   ===================================================== */

.ab-legal-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000000010;
}

.ab-legal-modal.is-open{ display: block; }

.ab-legal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.ab-legal-window{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(980px, 94vw);
  height: min(82vh, 780px);
  background: rgba(10,10,14,0.92);
  border: 1px solid rgba(188,0,45,0.35);
  border-radius: 18px;
  box-shadow: 0 0 44px rgba(188,0,45,0.22);
  overflow: hidden;
}

@media (max-width: 560px){
  .ab-legal-window{
    width: 94vw;
    height: 86vh;
    border-radius: 16px;
  }
}

.ab-legal-header{
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  background: rgba(0,0,0,0.58);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.ab-legal-title{
  font-family: "Orbitron", "Exo 2", -apple-system, BlinkMacSystemFont, "SF Pro Text", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
}

/* JP-only docs: slightly dim the top title (marked in yellow in screenshots) */
.ab-legal-window.is-jpstatic .ab-legal-title{
  /* JP-only docs: keep the title readable */
  color: #ffffff;
}

.ab-legal-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-legal-close{
  width: 42px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.ab-legal-close:hover{
  border-color: rgba(188,0,45,0.65);
  box-shadow: 0 0 18px rgba(188,0,45,0.22);
}

.ab-legal-toolbar{
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ab-legal-tabs{
  display: flex;
  gap: 8px;
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.ab-legal-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  color: rgba(255,255,255,0.88);
  cursor: pointer;
  font-family: "Exo 2", -apple-system, BlinkMacSystemFont, "SF Pro Text", Arial, sans-serif;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
}

.ab-legal-pill:hover{
  border-color: rgba(188,0,45,0.55);
}

.ab-legal-pill.is-active{
  border-color: rgba(188,0,45,0.70);
  box-shadow: 0 0 16px rgba(188,0,45,0.20);
}

.ab-legal-lang{
  display: flex;
  gap: 6px;
}

.ab-legal-body{
  height: calc(100% - 52px);
  overflow: auto;
  padding: 16px 16px 28px;
  -webkit-overflow-scrolling: touch;
}

.ab-legal-window.has-toolbar .ab-legal-body{
  height: calc(100% - 52px - 54px);
}

.ab-legal-doc{
  color: rgba(255,255,255,0.86);
  font-family: "Exo 2", -apple-system, BlinkMacSystemFont, "SF Pro Text", Arial, sans-serif;
}

.ab-legal-h2{
  margin: 4px 0 12px;
  font-size: 18px;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.92);
}

.ab-legal-h3{
  margin: 18px 0 10px;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.88);
}

.ab-legal-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 14px 14px;
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.ab-legal-dl{
  margin: 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 14px;
}

@media (max-width: 640px){
  .ab-legal-dl{
    grid-template-columns: 1fr;
  }
}

.ab-legal-dl dt{
  font-weight: 700;
  color: rgba(255,255,255,0.88);
}

.ab-legal-dl dd{
  margin: 0;
  color: rgba(255,255,255,0.80);
  line-height: 1.55;
}

.ab-legal-note{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(188,0,45,0.28);
  background: rgba(188,0,45,0.10);
  color: rgba(255,255,255,0.86);
  line-height: 1.55;
}

.ab-legal-ul{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.ab-legal-key{
  font-weight: 700;
  color: rgba(255,255,255,0.90);
}

.ab-legal-val{
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}

.ab-legal-legalnotice{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.70);
  font-size: 12.5px;
  line-height: 1.5;
}



.ab-legal-company{
  color: #BC002D;
  font-weight: 800;
}
/* Footer: legal buttons should behave like links but not navigate */
.ab-footer-legalbtn{
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
