/* Shared legal-page styles for Ellis Retention Partners */
:root {
  --bg: #111111;
  --text: #f0ede8;
  --muted: #888880;
  --rule: rgba(255,255,255,0.08);
  --rule-strong: rgba(255,255,255,0.14);
  --label: rgba(255,255,255,0.35);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1100px;
  --legal-max: 760px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--text); color: var(--bg); }

/* NAV */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.nav-logo { justify-self: start; }
.wordmark { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.wordmark-ellis {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #ffffff;
}
.wordmark-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.wordmark-footer { opacity: 0.4; }
.nav-links {
  justify-self: center;
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.01em;
  transition: color 240ms ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { justify-self: end; }

/* CTA */
.cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 0;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  line-height: 1;
}
.cta:hover {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
}

/* LEGAL PAGE LAYOUT */
.legal-page {
  padding: 200px 60px 140px;
  min-height: 80vh;
}
.legal-inner {
  max-width: var(--legal-max);
  margin: 0 auto;
}
.legal-label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
  display: inline-block;
  margin-bottom: 36px;
}
.legal-page h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
}
.legal-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.legal-intro p + p { margin-top: 14px; }

/* TOC */
.toc {
  list-style: none;
  padding: 0;
  margin: 0 0 80px 0;
  counter-reset: toc;
  border-top: 1px solid var(--rule);
}
.toc li {
  counter-increment: toc;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 14px 0;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  min-width: 32px;
}
.toc a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  transition: color 200ms ease;
}
.toc a:hover { color: var(--text); }

/* SECTIONS */
.legal-section {
  padding-top: 56px;
  margin-top: 56px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 100px;
}
.legal-section:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.legal-section .legal-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
  display: block;
}
.legal-section h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  line-height: 1.4;
}
.legal-section h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.02em;
  margin: 28px 0 12px;
  line-height: 1.4;
}
.legal-section p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 300;
}
.legal-section p + p { margin-top: 14px; }
.legal-section p + h3 { margin-top: 32px; }
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.legal-section ul li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  position: relative;
  padding-left: 20px;
}
.legal-section ul li:last-child { border-bottom: 1px solid var(--rule); }
.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 1px;
  background: rgba(255,255,255,0.25);
}
.legal-section strong {
  color: var(--text);
  font-weight: 500;
}
.legal-section em { color: var(--muted); font-style: italic; }

/* table-ish purpose blocks */
.purpose-block {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
}
.purpose-block:last-of-type { border-bottom: 1px solid var(--rule); }
.purpose-block .ph {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}
.purpose-block .pmeta {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}
.purpose-block .pmeta + .pmeta { margin-top: 6px; }
.purpose-block .pmeta .k {
  display: inline-block;
  width: 90px;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  vertical-align: top;
}
.purpose-block .pmeta .v { display: inline-block; max-width: calc(100% - 100px); }

.legal-foot {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* FOOTER */
footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 36px 60px 32px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.footer-logo { display: block; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom .meta {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 200ms ease;
}
.footer-legal a:hover {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .nav-inner { padding: 16px 24px; grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .legal-page { padding: 140px 24px 100px; }
  footer.site-footer { padding-left: 24px; padding-right: 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 600px) {
  .legal-page h1 { font-size: 32px; }
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 60px;
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
#cookie-banner p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 0;
  max-width: 80ch;
}
#cookie-banner p a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color 200ms ease, border-color 200ms ease;
}
#cookie-banner p a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.6);
}
#cookie-accept {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 0;
  padding: 12px 22px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
  white-space: nowrap;
}
#cookie-accept:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}
@media (max-width: 700px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
  }
  #cookie-accept { width: 100%; }
}
