/* =============================================
   DESIGN TOKENS — matches index.css exactly
============================================= */
:root {
  --green-dark:   #1F803A;
  --green-mid:    #58A23C;
  --blue-dark:    #2C439F;
  --blue-bright:  #2B69B7;
  --blue-light:   #2A8ECF;
  --orange:       #F3702A;
  --gold:         #F89B36;
  --navy:         #0D1B4B;
  --navy-deep:    #080F2E;
  --white:        #FFFFFF;
  --off-white:    #F4F7FF;
  --text-muted:   #8A96B4;
  --text-body:    #3D4F70;
  --border:       rgba(255,255,255,0.08);
  --font-display: 'Syne', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* =============================================
   RESET
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--blue-bright); border-radius: 3px; }

/* =============================================
   NAV — identical to index.css
============================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: 82px; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(8,15,46,0.93);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 70px; width: auto; object-fit: contain; }
.nav-logo-text { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: white; }
.nav-logo-text span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7); transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-links a.active { font-weight: 700; }

.nav-cta { display: flex; gap: 10px; }
.btn-ghost {
  padding: 9px 20px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2); font-size: 13px; font-weight: 600; color: white;
  transition: var(--transition);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.06); }
.btn-primary-sm {
  padding: 9px 22px; border-radius: var(--radius-sm);
  background: var(--orange); font-size: 13px; font-weight: 700; color: white;
  transition: var(--transition);
}
.btn-primary-sm:hover { background: #d9601e; transform: translateY(-1px); }

/* Hamburger — fully reset, no white box */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 4px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  border-radius: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white; border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; background: var(--navy-deep);
  z-index: 999; display: flex; flex-direction: column;
  padding: 100px 5% 48px;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-links { display: flex; flex-direction: column; flex: 1; }
.mobile-menu-links a {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: rgba(255,255,255,0.6); padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  transition: color var(--transition);
}
.mobile-menu-links a:hover, .mobile-menu-links a.active { color: white; }
.mobile-menu-links a i { font-size: 16px; }
.mobile-menu-cta { margin-top: 32px; }
.mobile-menu-cta a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px; border-radius: var(--radius-md);
  background: var(--orange); color: white; font-size: 16px; font-weight: 700;
}

/* =============================================
   PAGE HERO
============================================= */
.page-hero {
  min-height: 420px;
  background: var(--navy-deep);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  padding-bottom: 64px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 25% 50%, rgba(44,67,159,0.22) 0%, transparent 60%),
              radial-gradient(circle at 75% 20%, rgba(31,128,58,0.12) 0%, transparent 50%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-orb {
  position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(44,67,159,0.2) 0%, transparent 65%);
  animation: orbpulse 9s ease-in-out infinite alternate;
}
@keyframes orbpulse { from { transform: scale(1); } to { transform: scale(1.12) translate(2%, -4%); } }

.page-hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 140px 5% 0;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.breadcrumb a:hover { color: white; }
.breadcrumb i { font-size: 10px; }
.breadcrumb span { color: rgba(255,255,255,0.7); }

.page-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 8px; border-radius: 100px;
  background: rgba(44,67,159,0.12); border: 1px solid rgba(44,67,159,0.25);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--blue-light); margin-bottom: 20px;
}
.page-hero-label-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-light); animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -0.03em; color: white;
  margin-bottom: 18px;
}
.page-hero-title .accent-green { color: var(--green-mid); }
.page-hero-sub {
  font-size: 16px; line-height: 1.7;
  color: rgba(255,255,255,0.5); max-width: 520px;
  margin-bottom: 32px;
}

/* meta strip */
.hero-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hero-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.4);
}
.hero-meta-item i { color: var(--green-mid); font-size: 12px; }
.hero-meta-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.1); }

/* =============================================
   TOC SIDEBAR + CONTENT LAYOUT
============================================= */
.terms-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 5%;
  align-items: start;
}

