/* TrustBoxx legal pages (Terms, Privacy, FAQ) - every rule is scoped to .tbx-legal so the theme is not affected */
.tbx-legal{--bg:#141219;
    --surface:#1b1724;
    --surface-2:#221d2e;
    --line:#2e2840;
    --text:#ffffff;
    --muted:#b9b3c9;
    --primary:#5f2bd7;
    --primary-hover:#7340ea;
    --grad:linear-gradient(45deg,#00c2ff 0%,#eebdff 96%);
    --ok:#3ddc97;
    --warn:#f5c451;
    --radius:12px;}
.tbx-legal,
.tbx-legal *{box-sizing:border-box}
.tbx-legal{margin:0;background:var(--bg);color:var(--text);font-family:Montserrat,sans-serif;font-size:16px;line-height:1.65}
.tbx-legal h1,
.tbx-legal h2,
.tbx-legal h3,
.tbx-legal h4{font-family:Raleway,sans-serif;font-weight:700;line-height:1.25;margin:0 0 .6em}
.tbx-legal a{color:#9fdfff}

/* Keep theme-wide element styles from leaking into these pages */
.tbx-legal h1,
.tbx-legal h2,
.tbx-legal h3,
.tbx-legal h4 {
  color: var(--text);
  text-transform: none;
}
.tbx-legal section {
  background: transparent;
}
.tbx-legal table {
  border: 0;
}
.tbx-legal .wrap{max-width:1140px;margin:0 auto;padding:0 20px}
.tbx-legal .grad{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.tbx-legal .btn{display:inline-block;background:var(--primary);color:#fff;text-decoration:none;font-family:Raleway,sans-serif;font-weight:600;padding:15px 40px;border-radius:160px;border:0;transition:background .2s}
.tbx-legal .btn:hover{background:var(--primary-hover)}
.tbx-legal .btn-sm{padding:11px 26px}
.tbx-legal .btn-ghost{background:transparent;border:1px solid var(--line)}
.tbx-legal .btn-ghost:hover{background:var(--surface-2)}
.tbx-legal .hero{text-align:center;padding:90px 0 70px;background:
      radial-gradient(ellipse 70% 60% at 50% 0%,rgba(95,43,215,.35),transparent 70%),
      linear-gradient(transparent 60%,rgba(0,194,255,.06));}
.tbx-legal .eyebrow{display:inline-block;font-family:Raleway,sans-serif;font-weight:600;font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:#fff;border:1px solid #2e2840;border-radius:160px;padding:6px 16px;margin-bottom:22px;     background: #5f2bd7;}
.tbx-legal .hero h1{font-size:clamp(32px,5vw,52px)}
.tbx-legal .hero p{max-width:760px;margin:0 auto 14px;color:#e9e5f3}
.tbx-legal .hero .actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:28px}
.tbx-legal section{padding:32px 0}
.tbx-legal .section-title{text-align:center;font-size:clamp(26px,3.4vw,34px);margin-bottom:10px}
.tbx-legal .section-sub{text-align:center;color:var(--muted);max-width:720px;margin:0 auto 36px}
.tbx-legal .card{background:var(--surface);border-radius:var(--radius);box-shadow:0 4px 12px rgba(0,0,0,.1);border:1px solid var(--line);padding:26px}
.tbx-legal .grid{display:grid;gap:20px}
.tbx-legal .g3{grid-template-columns:repeat(3,1fr)}
.tbx-legal .g2{grid-template-columns:repeat(2,1fr)}
.tbx-legal .card h3{font-size:20px}
.tbx-legal .card p{margin:0;color:#ddd8ea}
.tbx-legal .icon{width:42px;height:42px;border-radius:10px;background:rgba(95,43,215,.25);display:grid;place-items:center;margin-bottom:14px}
.tbx-legal .icon svg{width:22px;height:22px;stroke:#cfc4ff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tbx-legal .flow{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;justify-content:center}
.tbx-legal .step{flex:1 1 150px;max-width:200px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 14px;text-align:center}
.tbx-legal .step b{display:block;font-family:Raleway,sans-serif;font-size:15px;margin-bottom:4px}
.tbx-legal .step span{font-size:13px;color:var(--muted)}
.tbx-legal .arrow{align-self:center;color:#8f7fd6;font-size:22px}
.tbx-legal .price-hero{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
.tbx-legal .price-big{font-family:Raleway,sans-serif;font-size:40px;font-weight:800}
.tbx-legal .price-big small{font-size:16px;font-weight:600;color:var(--muted)}
.tbx-legal table{width:100%;border-collapse:collapse;font-size:15px}
.tbx-legal th,
.tbx-legal td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.tbx-legal th{font-family:Raleway,sans-serif;font-weight:700;color:#cfc4ff;font-size:14px;text-transform:uppercase;letter-spacing:.04em}
.tbx-legal td:last-child{white-space:nowrap}
.tbx-legal .table-wrap{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface)}
.tbx-legal .note{font-size:13px;color:var(--muted);margin-top:12px}
.tbx-legal .spec-nav{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:30px}
.tbx-legal .spec-nav a{font-size:13px;text-decoration:none;color:#e9e5f3;border:1px solid var(--line);border-radius:160px;padding:6px 14px;background:var(--surface)}
.tbx-legal .spec-nav a:hover{border-color:var(--primary)}
.tbx-legal details{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:12px;scroll-margin-top:90px}
.tbx-legal summary{cursor:pointer;list-style:none;padding:18px 22px;font-family:Raleway,sans-serif;font-weight:700;font-size:18px;display:flex;justify-content:space-between;align-items:center}
.tbx-legal summary::-webkit-details-marker{display:none}
.tbx-legal summary::after{content:"+";font-size:24px;color:#cfc4ff;transition:transform .2s}
.tbx-legal details[open] summary::after{transform:rotate(45deg)}
.tbx-legal dl{margin:0;padding:0 22px 18px;display:grid;grid-template-columns:260px 1fr;gap:0}
.tbx-legal dt,
.tbx-legal dd{padding:12px 0;border-top:1px solid var(--line);margin:0}
.tbx-legal dt{font-weight:600;color:#cfc4ff;padding-right:20px;font-size:15px}
.tbx-legal dd{color:#e9e5f3;font-size:15px}
.tbx-legal .tag{display:inline-block;font-size:12px;font-weight:600;border-radius:160px;padding:2px 10px;margin-right:6px}
.tbx-legal .tag.yes{background:rgba(61,220,151,.15);color:var(--ok)}
.tbx-legal .tag.no{background:rgba(255,255,255,.08);color:#cfc9dc}
.tbx-legal .tag.prog{background:rgba(245,196,81,.15);color:var(--warn)}
.tbx-legal .cta{text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:48px 24px}
@media (max-width:900px){
.tbx-legal .g3{grid-template-columns:1fr 1fr}
.tbx-legal .g3>:last-child:nth-child(odd){grid-column:1/-1}
.tbx-legal .flow{flex-direction:column;align-items:center}
.tbx-legal .step{max-width:520px;width:100%;flex:none}
.tbx-legal .arrow{transform:rotate(90deg)}
}
@media (max-width:640px){
.tbx-legal .g3,
.tbx-legal .g2,
.tbx-legal .price-hero{grid-template-columns:1fr}
.tbx-legal dl{grid-template-columns:1fr}
.tbx-legal dt{border-top:1px solid var(--line);padding-bottom:2px}
.tbx-legal dd{border-top:0;padding-top:2px}
.tbx-legal .arrow{transform:rotate(90deg);width:100%;text-align:center}
.tbx-legal .step{max-width:none}
.tbx-legal .btn{padding:13px 28px}
}
.tbx-legal .prose{max-width:1140px;margin:0 auto}
.tbx-legal .prose h2{font-size:26px;margin-top:44px}
.tbx-legal .prose h3{font-size:19px;margin-top:28px;color:#cfc4ff}
.tbx-legal .prose p,
.tbx-legal .prose li{color:#e2ddee}
.tbx-legal .prose ul,
.tbx-legal .prose ol{padding-left:22px}
.tbx-legal .prose li{margin-bottom:6px}
.tbx-legal .prose table{margin:14px 0 6px}
.tbx-legal .prose td:last-child{white-space:normal}
.tbx-legal .prose th,
.tbx-legal .prose td{min-width:110px}
.tbx-legal .lead{font-size:18px;color:#e9e5f3}
.tbx-legal .pill-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:18px}
.tbx-legal .pill{font-size:13px;border:1px solid var(--line);border-radius:160px;padding:6px 14px;color:#e9e5f3;background:var(--surface)}
.tbx-legal .hero.small{padding:70px 0 50px}
.tbx-legal .hero.small h1{font-size:clamp(30px,4.4vw,44px)}
.tbx-legal .callout{border-left:3px solid var(--primary);background:var(--surface);border-radius:0 var(--radius) var(--radius) 0;padding:18px 22px;margin:22px 0;color:#e9e5f3}
.tbx-legal .yes{color:var(--ok);font-weight:600}
.tbx-legal .no{color:#ff8a8a;font-weight:600}
.tbx-legal .part{color:var(--warn);font-weight:600}
.tbx-legal .g4{grid-template-columns:repeat(4,1fr)}
.tbx-legal .num{font-family:Raleway,sans-serif;font-weight:800;font-size:34px;line-height:1}
.tbx-legal .stepn{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--primary);font-family:Raleway,sans-serif;font-weight:700;font-size:14px;margin-bottom:12px}
.tbx-legal .legal-note{font-size:13px;color:var(--muted);text-align:center;margin-top:8px}
@media (max-width:900px){
.tbx-legal .g4{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
.tbx-legal .g4{grid-template-columns:1fr}
.tbx-legal .prose h2{font-size:22px}
}
