/* ============================================================
   TrustShop — shared stylesheet for legal pages
   Tokens shared with index.html
   ============================================================ */
:root{
  --brand-dark:#070a1d;
  --green-start:#c0e52b;
  --green-end:#7bd50c;
  --green-gradient:linear-gradient(170deg,#c0e52b,#7bd50c);
  --green-soft:#f2fae4;
  --text-primary:#303030;
  --text-muted:#6b6b6b;
  --text-on-dark-muted:#a6abc4;
  --bg-white:#ffffff;
  --bg-light:#f1f1f1;
  --bg-tint:#f7f8fa;
  --border:#e3e3e3;
  --radius-sm:8px;
  --radius-md:16px;
  --radius-lg:24px;
  --radius-pill:9000px;
  --content:1120px;
  --shadow-sm:0 1px 2px rgba(7,10,29,.06),0 2px 8px rgba(7,10,29,.04);
  --shadow-md:0 4px 12px rgba(7,10,29,.06),0 12px 32px rgba(7,10,29,.07);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:96px;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:'Be Vietnam Pro',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:16px;line-height:1.6;color:var(--text-primary);background:var(--bg-white);
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img,svg{max-width:100%;display:block}
a{color:inherit}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
h1,h2,h3,h4{margin:0;line-height:1.2;letter-spacing:-.02em;font-weight:700}
p{margin:0}
ul,ol{margin:0;padding:0}
.wrap{width:100%;max-width:var(--content);margin:0 auto;padding:0 24px}
.serif{font-family:'Neuton',Georgia,serif;font-weight:700;letter-spacing:-.01em}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:10px 20px;border-radius:var(--radius-pill);font-size:14px;font-weight:600;
  text-decoration:none;white-space:nowrap;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--green-gradient);color:var(--brand-dark);box-shadow:0 4px 16px rgba(123,213,12,.32)}
.btn-primary:hover{box-shadow:0 8px 26px rgba(123,213,12,.44);transform:translateY(-2px)}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:80;
  background:rgba(255,255,255,.88);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.nav{display:flex;align-items:center;gap:24px;height:72px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;letter-spacing:-.03em;text-decoration:none;flex-shrink:0}
.logo-mark{width:32px;height:32px;border-radius:9px;flex-shrink:0;box-shadow:0 2px 10px rgba(224,168,26,.34)}
.nav-links{display:flex;align-items:center;gap:24px;margin-left:8px;list-style:none}
.nav-links a{font-size:14.5px;font-weight:500;color:var(--text-muted);text-decoration:none;transition:color .16s ease}
.nav-links a:hover,.nav-links a[aria-current]{color:var(--text-primary)}
.nav-cta{margin-left:auto;display:flex;gap:12px}