/* Sticky TOC */
.toc-sidebar {
  position: sticky; top: 102px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
.toc-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.toc-title::before { content: ''; width: 14px; height: 2px; background: var(--green-mid); }
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.toc-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13px; color: rgba(255,255,255,0.45);
  transition: var(--transition); cursor: pointer;
}
.toc-link:hover { background: rgba(255,255,255,0.05); color: white; }
.toc-link.active { background: rgba(31,128,58,0.12); color: var(--green-mid); font-weight: 600; }
.toc-link-num {
  font-family: var(--font-display); font-size: 11px; font-weight: 800;
  color: rgba(255,255,255,0.2); min-width: 20px;
  transition: color var(--transition);
}
.toc-link.active .toc-link-num { color: var(--green-mid); }
.toc-link:hover .toc-link-num { color: rgba(255,255,255,0.5); }

.toc-footer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.toc-footer p { font-size: 11px; color: rgba(255,255,255,0.25); line-height: 1.6; }
.toc-footer a { color: var(--green-mid); }

/* =============================================
   MAIN CONTENT
============================================= */
.terms-content { display: flex; flex-direction: column; gap: 8px; }

/* intro card */
.terms-intro-card {
  background: rgba(44,67,159,0.08);
  border: 1px solid rgba(44,67,159,0.18);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 8px;
}
.terms-intro-card p {
  font-size: 15px; color: rgba(255,255,255,0.6);
  line-height: 1.75; margin-bottom: 12px;
}
.terms-intro-card p:last-child { margin-bottom: 0; }

/* section cards */
.terms-section {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), background var(--transition);
  scroll-margin-top: 110px;
}
.terms-section:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}

