/* Footer modal links and popup */
.footer .info a.footer-modal-link{
  color:inherit;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.footer .info a.footer-modal-link:hover{color:#fff;text-decoration:none;}
.footer-modal-open{overflow:hidden;}
.footer-modal-mask{
  position:fixed;
  left:0;
  right:0;
  top:0;
  bottom:0;
  z-index:3000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  box-sizing:border-box;
  background:rgba(0,0,0,.55);
}
.footer-modal-mask.show{display:flex;}
.footer-modal-box{
  width:720px;
  max-width:92vw;
  max-height:82vh;
  background:#fff;
  color:#333;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 16px 45px rgba(0,0,0,.35);
}
.footer-modal-head{
  height:52px;
  line-height:52px;
  padding:0 56px;
  background:#4F3874;
  color:#fff;
  font-size:18px;
  font-weight:700;
  position:relative;
  box-sizing:border-box;
  text-align:center;
}
#footerModalTitle{display:block;text-align:center;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.footer-modal-close{
  position:absolute;
  right:0;
  top:0;
  width:52px;
  height:52px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:26px;
  line-height:52px;
  cursor:pointer;
}
.footer-modal-body{
  max-height:calc(82vh - 52px);
  overflow:auto;
  padding:22px;
  box-sizing:border-box;
  font-size:15px;
  line-height:1.85;
}
.footer-page-content h1,
.footer-page-content h2,
.footer-modal-body h1,
.footer-modal-body h2{
  margin:0 0 14px;
  color:#4F3874;
  font-size:22px;
  line-height:1.4;
}
.footer-page-content p,
.footer-modal-body p{margin:0 0 12px;}
.footer-page-content ul,
.footer-modal-body ul{margin:0 0 12px 1.2em;padding:0;}
.footer-page-content li,
.footer-modal-body li{margin:0 0 8px;}
.footer-modal-loading{padding:30px 0;text-align:center;color:#777;}
.footer-modal-iframe{display:block;width:100%;height:58vh;border:0;background:#fff;}
@media (max-width:768px){
  .footer-modal-mask{padding:12px;align-items:center;}
  .footer-modal-box{width:100%;max-width:96vw;max-height:84vh;border-radius:10px;}
  .footer-modal-head{height:48px;line-height:48px;font-size:16px;padding:0 48px;}
  .footer-modal-close{width:48px;height:48px;line-height:48px;}
  .footer-modal-body{max-height:calc(84vh - 48px);padding:16px;font-size:14px;line-height:1.8;}
  .footer-page-content h1,.footer-page-content h2,.footer-modal-body h1,.footer-modal-body h2{font-size:19px;}
}
.footer .info a.footer-modal-link i{float:none;display:inline-block;vertical-align:middle;flex:0 0 20px;}
@media (max-width:321px){.footer .info a.footer-modal-link i{flex-basis:20px;}}
/* System requirements page/table content */
.sysreq-wrap{width:100%;box-sizing:border-box;color:#333;}
.sysreq-title{height:42px;line-height:42px;border-radius:8px;background:#4F3874;color:#fff;text-align:center;font-size:18px;font-weight:700;margin:0 0 18px;}
.sysreq-intro{font-size:15px;line-height:1.9;margin:0 0 14px;color:#333;}
.sysreq-subtitle{display:block;margin:22px 0 10px;color:#4F3874;font-size:17px;font-weight:700;line-height:1.5;border-left:4px solid #6a4d97;padding-left:10px;}
.sysreq-table{width:100%;border-collapse:collapse;margin:0 0 14px;background:#fff;font-size:15px;line-height:1.6;table-layout:fixed;}
.sysreq-table th,.sysreq-table td{border:1px solid #e5dfef;padding:10px 12px;text-align:left;vertical-align:middle;word-break:break-word;}
.sysreq-table th{background:#f2eef8;color:#4F3874;font-weight:700;}
.sysreq-table a{color:#4F3874;text-decoration:none;font-weight:700;}
.sysreq-table a:hover{text-decoration:underline;}
.footer-modal-body .sysreq-title{margin-top:0;}
@media(max-width:768px){.sysreq-title{height:38px;line-height:38px;font-size:16px;margin-bottom:14px;}.sysreq-subtitle{font-size:16px;margin:18px 0 8px;}.sysreq-table{font-size:14px;}.sysreq-table th,.sysreq-table td{padding:9px 8px;}.sysreq-intro{font-size:14px;}}

/* FAQ content */
.faq-content .faq-wrap,.footer-modal-body .faq-wrap{width:100%;box-sizing:border-box;}
.faq-content .faq-group,.footer-modal-body .faq-group{margin:0 0 22px;}
.faq-content .faq-group h2,.footer-modal-body .faq-group h2{margin:0 0 12px;color:#4F3874;font-size:20px;line-height:1.4;border-left:4px solid #6a4d97;padding-left:10px;}
.faq-content .faq-item,.footer-modal-body .faq-item{margin:0 0 10px;border:1px solid #e5dfef;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 2px 8px rgba(79,56,116,.06);}
.faq-content .faq-item summary,.footer-modal-body .faq-item summary{list-style:none;cursor:pointer;padding:12px 42px 12px 14px;position:relative;color:#2d2340;font-size:15px;font-weight:700;line-height:1.6;background:linear-gradient(180deg,#fff,#faf8fe);}
.faq-content .faq-item summary::-webkit-details-marker,.footer-modal-body .faq-item summary::-webkit-details-marker{display:none;}
.faq-content .faq-item summary:after,.footer-modal-body .faq-item summary:after{content:'+';position:absolute;right:14px;top:50%;transform:translateY(-50%);width:22px;height:22px;line-height:20px;text-align:center;border-radius:50%;background:#4F3874;color:#fff;font-size:18px;font-weight:700;}
.faq-content .faq-item[open] summary:after,.footer-modal-body .faq-item[open] summary:after{content:'−';}
.faq-content .faq-answer,.footer-modal-body .faq-answer{padding:12px 14px 14px;border-top:1px solid #eee7f5;color:#444;font-size:15px;line-height:1.85;background:#fff;}
.faq-content .faq-answer ul,.footer-modal-body .faq-answer ul{margin:0 0 0 1.2em;padding:0;}
.faq-content .faq-answer li,.footer-modal-body .faq-answer li{margin:0 0 8px;}
.faq-content .faq-answer a,.footer-modal-body .faq-answer a{color:#4F3874;font-weight:700;text-decoration:none;}
.faq-content .faq-answer a:hover,.footer-modal-body .faq-answer a:hover{text-decoration:underline;}
@media(max-width:768px){.faq-content .faq-group h2,.footer-modal-body .faq-group h2{font-size:17px;}.faq-content .faq-item summary,.footer-modal-body .faq-item summary{font-size:14px;padding:11px 38px 11px 12px;}.faq-content .faq-answer,.footer-modal-body .faq-answer{font-size:14px;padding:11px 12px 13px;}}

/* Footer modal: use fetched page content and page-specific inline styles */
.footer-modal-body>.footer-page-content{box-shadow:none!important;margin:0!important;max-width:none!important;}
.footer-modal-body>.footer-page-card{border-radius:10px!important;}
.footer-modal-body>.footer-page-content:first-child{margin-top:0!important;}
