/* Manticore Finance — shared styles for content/legal pages */
:root {
  --bg: #0b0d13; --bg-2: #0f1117; --panel: #141824; --panel-2: #1a1f2e;
  --border: #262b3b; --border-soft: rgba(255,255,255,0.06);
  --text: #e9ebf3; --text-dim: #9297ad; --text-faint: #656a80;
  --accent: #5b8cff; --accent-2: #7aa2ff; --accent-deep: #2f57d6;
  --green: #2fbf71; --yellow: #e0a640; --glow: rgba(91,140,255,0.5);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: rgba(91,140,255,0.35); color: #fff; }
a { color: var(--accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: #cdd9ff; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- NAV (shared with landing) ---------- */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px; background: rgba(11,13,19,0.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-soft); transition: padding .3s, background .3s; }
#nav.scrolled { background: rgba(11,13,19,0.88); padding: 12px 40px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .2px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 2px 10px rgba(91,140,255,0.35)); }
#nav .brand img { width: 68px; height: 68px; }
.brand span { font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--text-dim); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links a.current { color: var(--text); }
.btn { font-family: var(--sans); font-weight: 600; font-size: 14.5px; padding: 10px 20px; border-radius: 10px; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .3s, background .3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%); box-shadow: 0 6px 22px rgba(47,87,214,0.4), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 30px rgba(47,87,214,0.55); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,0.04);
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; z-index: 120; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s, opacity .2s; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(4,6,10,0.5); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s; }
body.menu-open .nav-scrim { opacity: 1; pointer-events: auto; }
@media (max-width: 820px) {
  #nav, #nav.scrolled { padding: 14px 22px; }
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 320px); flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 8px; padding: 92px 26px 26px; background: rgba(9,11,16,0.96); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-left: 1px solid var(--border-soft); box-shadow: -30px 0 80px rgba(0,0,0,0.5); transform: translateX(105%); transition: transform .38s cubic-bezier(.4,0,.1,1); }
  body.menu-open .nav-links { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; padding: 12px 6px; border-bottom: 1px solid var(--border-soft); }
  .nav-links a.btn { margin-top: 14px; border-bottom: none; }
  .nav-links .btn { width: 100%; justify-content: center; padding: 14px 20px; }
}

/* ---------- PAGE HERO ---------- */
.page-hero { position: relative; padding: 168px 0 54px; overflow: hidden; border-bottom: 1px solid var(--border-soft); }
.page-hero::before { content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%); width: 900px; height: 460px;
  background: radial-gradient(circle, rgba(47,87,214,0.22) 0%, rgba(47,87,214,0.05) 45%, transparent 68%); filter: blur(10px); pointer-events: none; }
.page-hero .wrap { position: relative; }
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; letter-spacing: .3px; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--text-dim); }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 6px 14px; border-radius: 100px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .3px; color: var(--accent-2); background: rgba(91,140,255,0.1); border: 1px solid rgba(91,140,255,0.22); }
.page-hero h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; margin-bottom: 16px; }
.page-hero .sub { color: var(--text-dim); font-size: 1.08rem; max-width: 620px; }
.page-hero .updated { margin-top: 20px; font-size: 13px; color: var(--text-faint); }

/* ---------- LEGAL CONTENT ---------- */
.legal { padding: 64px 0 100px; }
.legal .wrap { max-width: 860px; }
.legal .toc { background: linear-gradient(160deg, var(--panel) 0%, var(--bg-2) 100%); border: 1px solid var(--border); border-radius: 16px; padding: 22px 26px; margin-bottom: 46px; }
.legal .toc h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); margin: 0 0 14px; }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 40px; }
.legal .toc li { margin-bottom: 8px; font-size: 14.5px; }
.legal .toc a { color: var(--text-dim); }
.legal .toc a:hover { color: var(--accent-2); }
.legal h2.sec { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.01em; margin: 46px 0 14px; scroll-margin-top: 96px; }
.legal h2.sec:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 26px 0 10px; }
.legal p { color: var(--text-dim); margin-bottom: 16px; }
.legal ul, .legal ol.body { color: var(--text-dim); margin: 0 0 18px; padding-left: 24px; }
.legal li { margin-bottom: 10px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal hr { border: none; border-top: 1px solid var(--border-soft); margin: 40px 0; }
.legal .callout { background: rgba(224,166,64,0.08); border: 1px solid rgba(224,166,64,0.28); border-radius: 12px; padding: 18px 20px; margin: 0 0 40px; font-size: 14.5px; color: var(--text-dim); }
.legal .callout strong { color: var(--yellow); }
.legal .callout.blue { background: rgba(91,140,255,0.08); border-color: rgba(91,140,255,0.28); }
.legal .callout.blue strong { color: var(--accent-2); }
.legal .ph { color: var(--yellow); background: rgba(224,166,64,0.12); border: 1px dashed rgba(224,166,64,0.4); border-radius: 5px; padding: 1px 7px; font-size: 0.92em; white-space: nowrap; }
.legal a.email { color: var(--accent-2); font-weight: 500; }
.legal .backtop { display: inline-block; margin-top: 40px; font-size: 14px; color: var(--text-faint); }

/* ---------- FOOTER (shared) ---------- */
footer { border-top: 1px solid var(--border-soft); padding: 60px 0 40px; background: #090b0f; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; margin-bottom: 12px; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--text-faint); font-size: 14px; line-height: 1.6; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h5 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 11px; }
.foot-col a:hover { color: var(--text); }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 4px; padding: 30px 0; margin-top: 26px; border-top: 1px solid var(--border-soft); }
.foot-nav a { color: var(--text-dim); font-size: 14px; font-weight: 500; padding: 2px 0; }
.foot-nav a:hover { color: var(--text); }
.foot-nav a:not(:last-child)::after { content: "·"; margin: 0 6px 0 10px; color: var(--text-faint); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border-soft); color: var(--text-faint); font-size: 13px; }
@media (max-width: 560px) { .foot-nav a:not(:last-child)::after { margin: 0 4px 0 7px; } .legal .toc ol { columns: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
