/* ============================================================================
   LEGAL — Portfolio design system override (2026-11-24).
   Loaded via $extra_head AFTER the shared header CSS, so it wins.
   Covers all seven legal documents (Privacy, Terms, Risk, Cookie, GDPR,
   Accessibility, Disclaimer) and their Tailwind-styled markup.
   All legal copy, links, ids and structure stay byte-identical.
   ============================================================================ */
html{scroll-behavior:auto !important}
body,.legal-page{background:#050506 !important;color:#f5f5f3 !important;animation:none !important;transition:none !important}
*,*::before,*::after{animation:none !important;transition:none !important}

/* kill the decorative gradient background layer, keep the layout wrapper */
.bg-gradient-to-b,.bg-gradient-to-r{background:none !important;background-image:none !important}
.fixed.inset-0.pointer-events-none{display:none !important}

/* container + panel */
.legal-container{max-width:1180px !important;margin:0 auto !important;padding:4.5rem 1.5rem !important}
.legal-card{
  background:#0a0a0c !important;border:1px solid rgba(255,255,255,0.13) !important;
  border-radius:0 !important;box-shadow:none !important;backdrop-filter:none !important;
  padding:2.5rem !important;transform:none !important;
}
.reveal-on-scroll{opacity:1 !important;transform:none !important}

/* Portfolio typography — serif display 400, sans body, mono labels */
.legal-card h1,.legal-page h1{
  font-family:Georgia,"Times New Roman",serif !important;font-weight:400 !important;
  font-size:clamp(2.6rem,5.5vw,4.4rem) !important;line-height:1 !important;
  letter-spacing:-.025em !important;color:#f5f5f3 !important;
  margin:0 0 1.5rem !important;text-transform:uppercase !important;
}
.legal-card h2{
  font-family:Georgia,"Times New Roman",serif !important;font-weight:400 !important;
  font-size:clamp(1.5rem,3vw,2.2rem) !important;line-height:1.15 !important;
  letter-spacing:-.01em !important;color:#f5f5f3 !important;
  margin:2.5rem 0 1rem !important;padding-bottom:.7rem !important;
  border-bottom:1px solid rgba(255,255,255,0.13) !important;
}
.legal-card h3{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace !important;font-weight:400 !important;
  font-size:11px !important;letter-spacing:.18em !important;text-transform:uppercase !important;
  color:#a4a4a1 !important;margin:2rem 0 .8rem !important;
}
.legal-card p,.legal-card li,.legal-card blockquote{
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif !important;
  font-size:15px !important;line-height:1.7 !important;color:#a4a4a1 !important;
}
.legal-card strong{color:#f5f5f3 !important;font-weight:600 !important}
.legal-card ul{padding-left:1.3rem !important}
.legal-card a{color:#f5f5f3 !important;text-decoration:none !important;border-bottom:1px solid rgba(255,255,255,0.28) !important}
.last-updated{
  display:block;font-family:ui-monospace,SFMono-Regular,Menlo,monospace !important;
  font-size:9.5px !important;letter-spacing:.22em !important;text-transform:uppercase !important;
  color:#6f6f70 !important;margin-bottom:1rem !important;
}

/* replace the old utility colours */
.text-gray-300{color:#a4a4a1 !important}
.text-white{color:#f5f5f3 !important}
.text-muted{color:#6f6f70 !important}
.text-\[\#CBD2DC\]{color:#f5f5f3 !important}
.rounded-lg,.rounded-md,.rounded-xl,.rounded-2xl{border-radius:0 !important}
.bg-white\/5,.bg-white\/\[0\.02\],.bg-black\/40,.bg-black\/60{background:transparent !important}
.border-white\/5,.border-white\/10,.border-white\/20{border-color:rgba(255,255,255,0.13) !important}
.shadow-lg,.shadow-xl{box-shadow:none !important}

/* skip link stays accessible, square */
.skip-link{background:#f5f5f3 !important;color:#050506 !important;border-radius:0 !important}

/* the shared 'Explore the ecosystem' footer strip */
[aria-label="Explore the ecosystem"]{background:#050506 !important;border-top:1px solid rgba(255,255,255,0.13) !important;padding:3.5rem 1.5rem !important}
[aria-label="Explore the ecosystem"] .h-px{background:rgba(255,255,255,0.13) !important}
[aria-label="Explore the ecosystem"] .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace !important;letter-spacing:.25em !important;text-transform:uppercase !important;color:#6f6f70 !important}
[aria-label="Explore the ecosystem"] a{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace !important;font-size:10px !important;
  letter-spacing:.16em !important;text-transform:uppercase !important;
  border:1px solid rgba(255,255,255,0.13) !important;border-radius:0 !important;
  background:transparent !important;color:#a4a4a1 !important;box-shadow:none !important;
  padding:.7rem 1rem;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;
}

@media (max-width:900px){
  .legal-container{padding:3rem 1rem !important}
  .legal-card{padding:1.5rem !important}
}
@media (max-width:420px){ .legal-card{padding:1rem !important} }
