/* ═══════════════════════════════════════════════════
   LEGAL PAGES — Shared stylesheet
   McNulty Business Advisory
═══════════════════════════════════════════════════ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --dark:#1B1D1F;
  --dark-2:#242726;
  --gold:#2F5D50;
  --gold-bright:#3F7766;
  --white:#EDE8DC;
  --cream:#EDE8DC;
  --paper:#E5E0D3;
  --line:rgba(27,29,31,.12);
  --line-strong:rgba(27,29,31,.32);
  --text:#1B1D1F;
  --muted:#6A6D72;
  --blue:#2F5D50;
  --font-h:'IBM Plex Sans',system-ui,sans-serif;
  --font-s:'Libre Caslon Text',Georgia,serif;
  --font-b:'IBM Plex Sans',-apple-system,BlinkMacSystemFont,sans-serif;
}

@font-face{font-family:'Libre Caslon Text';font-style:normal;font-weight:400 700;font-display:swap;src:url('https://fonts.amdgcore.com/fonts/libre-caslon-text/LibreCaslonText%5Bwght%5D.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:100 900;font-display:swap;src:url('https://fonts.amdgcore.com/fonts/ibm-plex-sans/IBMPlexSans%5Bwdth%2Cwght%5D.woff2') format('woff2')}

html{scroll-behavior:smooth}
body{
  font-family:var(--font-b);
  font-size:17px;
  line-height:1.7;
  color:var(--text);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;display:block}
a{color:var(--blue);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{color:var(--dark)}
::selection{background:var(--gold);color:#000}

/* ═══ NAV ═══ */
.nav{
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  padding:18px 48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:rgba(10,15,28,.92);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav-brand{display:flex;align-items:center;text-decoration:none}
.nav-logo{
  height:38px;
  width:auto;
  filter:brightness(0) invert(1);
  transition:opacity .2s;
}
.nav-brand:hover .nav-logo{opacity:.85}
.nav-links{display:none;gap:32px;align-items:center}
@media(min-width:900px){.nav-links{display:flex}}
.nav-link{
  font-size:13px;
  font-weight:500;
  color:rgba(255,255,255,.65);
  letter-spacing:.02em;
  text-decoration:none;
  transition:color .2s;
}
.nav-link:hover{color:var(--gold-bright)}
.nav-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 22px;
  background:var(--gold);
  color:#000;
  font-size:12px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  text-decoration:none;
  transition:background .2s,transform .2s;
  white-space:nowrap;
}
.nav-cta:hover{background:var(--gold-bright);transform:translateY(-1px);color:#000}

/* ═══ LEGAL HEADER ═══ */
.legal-header{
  background:var(--dark);
  color:#fff;
  padding:170px 48px 90px;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.legal-header::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse 800px 400px at 80% 0%,rgba(229,168,41,.08),transparent 60%),
    radial-gradient(ellipse 500px 300px at 10% 100%,rgba(30,74,192,.06),transparent 65%);
  pointer-events:none;
}
.legal-header-inner{
  position:relative;
  max-width:1100px;
  margin:0 auto;
}
.back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:500;
  color:rgba(255,255,255,.55);
  letter-spacing:.02em;
  text-decoration:none;
  transition:color .2s,gap .2s;
  margin-bottom:40px;
}
.back-link:hover{color:var(--gold-bright);gap:12px}
.back-link svg{width:14px;height:14px}
.legal-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.26em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:20px;
}
.legal-eyebrow::before{
  content:'';
  width:24px;
  height:1px;
  background:var(--gold);
}
.legal-h1{
  font-family:var(--font-h);
  font-size:clamp(40px,6vw,80px);
  font-weight:900;
  line-height:1;
  letter-spacing:-.025em;
  margin-bottom:24px;
}
.legal-h1 em{
  font-family:var(--font-s);
  font-style:italic;
  font-weight:600;
  color:var(--gold-bright);
}
.legal-meta{
  display:flex;
  gap:32px;
  flex-wrap:wrap;
  align-items:center;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.1);
  margin-top:36px;
}
.legal-meta-item{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.legal-meta-label{
  font-size:10px;
  font-weight:700;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:rgba(255,255,255,.4);
}
.legal-meta-value{
  font-size:14px;
  font-weight:500;
  color:#fff;
}

/* ═══ CONTENT ═══ */
.legal-content{
  background:var(--cream);
  padding:90px 48px 120px;
}
.legal-inner{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:56px;
}
@media(min-width:960px){
  .legal-inner{grid-template-columns:240px minmax(0,1fr);gap:80px;align-items:start}
}

.legal-toc{
  position:sticky;
  top:100px;
  padding:28px 0;
  border-top:2px solid var(--gold);
  border-bottom:1px solid var(--line);
}
@media(max-width:959px){
  .legal-toc{
    position:static;
    background:var(--paper);
    padding:28px 24px;
    border:1px solid var(--line);
    border-top:2px solid var(--gold);
  }
}
.legal-toc-title{
  font-family:var(--font-h);
  font-size:11px;
  font-weight:800;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:18px;
}
.legal-toc ol{
  list-style:none;
  counter-reset:toc;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.legal-toc li{
  counter-increment:toc;
  display:grid;
  grid-template-columns:28px 1fr;
  gap:10px;
  font-size:13px;
  line-height:1.45;
}
.legal-toc li::before{
  content:counter(toc,decimal-leading-zero);
  font-family:var(--font-h);
  font-weight:800;
  color:var(--gold);
  font-size:11px;
  letter-spacing:.05em;
  padding-top:2px;
}
.legal-toc a{
  color:var(--text);
  text-decoration:none;
  transition:color .2s;
  font-weight:500;
}
.legal-toc a:hover{color:var(--blue)}

.legal-body{
  background:#fff;
  padding:56px 56px;
  border:1px solid var(--line);
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}
@media(max-width:640px){.legal-body{padding:36px 28px}}
.legal-body a{overflow-wrap:anywhere}
@media(max-width:640px){
  .legal-body table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
.legal-body > section{
  padding:28px 0;
  border-bottom:1px solid var(--line);
  scroll-margin-top:100px;
}
.legal-body > section:first-child{padding-top:0}
.legal-body > section:last-child{border-bottom:none;padding-bottom:0}
.legal-body h2{
  font-family:var(--font-h);
  font-size:26px;
  font-weight:900;
  line-height:1.2;
  letter-spacing:-.01em;
  color:var(--dark);
  margin-bottom:18px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:baseline;
  gap:14px;
}
.legal-body h2::before{
  content:attr(data-n);
  font-family:var(--font-h);
  font-size:14px;
  font-weight:800;
  color:var(--gold);
  letter-spacing:.05em;
  min-width:28px;
}
.legal-body h3{
  font-family:var(--font-h);
  font-size:18px;
  font-weight:800;
  color:var(--dark);
  margin:28px 0 14px;
}
.legal-body p{
  font-size:16px;
  line-height:1.8;
  color:#2a3347;
  margin-bottom:16px;
}
.legal-body p:last-child{margin-bottom:0}
.legal-body ul,.legal-body ol{
  margin:12px 0 20px 0;
  padding-left:24px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.legal-body li{
  font-size:15.5px;
  line-height:1.75;
  color:#2a3347;
  padding-left:4px;
}
.legal-body li::marker{color:var(--gold)}
.legal-body strong{color:var(--dark);font-weight:700}
.legal-body em{font-style:italic;color:var(--blue)}
.legal-body a{
  color:var(--blue);
  text-decoration:underline;
  text-underline-offset:3px;
}
.legal-body a:hover{color:var(--dark)}

.legal-body .callout{
  background:var(--paper);
  border-left:3px solid var(--gold);
  padding:20px 24px;
  margin:24px 0;
  font-size:15px;
  line-height:1.7;
  color:#2a3347;
}
.legal-body .callout strong{color:var(--dark)}

.legal-body table{
  width:100%;
  border-collapse:collapse;
  margin:24px 0;
  font-size:14px;
  background:#fff;
  border:1px solid var(--line);
}
.legal-body th{
  background:var(--paper);
  font-family:var(--font-h);
  font-weight:800;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--dark);
  text-align:left;
  padding:14px 18px;
  border-bottom:1px solid var(--line-strong);
}
.legal-body td{
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
  color:#2a3347;
  line-height:1.6;
}
.legal-body tr:last-child td{border-bottom:none}

.legal-body .contact-block{
  background:var(--dark);
  color:#fff;
  padding:32px;
  margin-top:32px;
  position:relative;
  overflow:hidden;
}
.legal-body .contact-block::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:3px;
  background:var(--gold);
}
.legal-body .contact-block h3{color:#fff;margin-top:0}
.legal-body .contact-block p{color:rgba(255,255,255,.7)}
.legal-body .contact-block a{color:var(--gold-bright);overflow-wrap:anywhere}
.legal-body .contact-block a:hover{color:#fff}

/* ═══ FOOTER ═══ */
.footer{
  background:#06090F;
  color:rgba(255,255,255,.5);
  padding:80px 48px 36px;
  border-top:1px solid rgba(255,255,255,.05);
}
.footer-inner{max-width:1280px;margin:0 auto}
.footer-top{
  display:grid;
  grid-template-columns:1fr;
  gap:56px;
  padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
@media(min-width:820px){.footer-top{grid-template-columns:1.2fr 2fr;gap:80px}}
.footer-logo{
  height:48px;
  width:auto;
  margin-bottom:22px;
  filter:brightness(0) invert(1);
  opacity:.9;
}
.footer-tagline{
  font-size:14px;
  line-height:1.7;
  color:rgba(255,255,255,.5);
  max-width:380px;
  margin-bottom:26px;
}
.footer-social{display:flex;gap:10px}
.footer-social a{
  width:40px;height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.6);
  transition:background .2s,color .2s,border-color .2s,transform .2s;
  text-decoration:none;
}
.footer-social a:hover{
  background:var(--gold);
  color:#000;
  border-color:var(--gold);
  transform:translateY(-2px);
}
.footer-social svg{width:16px;height:16px}
.footer-cols{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
}
@media(max-width:560px){.footer-cols{grid-template-columns:1fr 1fr;gap:28px}}
.footer-col{display:flex;flex-direction:column;gap:12px}
.footer-col-title{
  font-family:var(--font-h);
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#fff;
  margin-bottom:8px;
}
.footer-link{
  font-size:14px;
  color:rgba(255,255,255,.5);
  transition:color .2s,padding-left .2s;
  text-decoration:none;
}
.footer-link:hover{color:var(--gold-bright);padding-left:4px}
.footer-bottom{
  padding-top:32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
}
.footer-copy{
  font-size:12px;
  color:rgba(255,255,255,.35);
  letter-spacing:.02em;
}
.footer-bottom-right{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
}
.footer-link-sm{
  font-size:11px;
  font-weight:500;
  letter-spacing:.08em;
  color:rgba(255,255,255,.35);
  transition:color .2s;
  cursor:pointer;
  text-transform:uppercase;
  text-decoration:none;
}
.footer-link-sm:hover{color:var(--gold-bright)}

/* ═══ RESPONSIVE ═══ */
@media(max-width:768px){
  .nav{padding:14px 24px}
  .legal-header{padding:140px 24px 70px}
  .legal-content{padding:60px 24px 90px}
  .footer{padding:60px 24px 30px}
  .legal-meta{gap:20px}
}

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

/* Back link sits on its own line above the eyebrow */
.back-link{display:flex;width:fit-content}
