/* ==========================================================
   TUTULMANIA - SYARAT & KETENTUAN
   Rebuilt to match the supplied TUTULMANIA reference screen.
========================================================== */

:root{
    --tm-gold:#ffd21a;
    --tm-gold2:#ffae00;
    --tm-bg:#050505;
    --tm-card:#111313;
    --tm-card2:#171919;
    --tm-border:rgba(255,210,26,.78);
    --tm-text:#f3f3f3;
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#050505;color:var(--tm-text)}
body.terms-page{font-family:Arial,Helvetica,sans-serif;-webkit-text-size-adjust:100%;overflow-x:hidden}
button,a{font:inherit;-webkit-tap-highlight-color:transparent}

.terms-shell{width:100%;min-height:100vh;background:linear-gradient(180deg,#090a0a 0,#050505 45%,#080808 100%)}

/* Header */
.terms-header{
    position:sticky;
    top:0;
    z-index:20;
    height:66px;
    display:grid;
    grid-template-columns:70px 1fr 70px;
    align-items:center;
    padding:0 18px;
    background:linear-gradient(180deg,#111313,#090a0a);
    border-bottom:1px solid rgba(255,210,26,.28);
    box-shadow:0 6px 18px rgba(0,0,0,.45);
}
.terms-header-logo{display:flex;align-items:center;justify-content:center;width:100%;height:100%;text-decoration:none}
.terms-header-logo img{display:block;width:min(240px,42vw);height:50px;object-fit:contain}
.terms-menu-button,.terms-notify{position:relative;width:46px;height:46px;border:0;background:transparent;color:#fff;padding:5px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.terms-menu-button{flex-direction:column;gap:6px;justify-self:start}
.terms-menu-button span{display:block;width:38px;height:4px;border-radius:3px;background:#fff}
.terms-notify{justify-self:end}
.terms-notify svg{width:38px;height:38px}
.terms-notify i{position:absolute;top:5px;right:2px;width:11px;height:11px;border-radius:50%;background:#f52222;border:1px solid #080808}

/* Main content */
.terms-main{width:100%;padding:14px 18px 0}
.terms-card{width:100%;margin:0 auto;border:2px solid var(--tm-border);border-radius:18px;background:#070808;box-shadow:0 0 0 1px rgba(255,174,0,.08),0 8px 24px rgba(0,0,0,.45);overflow:hidden;padding:0 10px 14px}
.terms-banner{display:block;width:calc(100% + 20px);height:auto;margin:0 -10px 7px;aspect-ratio:661/167;object-fit:cover;border-bottom:1px solid rgba(255,210,26,.25)}

.terms-list{list-style:none;margin:0;padding:0 0 0;display:flex;flex-direction:column;gap:4px}
.terms-list li{display:grid;grid-template-columns:55px minmax(0,1fr);align-items:center;min-height:51px;padding:5px 10px 5px 6px;border:1px solid rgba(255,255,255,.18);border-radius:11px;background:linear-gradient(180deg,rgba(25,28,28,.95),rgba(12,14,14,.95));box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 2px 4px rgba(0,0,0,.25)}
.terms-number{width:39px;height:39px;border:2px solid var(--tm-gold);border-radius:11px;display:flex;align-items:center;justify-content:center;color:var(--tm-gold);font-size:20px;font-weight:700;line-height:1}
.terms-list p{margin:0;color:#f0f0f0;font-size:14px;line-height:1.25;font-weight:400}
.terms-list strong{color:var(--tm-gold);font-weight:800}

.terms-closing{margin:8px 0 7px;padding:9px 12px;border:1px solid var(--tm-gold);border-radius:11px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--tm-gold);background:linear-gradient(180deg,#121414,#090a0a);font-size:15px;line-height:1.2;text-align:center}
.terms-closing svg{width:30px;height:24px;flex:0 0 30px}

.terms-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.terms-actions form{margin:0;min-width:0}
.terms-btn{width:100%;height:54px;border:1px solid rgba(255,255,255,.18);border-radius:11px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:17px;font-weight:800;cursor:pointer}
.terms-btn svg{width:25px;height:25px}
.terms-btn-agree{background:linear-gradient(180deg,#ffd21a,#ffb800);color:#090909;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 3px 8px rgba(0,0,0,.35)}
.terms-btn-back{background:linear-gradient(180deg,#4a4a4a,#2d2d2d);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 8px rgba(0,0,0,.35)}
.terms-btn:active{transform:translateY(1px)}

/* Footer */
.terms-footer{margin-top:12px;padding:25px 7.5% 31px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid rgba(255,210,26,.24);background:linear-gradient(180deg,#090a0a,#060606)}
.terms-footer-logo{display:block;width:min(205px,34vw);height:48px;object-fit:contain;object-position:left center}
.terms-socials{display:flex;align-items:center;gap:12px}
.terms-socials a{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;background:radial-gradient(circle at 35% 30%,#292929,#151515 72%);border:1px solid rgba(255,255,255,.04);text-decoration:none;box-shadow:inset 0 1px 1px rgba(255,255,255,.04),0 2px 5px rgba(0,0,0,.4)}
.terms-socials svg{width:21px;height:21px}

@media(max-width:600px){
    .terms-header{height:64px;grid-template-columns:56px 1fr 56px;padding:0 13px}
    .terms-header-logo img{width:min(230px,54vw);height:46px}
    .terms-menu-button,.terms-notify{width:44px;height:44px}
    .terms-menu-button span{width:34px;height:4px}
    .terms-notify svg{width:35px;height:35px}
    .terms-main{padding:13px 14px 0}
    .terms-card{border-radius:15px;padding:0 8px 11px}
    .terms-banner{width:calc(100% + 16px);margin-left:-8px;margin-right:-8px;margin-bottom:6px}
    .terms-list{gap:4px}
    .terms-list li{grid-template-columns:51px minmax(0,1fr);padding:5px 8px 5px 5px;min-height:49px;border-radius:10px}
    .terms-number{width:37px;height:37px;border-radius:10px;font-size:19px}
    .terms-list p{font-size:13.5px;line-height:1.24}
    .terms-closing{font-size:14px;padding:9px 8px;gap:8px}
    .terms-actions{gap:8px}
    .terms-btn{height:52px;font-size:16px}
    .terms-footer{padding:22px 6% 28px;gap:15px}
    .terms-footer-logo{width:min(190px,35vw);height:43px}
    .terms-socials{gap:8px}
    .terms-socials a{width:36px;height:36px}
    .terms-socials svg{width:19px;height:19px}
}

@media(max-width:430px){
    .terms-header{grid-template-columns:48px 1fr 48px;padding:0 8px}
    .terms-header-logo img{width:min(210px,58vw)}
    .terms-main{padding:10px 9px 0}
    .terms-card{border-width:1.5px;padding:0 6px 9px;border-radius:13px}
    .terms-banner{width:calc(100% + 12px);margin-left:-6px;margin-right:-6px}
    .terms-list li{grid-template-columns:47px minmax(0,1fr);padding:4px 6px 4px 4px;min-height:47px}
    .terms-number{width:34px;height:34px;font-size:17px;border-radius:9px}
    .terms-list p{font-size:12.5px;line-height:1.24}
    .terms-closing{font-size:13px}
    .terms-btn{height:50px;font-size:15px}
    .terms-btn svg{width:22px;height:22px}
    .terms-footer{padding-left:4%;padding-right:4%;gap:8px}
    .terms-footer-logo{width:145px;height:39px}
    .terms-socials{gap:5px}
    .terms-socials a{width:32px;height:32px}
    .terms-socials svg{width:17px;height:17px}
}

/* 6.2.74 shared-shell integration: Terms uses the exact same header/footer as member pages. */
/* Fixed member header compensation: keep the Terms banner fully below the header. */
.terms-page .page-content{background:#050505!important;padding-top:74px!important;min-height:0!important}
.terms-page .terms-main{width:100%;max-width:480px;margin:0 auto;padding:13px 9px 0!important}
.terms-page .terms-card{border-width:1.5px!important;border-radius:15px!important;padding:0 6px 9px!important;background:#070808!important}
.terms-page .terms-banner{width:calc(100% + 12px)!important;margin-left:-6px!important;margin-right:-6px!important;margin-bottom:6px!important}
.terms-page .terms-list{gap:4px!important}
.terms-page .terms-list li{grid-template-columns:47px minmax(0,1fr)!important;padding:4px 6px 4px 4px!important;min-height:47px!important;border-radius:10px!important}
.terms-page .terms-number{width:34px!important;height:34px!important;font-size:17px!important;border-radius:9px!important}
.terms-page .terms-list p{font-size:12.5px!important;line-height:1.24!important}
.terms-page .terms-closing{font-size:13px!important}
.terms-page .terms-btn{height:50px!important;font-size:15px!important}
@media(min-width:431px){
  .terms-page .terms-main{padding:14px 18px 0!important}
  .terms-page .terms-card{border-width:2px!important;border-radius:18px!important;padding:0 10px 14px!important}
  .terms-page .terms-banner{width:calc(100% + 20px)!important;margin-left:-10px!important;margin-right:-10px!important}
  .terms-page .terms-list li{grid-template-columns:55px minmax(0,1fr)!important;padding:5px 10px 5px 6px!important;min-height:51px!important;border-radius:11px!important}
  .terms-page .terms-number{width:39px!important;height:39px!important;font-size:20px!important;border-radius:11px!important}
  .terms-page .terms-list p{font-size:14px!important;line-height:1.25!important}
  .terms-page .terms-closing{font-size:15px!important}
  .terms-page .terms-btn{height:54px!important;font-size:17px!important}
}

/* ==========================================================
   6.2.75 FINAL TERMS BANNER VISIBILITY FIX
   The shared fixed member header must never crop the Terms banner.
   Use an explicit responsive rendered height instead of relying on
   the image's intrinsic height/aspect-ratio calculation.
========================================================== */
.terms-page .page-content{
    padding-top:74px!important;
    overflow:visible!important;
}

.terms-page .terms-main{
    position:relative!important;
    z-index:1!important;
}

.terms-page .terms-card{
    overflow:hidden!important;
}

.terms-page .terms-banner{
    display:block!important;
    position:relative!important;
    z-index:1!important;
    width:calc(100% + 12px)!important;
    height:auto!important;
    min-height:96px!important;
    aspect-ratio:661 / 167!important;
    object-fit:cover!important;
    object-position:center center!important;
    margin-top:0!important;
    margin-left:-6px!important;
    margin-right:-6px!important;
    margin-bottom:6px!important;
}

@media(min-width:431px){
    .terms-page .terms-banner{
        width:calc(100% + 20px)!important;
        min-height:121px!important;
        margin-left:-10px!important;
        margin-right:-10px!important;
    }
}

@media(max-width:430px){
    .terms-page .terms-banner{
        min-height:96px!important;
    }
}


/* ==========================================================
   6.2.76 TERMS CLOSING + CARD BORDER FIX
   - Remove the closing crown/icon and keep the message truly centered.
   - Give the Terms card a clear separation from the shared footer so
     its bottom border cannot visually merge with the footer top border.
========================================================== */
.terms-page .terms-closing{
    justify-content:center!important;
    text-align:center!important;
    margin-left:0!important;
    margin-right:0!important;
}

.terms-page .terms-closing span{
    display:block!important;
    width:100%!important;
    margin:0!important;
    text-align:center!important;
}

.terms-page .terms-card{
    position:relative!important;
    z-index:2!important;
    margin-bottom:14px!important;
    border-bottom-color:var(--tm-gold)!important;
}

.terms-page .tm-global-footer{
    position:relative!important;
    z-index:1!important;
}
