/* =========================================================
   FOOTER
   - 共用四語系 footer
   - 保留原本 footer_bg.png 裝飾背景
   ========================================================= */
.site-footer{
  position:relative;
  overflow:hidden;
  min-height:300px;
  /* padding:58px 24px 28px; */
  padding: 20px 24px 20px;
  color:#fff;
  background-color: #977ee0;
  /* background:
    url("../images/footer/footer_bg.png") center top/auto 100% repeat-x; */
  text-shadow:0 1px 2px rgba(55,43,112,.42);
}


.footer-inner{
  position:relative;
  z-index:1;
  max-width:1060px;
  margin:0 auto;
  font-size:13px;
}

.footer-inner ul,
.footer-inner p{
  margin:0;
  padding:0;
}

.footer-inner ul{list-style:none;}

.footer-inner a{
  color:inherit;
  text-decoration:none;
  transition:opacity .2s ease, transform .2s ease;
}

.footer-inner a:hover{opacity:.78;}

/* 平台 / 社群  */
.footer-links-row{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px 34px;
  margin-top: 1.5rem;
  margin-bottom:20px;
}

.footer-link-group{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0 10px;
}

.footer-link-group li{display:flex;align-items:center;}

.footer-group-title{
  font-weight:600;
  white-space:nowrap;
  opacity:.95;
}

.footer-link-group a{
  display:inline-flex;
  align-items:center;
  gap:0px;
  font-weight:600;
  white-space:nowrap;
}

.footer-link-group a:hover{transform:translateY(-1px);}

.footer-link-group img{
  width:35px;
  height:35px;
  object-fit:contain;
  flex:0 0 auto;
}

#socialReddit{
  display: none;
}

/* 合約 / 政策  */
.footer-policy-row{
  display:grid;
  grid-template-columns:minmax(50px,1fr) auto minmax(50px,1fr);
  align-items:center;
  gap:18px;
  max-width:760px;
  margin:0 auto 24px;
}

.footer-policy-line{
  display:block;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,238,185,.8));
}

.footer-policy-line:last-child{
  background:linear-gradient(90deg,rgba(255,238,185,.8),transparent);
}

.link_txt{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:0 8px;
  font-weight:600;
  white-space:nowrap;
}

.cr_link{padding:3px 1px;}
.policy-separator{color:#fff0b8;}

/* 公司 / 分級資訊  */
.footer-info-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:54px;
  margin:0 auto;
}

.footer-company{
  display:flex;
  align-items:center;
  gap:20px;
  min-width:0;
}

.footer-userjoy-logo{
  width:122px;
  height:auto;
  object-fit:contain;
  flex:0 0 auto;
}

.footer-company-copy{
  line-height:1.55;
  text-align:left;
  white-space:nowrap;
}

.footer-company-copy a{text-decoration:none;}

.footer-rating{
  display:flex;
  align-items:flex-start;
  gap:10px;
  max-width:470px;
  text-align:left;
}

.rating-badge{
  width:40px;
  height:40px;
  padding-top: 3px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}


.footer-rating ul{
  display:grid;
  gap:3px;
  line-height:1.45;
}

.footer-rating li{
  position:relative;
  padding-left:12px;
}

.footer-rating li::before{
  content:"■";
  position:absolute;
  left:0;
  top:.05em;
  font-size:7px;
  color:rgba(255,255,255,.8);
}

.footer-privacy-note{
  margin-top:18px!important;
  text-align:center;
  line-height:1.55;
  opacity:.9;
}

/* TOP -------------------------------------------------------- */
.footer-top-btn{
  position:fixed;
  right:30px;
  bottom:26px;
  z-index:3;
  display:none;
  width:52px;
  height:58px;
  padding:4px;
  border:0;
  color:#f5d67d;
  background:transparent;
  font:700 16px/1.05 Georgia,"Times New Roman",serif;
  text-shadow:0 2px 4px rgba(34,23,81,.65),0 0 8px rgba(255,216,111,.3);
  cursor:pointer;
}

.top-arrow{
  display:block;
  width:18px;
  height:18px;
  margin:0 auto 3px;
  border-top:2px solid currentColor;
  border-left:2px solid currentColor;
  transform:rotate(45deg);
  filter:drop-shadow(0 1px 2px rgba(34,23,81,.55));
}

.footer-top-btn:hover{transform:translateY(-2px);}




/* RWD -------------------------------------------------------- */

@media (max-width: 991.98px) {

    .site-footer {
        padding: 52px 24px 30px;
    }

    .footer-info-row {
        gap: 34px;
    }

    .footer-company-copy {
        white-space: normal;
    }

    .footer-top-btn {
        right: 16px;
        bottom: 18px;
    }

}


@media (max-width: 767.98px) {

    .site-footer,
    .footer-inner {
        width: 100%;
        max-width: 100%;
    }

    .site-footer {
        min-height: 0;
        padding: 44px 18px 30px;
        background-size: auto 100%;
    }

    .footer-inner {
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }


    /* Footer Links  */
    .footer-links-row {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 22px;
        flex-direction: column;
        gap: 14px;
    }

    .footer-link-group {
        width: 100%;
        justify-content: center;
        gap: 9px 14px;
    }

    .footer-link-group img {
        width: 24px;
        height: 24px;
    }


    /* Policy  */
    .footer-policy-row {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 24px;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .footer-policy-line {
        display: none;
    }

    .link_txt {
        white-space: normal;
        line-height: 1.9;
    }


    /* Company / Rating  */
    .footer-info-row {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }

    .footer-company {
        flex-direction: column;
        gap: 10px;
    }

    .footer-company-copy {
        text-align: center;
    }

    .footer-rating {
        justify-content: center;
        max-width: 520px;
    }


    /* Privacy  */
    .footer-privacy-note {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0 36px;
        font-size: 12px;
    }

}


@media (max-width: 575.98px) {

    .site-footer {
        padding: 40px 12px 28px;
        background: none;
        background-color:#9c73d6;
    }

    .footer-inner {
        font-size: 12px;
    }


    /* Footer Links  */
    .footer-link-group,
    .social_gp {
        width: 100%;
        display: flex;
        justify-content: center;
        /* gap: 10px 14px; */
    }

    .footer-group-title {
        /* width: 100%; */
        justify-content: center;
        text-align: center;
    }
    .footer-inner ul{
      font-size: 13px;
    }

    .footer-link-group a {
        gap: 5px;
    }

    .footer-link-group img {
        width: 22px;
        height: 22px;
    }

    #socialReddit,
    #socialX{
      display: none;
    }




    /* Company  */
    .footer-company-copy {
        overflow-wrap: anywhere;
    }


    /* Rating  */
    .footer-rating {
        width: 100%;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-rating ul {
        min-width: 0;
        font-size: 11px;
    }


    /* Privacy  */
    .footer-privacy-note {
        padding-right: 0;
    }


    /* Top Button  */
    .footer-top-btn {
        right: 8px;
        bottom: 14px;
        transform: scale(.88);
        transform-origin: right bottom;
    }

}