/* colour accent bar on left */
.terms-section { position: relative; overflow: hidden; }
.terms-section::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; opacity: 0;
  transition: opacity var(--transition);
}
.terms-section:hover::before { opacity: 1; }
.terms-section.green::before  { background: linear-gradient(180deg, var(--green-dark), var(--green-mid)); }
.terms-section.blue::before   { background: linear-gradient(180deg, var(--blue-dark), var(--blue-light)); }
.terms-section.orange::before { background: linear-gradient(180deg, var(--orange), var(--gold)); }
.terms-section.red::before    { background: linear-gradient(180deg, #C0392B, #E74C3C); }

.section-heading {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px;
}
.section-num {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 800; color: white;
}
.section-num.green  { background: rgba(31,128,58,0.2);  color: var(--green-mid); }
.section-num.blue   { background: rgba(44,67,159,0.2);  color: var(--blue-light); }
.section-num.orange { background: rgba(243,112,42,0.15); color: var(--gold); }
.section-num.red    { background: rgba(192,57,43,0.2);  color: #E74C3C; }

.section-heading h2 {
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  color: white; letter-spacing: -0.018em; line-height: 1.25;
  padding-top: 6px;
}

.section-body { padding-left: 50px; }
.section-body p {
  font-size: 14px; color: rgba(255,255,255,0.55);
  line-height: 1.75; margin-bottom: 14px;
}
.section-body p:last-child { margin-bottom: 0; }
.section-body strong { color: rgba(255,255,255,0.85); font-weight: 700; }
.section-body a { color: var(--green-mid); transition: color var(--transition); }
.section-body a:hover { color: var(--green-dark); text-decoration: underline; }

/* bullet list */
.policy-list { margin: 10px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.policy-list li {
  display: flex; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6;
}
.policy-list li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-mid); flex-shrink: 0; margin-top: 7px;
}

/* sub-section headings inside a card */
.sub-heading {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,0.8); text-transform: uppercase;
  letter-spacing: 0.05em; margin: 20px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.sub-heading::before { content: ''; width: 12px; height: 2px; background: var(--gold); }

/* highlight blocks */
.highlight-block {
  border-radius: var(--radius-sm);
  padding: 14px 18px; margin: 16px 0;
  display: flex; align-items: flex-start; gap: 12px;
}
.highlight-block.green { background: rgba(31,128,58,0.1); border-left: 3px solid var(--green-dark); }
.highlight-block.red   { background: rgba(192,57,43,0.1); border-left: 3px solid #C0392B; }
.highlight-block.blue  { background: rgba(43,105,183,0.1); border-left: 3px solid var(--blue-bright); }
.highlight-block.gold  { background: rgba(248,155,54,0.1); border-left: 3px solid var(--gold); }
.highlight-block i { font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.highlight-block.green i { color: var(--green-mid); }
.highlight-block.red   i { color: #E74C3C; }
.highlight-block.blue  i { color: var(--blue-light); }
.highlight-block.gold  i { color: var(--gold); }
.highlight-block p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.55); margin: 0; }
.highlight-block p strong { color: rgba(255,255,255,0.85); }
.highlight-block a { color: var(--green-mid); }

/* contact highlight */
.contact-highlight {
  background: rgba(31,128,58,0.1); border-left: 3px solid var(--green-dark);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 16px;
  display: flex; align-items: center; gap: 12px;
}
.contact-highlight i { color: var(--green-mid); font-size: 16px; }
.contact-highlight a { color: white; font-weight: 600; font-size: 15px; }
.contact-highlight a:hover { color: var(--green-mid); }

/* =============================================
   ZERO TOLERANCE BANNER
============================================= */
.zero-tol {
  background: linear-gradient(135deg, rgba(192,57,43,0.1), rgba(231,76,60,0.06));
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 16px; margin: 16px 0;
}
.zero-tol-icon {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  background: rgba(192,57,43,0.15); border: 1px solid rgba(192,57,43,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.zero-tol h4 { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: white; margin-bottom: 4px; }
.zero-tol p  { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.55; }

/* consequence tags */
.cons-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cons-tag {
  padding: 5px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
  border: 1px solid rgba(231,76,60,0.25); color: rgba(255,255,255,0.6);
}

/* =============================================
   CTA DOWNLOAD STRIP
============================================= */
.cta-strip { padding: 0 5% 80px; background: var(--navy-deep); }
.cta-strip-inner {
  max-width: 1280px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 28px; padding: 52px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta-strip-inner::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,128,58,0.1) 0%, transparent 65%);
}
.cta-strip-inner::after {
  content: '';
  position: absolute; bottom: -60px; left: 20%;
  width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(44,67,159,0.08) 0%, transparent 65%);
}
.cta-strip-content { position: relative; z-index: 1; }
.cta-strip-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 8px; }
.cta-strip-title {
  font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800; color: white; line-height: 1.2; letter-spacing: -0.02em;
}
.cta-strip-title span { color: var(--green-mid); }
.cta-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--radius-md);
  background: var(--orange); color: white; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(243,112,42,0.28); transition: var(--transition);
}
.btn-download:hover { background: #d9601e; transform: translateY(-2px); }
.btn-read {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15); color: white; font-size: 14px; font-weight: 600;
  transition: var(--transition);
}
.btn-read:hover { background: rgba(255,255,255,0.06); }

/* =============================================
   FOOTER — matches index.css
============================================= */
.footer {
  background: #050A1E;
  padding: 56px 5% 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand-desc { font-size: 14px; color: rgba(255,255,255,0.38); line-height: 1.7; margin: 14px 0 22px; max-width: 270px; }
.footer-socials { display: flex; gap: 8px; }
.footer-social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-size: 13px; transition: var(--transition);
}
.footer-social-btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: white; transform: translateY(-2px); }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.27); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.48); transition: color var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.28); }
.footer-copy span { color: var(--green-mid); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.28); transition: color var(--transition); }
.footer-bottom-links a:hover { color: white; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1100px) {
  .terms-layout { grid-template-columns: 1fr; }
  .toc-sidebar { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .page-hero-title { font-size: 36px; }
  .terms-layout { padding: 40px 5%; }
  .terms-section { padding: 24px 20px; }
  .section-body { padding-left: 0; }
  .cta-strip-inner { flex-direction: column; padding: 36px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-meta { flex-direction: column; gap: 10px; }
  .hero-meta-divider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}