/* ---------- page head ---------- */
.legal-head{
  background:var(--brand-dark);color:#fff;padding:64px 0 56px;position:relative;overflow:hidden;
}
.legal-head::before{
  content:"";position:absolute;inset:-60% -10% auto;height:520px;pointer-events:none;
  background:radial-gradient(46% 50% at 30% 60%,rgba(123,213,12,.18),transparent 70%);
}
.legal-head>.wrap{position:relative;z-index:1}
.legal-head .kicker{
  display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;color:var(--text-on-dark-muted);margin-bottom:16px;
}
.legal-head .kicker::before{content:"";width:18px;height:2px;border-radius:2px;background:var(--green-gradient)}
.legal-head h1{font-size:clamp(32px,5vw,52px);letter-spacing:-.035em;margin-bottom:18px}
.legal-head .meta{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center}
.legal-head .chip{
  padding:6px 14px;border-radius:var(--radius-pill);font-size:13px;
  border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#dfe3f2;
}
.legal-head .chip b{color:#fff;font-weight:600}
.legal-head .intro{margin-top:22px;max-width:660px;font-size:16.5px;line-height:1.65;color:#b9bed4}

/* ---------- layout ---------- */
.legal-body{padding:56px 0 88px}
.legal-grid{display:grid;grid-template-columns:248px 1fr;gap:56px;align-items:start}

/* table of contents */
.toc{position:sticky;top:96px}
.toc h2{
  font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text-muted);margin-bottom:14px;
}
.toc ol{list-style:none;counter-reset:toc}
.toc li{counter-increment:toc}
.toc a{
  display:flex;gap:10px;padding:7px 10px;border-radius:var(--radius-sm);
  font-size:13.5px;line-height:1.4;color:var(--text-muted);text-decoration:none;
  transition:background .16s ease,color .16s ease;
}
.toc a::before{content:counter(toc);font-variant-numeric:tabular-nums;font-weight:600;opacity:.55;flex-shrink:0}
.toc a:hover{background:var(--bg-tint);color:var(--text-primary)}
.toc a.active{background:var(--green-soft);color:#4f7a06;font-weight:600}
.toc a.active::before{opacity:1}

/* prose */
.prose{max-width:720px;min-width:0}
.prose section{scroll-margin-top:96px}
.prose section + section{margin-top:44px;padding-top:44px;border-top:1px solid var(--border)}
.prose h2{
  font-size:clamp(21px,2.4vw,26px);margin-bottom:16px;display:flex;gap:12px;align-items:baseline;
}
.prose h2 .num{
  font-size:13px;font-weight:700;color:#5e8e3e;background:var(--green-soft);
  padding:3px 9px;border-radius:var(--radius-pill);flex-shrink:0;letter-spacing:0;
}
.prose h3{font-size:16.5px;margin:26px 0 10px}
.prose p{margin-bottom:14px;color:#3f3f3f}
.prose p:last-child,.prose ul:last-child,.prose ol:last-child{margin-bottom:0}
.prose ul,.prose ol{margin:0 0 14px;padding-left:0;list-style:none}
.prose ul li{position:relative;padding-left:22px;margin-bottom:9px;color:#3f3f3f}
.prose ul li::before{
  content:"";position:absolute;left:4px;top:10px;width:6px;height:6px;border-radius:50%;
  background:var(--green-end);
}
.prose ol{counter-reset:item}
.prose ol li{position:relative;padding-left:26px;margin-bottom:9px;color:#3f3f3f;counter-increment:item}
.prose ol li::before{
  content:counter(item) ".";position:absolute;left:0;top:0;font-weight:700;color:var(--text-muted);
  font-variant-numeric:tabular-nums;
}
.prose a{color:var(--text-primary);font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c7d9a4}
.prose a:hover{text-decoration-color:var(--green-end)}
.prose strong{font-weight:600;color:var(--text-primary)}

/* callout */
.callout{
  background:var(--bg-tint);border:1px solid var(--border);border-left:3px solid var(--green-end);
  border-radius:var(--radius-sm);padding:16px 18px;margin:0 0 14px;font-size:14.5px;line-height:1.6;
}
.callout b{display:block;margin-bottom:5px;color:var(--text-primary)}

/* table */
.table-wrap{overflow-x:auto;margin:0 0 16px;border:1px solid var(--border);border-radius:var(--radius-md)}
table{border-collapse:collapse;width:100%;min-width:520px;font-size:14px}
th,td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--border);vertical-align:top}
th{background:var(--bg-tint);font-weight:700;font-size:12.5px;letter-spacing:.02em;color:var(--text-primary)}
tr:last-child td{border-bottom:0}
td{color:#3f3f3f}

/* contact block */
.contact-card{
  background:var(--brand-dark);color:#fff;border-radius:var(--radius-lg);padding:28px 30px;margin-top:8px;
}
.contact-card h3{color:#fff;margin:0 0 10px;font-size:18px}
.contact-card p{color:var(--text-on-dark-muted);margin-bottom:16px}
.contact-card a{color:#c0e52b;font-weight:600;text-decoration:none}
.contact-card a:hover{text-decoration:underline;text-underline-offset:3px}
.contact-rows{display:grid;gap:9px;font-size:14.5px}
.contact-rows div{display:flex;gap:10px;flex-wrap:wrap}
.contact-rows span{color:var(--text-on-dark-muted);min-width:74px}
.contact-rows .v{color:#fff;min-width:0;font-weight:500}

/* ---------- footer ---------- */
.site-footer{background:#050715;color:#8d94b8;padding:64px 0 32px;font-size:14px}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,.08)}
.foot-brand .logo{color:#fff;margin-bottom:14px}
.foot-brand p{max-width:280px;line-height:1.65;font-size:13.5px}
.foot-col h5{color:#fff;font-size:13px;font-weight:700;margin:0 0 16px}
.foot-col ul{list-style:none}
.foot-col li{margin-bottom:11px}
.foot-col a{font-size:13.5px;text-decoration:none;transition:color .16s ease}
.foot-col a:hover{color:#c0e52b}
.foot-bot{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;padding-top:26px;font-size:12.5px}
.foot-bot a{text-decoration:none}
.foot-bot a:hover{color:#c0e52b}
.foot-legal{display:flex;gap:20px;flex-wrap:wrap}

/* ---------- back to top ---------- */
.to-top{
  position:fixed;right:22px;bottom:22px;width:44px;height:44px;border-radius:50%;
  background:var(--brand-dark);color:#fff;display:grid;place-items:center;z-index:70;
  box-shadow:var(--shadow-md);opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .legal-grid{grid-template-columns:1fr;gap:32px}
  .toc{
    position:static;border:1px solid var(--border);border-radius:var(--radius-md);
    padding:18px 16px;background:var(--bg-tint);
  }
  .toc ol{columns:2;column-gap:18px}
  .toc li{break-inside:avoid}
  .foot-grid{grid-template-columns:1fr 1fr;gap:32px}
}
@media (max-width:680px){
  .nav-links{display:none}
  .legal-head{padding:48px 0 44px}
  .legal-body{padding:40px 0 64px}
  .toc ol{columns:1}
  .prose section + section{margin-top:36px;padding-top:36px}
  .foot-grid{grid-template-columns:1fr}
  .contact-card{padding:24px 22px}
}
