/* terms.css — page-specific styles. Global vars/nav/footer in global.css */
body { background: var(--border-light); }

/* HERO */
.hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, var(--dark-3) 100%); padding: 52px 5%; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -80px; right: -40px; width: 450px; height: 450px; background: radial-gradient(circle, rgba(232,100,42,.12) 0%, transparent 65%); border-radius: 50%; }
.hero-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.hbadge { display: inline-flex; align-items: center; gap: 6px; background: rgba(232,100,42,.15); border: 1px solid rgba(232,100,42,.3); color: #FF9A6C; padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; color: white; letter-spacing: -1px; line-height: 1.1; margin-bottom: 10px; }
.hero-sub { font-size: 14px; color: rgba(255,255,255,.55); font-weight: 300; line-height: 1.6; }
.hero-meta { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.hm-item { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 10px 16px; }
.hm-icon { font-size: 18px; flex-shrink: 0; }
.hm-text strong { display: block; font-size: 12px; font-weight: 700; color: white; }
.hm-text span { font-size: 11px; color: rgba(255,255,255,.45); }

/* LAYOUT */
.tc-layout { max-width: 1280px; margin: 0 auto; padding: 36px 5%; display: grid; grid-template-columns: 256px 1fr; gap: 32px; align-items: start; }

/* SIDEBAR */
.tc-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.toc-card { background: white; border-radius: var(--radius); border: 1.5px solid var(--border); overflow: hidden; }
.toc-title { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: var(--dark); padding: 14px 18px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 6px; }
.toc-nav { display: flex; flex-direction: column; padding: 6px 0; }
.toc-link { display: flex; align-items: center; gap: 8px; padding: 8px 18px; text-decoration: none; border-left: 3px solid transparent; transition: all .2s; cursor: pointer; }
.toc-link:hover { background: var(--border-light); }
.toc-link.active { background: var(--orange-pale); border-left-color: var(--orange); }
.toc-num { font-size: 11px; font-weight: 700; color: var(--text-lighter); width: 18px; flex-shrink: 0; }
.toc-link.active .toc-num { color: var(--orange); }
.toc-text { font-size: 12px; font-weight: 500; color: var(--text-light); line-height: 1.4; }
.toc-link.active .toc-text { color: var(--orange-dark); font-weight: 600; }
.agree-card { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); border-radius: var(--radius); padding: 18px; text-align: center; }
.ac-icon { font-size: 26px; margin-bottom: 8px; }
.ac-title { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: white; margin-bottom: 5px; }
.ac-sub { font-size: 11px; color: rgba(255,255,255,.7); line-height: 1.6; margin-bottom: 12px; }
.ac-btn { display: block; padding: 9px; background: white; color: var(--orange-dark); border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; text-decoration: none; transition: all .2s; }
.ac-btn:hover { background: rgba(255,255,255,.9); }
.contact-card-s { background: var(--orange-pale); border: 1.5px solid rgba(232,100,42,.2); border-radius: var(--radius); padding: 16px; }
.ccs-title { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.ccs-desc { font-size: 12px; color: var(--text-light); line-height: 1.6; margin-bottom: 10px; }
.ccs-link { font-size: 12px; color: var(--orange); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 4px; }

/* MAIN */
.tc-main { display: flex; flex-direction: column; gap: 0; }
.ub { background: white; border-radius: var(--radius); border: 1.5px solid var(--border); padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.ub-left { display: flex; align-items: center; gap: 12px; }
.ub-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--orange-pale); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ub-title { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: var(--dark); }
.ub-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.ub-dl { display: flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; color: var(--text-light); text-decoration: none; transition: all .2s; }
.ub-dl:hover { border-color: var(--orange); color: var(--orange); }

/* SECTION */
.tc-section { background: white; border-radius: var(--radius); border: 1.5px solid var(--border); margin-bottom: 12px; overflow: hidden; scroll-margin-top: 90px; }
.ts-header { padding: 18px 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 14px; cursor: pointer; transition: background .2s; user-select: none; }
.ts-header:hover { background: var(--border-light); }
.ts-num { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--orange), var(--orange-dark)); display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 800; color: white; flex-shrink: 0; }
.ts-title { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; color: var(--dark); flex: 1; }
.ts-toggle { font-size: 16px; color: var(--text-lighter); transition: transform .25s; flex-shrink: 0; }
.ts-header.open .ts-toggle { transform: rotate(180deg); }
.ts-body { padding: 22px 26px; display: none; animation: fadeIn .25s ease; }
.ts-body.open { display: block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
.ts-body h3 { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: var(--dark); margin: 18px 0 7px; }
.ts-body h3:first-child { margin-top: 0; }
.ts-body p { font-size: 14px; color: var(--text-light); line-height: 1.85; margin-bottom: 11px; }
.ts-body p:last-child { margin-bottom: 0; }
.ts-body ul, .ts-body ol { padding-left: 20px; margin-bottom: 11px; }
.ts-body li { font-size: 14px; color: var(--text-light); line-height: 1.8; margin-bottom: 5px; }
.ts-body a { color: var(--orange); text-decoration: none; font-weight: 500; }
.ts-body a:hover { text-decoration: underline; }
.ts-body strong { color: var(--dark); font-weight: 600; }

/* INFO BOXES */
.ibox { border-radius: var(--radius-sm); padding: 13px 16px; margin: 13px 0; display: flex; align-items: flex-start; gap: 11px; }
.ibox.info { background: var(--border-light); border: 1.5px solid var(--border); }
.ibox.warn { background: var(--warning-light); border: 1.5px solid rgba(245,158,11,.25); }
.ibox.danger { background: var(--error-light); border: 1.5px solid rgba(239,68,68,.2); }
.ibox.success { background: var(--success-light); border: 1.5px solid rgba(16,185,129,.2); }
.ibox-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.ibox-text { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.ibox-text strong { color: var(--dark); }

/* TABLE */
.tc-table { width: 100%; border-collapse: collapse; margin: 13px 0; border-radius: var(--radius-sm); overflow: hidden; border: 1.5px solid var(--border); }
.tc-table th { background: var(--dark-2); color: white; padding: 10px 16px; font-size: 12px; font-weight: 700; text-align: left; }
.tc-table td { padding: 10px 16px; font-size: 13px; color: var(--text-light); border-bottom: 1px solid var(--border-light); }
.tc-table tr:last-child td { border-bottom: none; }
.tc-table tr:nth-child(even) td { background: var(--border-light); }
.tc-table td:first-child { font-weight: 600; color: var(--dark); }

/* SUMMARY BOX */
.summary-section { background: white; border-radius: var(--radius); border: 1.5px solid var(--border); margin-bottom: 12px; overflow: hidden; }
.ss-header { padding: 18px 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 14px; }
.ss-num { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--success), #059669); display: flex; align-items: center; justify-content: center; font-size: 16px; color: white; flex-shrink: 0; }
.ss-title { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; color: var(--dark); }
.ss-body { padding: 22px 26px; }
.key-points { display: flex; flex-direction: column; gap: 9px; }
.kp { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-light); line-height: 1.65; }
.kp-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--success-light); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* BOTTOM CTA */
.bottom-cta { background: linear-gradient(135deg, var(--dark), var(--dark-2)); border-radius: var(--radius); padding: 30px; text-align: center; margin-bottom: 0; }
.bc-title { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; color: white; margin-bottom: 8px; }
.bc-sub { font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 20px; line-height: 1.6; }
.bc-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.bc-o { padding: 11px 22px; background: var(--orange); color: white; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; text-decoration: none; transition: all .2s; }
.bc-o:hover { background: var(--orange-dark); }
.bc-g { padding: 10px 20px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); border: 1.5px solid rgba(255,255,255,.15); border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; text-decoration: none; transition: all .2s; }
.bc-g:hover { background: rgba(255,255,255,.14); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .tc-layout { grid-template-columns: 1fr; }
  .tc-sidebar { position: static; }
  .hero-meta { display: none; }
}
@media (max-width: 600px) {
  .ts-body, .ss-body { padding: 16px; }
  .bc-btns { flex-direction: column; align-items: stretch; }
}
