/* V39 Terms of Use and Disclaimer */
#app .sidebar .terms-menu-item{
  margin:16px 8px 8px;
  padding-top:14px;
  border-top:1px solid rgba(148,163,184,.22);
}
#app .sidebar .terms-menu-button{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid rgba(148,163,184,.28);
  border-radius:12px;
  background:rgba(15,23,42,.48);
  color:#d8e1ec;
  font:inherit;
  font-size:13px;
  font-weight:500;
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
#app .sidebar .terms-menu-button:hover,
#app .sidebar .terms-menu-button:focus-visible{
  background:rgba(71,85,105,.34);
  border-color:rgba(203,213,225,.5);
  outline:none;
}
#app .sidebar .terms-menu-icon{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  flex:0 0 22px;
  border:1px solid rgba(203,213,225,.42);
  border-radius:50%;
  font-size:13px;
  color:#e2e8f0;
}

.terms-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(2,6,23,.62);
  backdrop-filter:blur(3px);
}
.terms-modal-backdrop.hidden{display:none!important;}
.terms-modal{
  width:min(760px,calc(100vw - 32px));
  max-height:min(84vh,900px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.32);
  border-radius:16px;
  background:#101c2d;
  color:#dbe5f1;
  box-shadow:0 24px 80px rgba(0,0,0,.55);
}
.terms-modal-header{
  position:relative;
  flex:0 0 auto;
  padding:22px 64px 18px 24px;
  border-bottom:1px solid rgba(148,163,184,.22);
  background:linear-gradient(180deg,#14243a 0%,#101c2d 100%);
}
.terms-modal-eyebrow{
  margin:0 0 4px;
  color:#94a3b8;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.terms-modal-title{
  margin:0;
  color:#fff;
  font-size:24px;
  line-height:1.2;
}
.terms-modal-updated{
  margin:7px 0 0;
  color:#b8c4d3;
  font-size:12px;
}
.terms-modal-close{
  position:absolute;
  top:18px;
  right:18px;
  width:34px;
  height:34px;
  border:1px solid rgba(148,163,184,.3);
  border-radius:10px;
  background:#0b1728;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}
.terms-modal-close:hover{background:#26364c;}
.terms-modal-body{
  overflow-y:auto;
  padding:22px 26px 28px;
  scrollbar-gutter:stable;
}
.terms-summary-note{
  margin:0 0 24px;
  padding:14px 16px;
  border-left:4px solid #36c98f;
  border-radius:8px;
  background:rgba(54,201,143,.1);
  color:#eef7f3;
  font-size:14px;
  line-height:1.55;
}
.terms-content h2{
  margin:25px 0 9px;
  color:#fff;
  font-size:16px;
  line-height:1.32;
}
.terms-content h2:first-child{margin-top:0;}
.terms-content p,
.terms-content li{
  color:#cbd5e1;
  font-size:12px;
  line-height:1.58;
}
.terms-content p{margin:0 0 10px;}
.terms-content ul{margin:7px 0 14px;padding-left:22px;}
.terms-content li{margin:3px 0;}
.terms-content hr{
  margin:22px 0;
  border:0;
  border-top:1px solid rgba(148,163,184,.18);
}
.terms-content strong{color:#f8fafc;}
.terms-footer{
  margin-top:28px;
  padding:18px;
  border:1px solid rgba(148,163,184,.2);
  border-radius:12px;
  background:rgba(15,23,42,.55);
  color:#cbd5e1;
  font-size:13px;
  line-height:1.7;
}
.terms-footer strong{display:block;color:#fff;font-size:14px;}
.terms-footer a{color:#67d9ff;text-decoration:none;}
.terms-footer a:hover{text-decoration:underline;}
body.terms-modal-open{overflow:hidden;}
@media (max-width:640px){
  .terms-modal-backdrop{padding:10px;}
  .terms-modal{width:calc(100vw - 20px);max-height:92vh;}
  .terms-modal-header{padding:18px 56px 15px 18px;}
  .terms-modal-title{font-size:20px;}
  .terms-modal-body{padding:18px;}
}

/* V39.2 compact terms typography and legal content */
.terms-content .terms-group-heading{margin:4px 0 18px;color:#67d9ff;font-size:15px;line-height:1.3;letter-spacing:.035em;text-transform:uppercase;}
.terms-content .terms-citation{padding:10px 12px;border-left:3px solid rgba(103,217,255,.75);background:rgba(103,217,255,.07);border-radius:6px;color:#e2e8f0;}
