:root {
  --ink: #111111;
  --black: #080808;
  --dark-bg: #0B0B0B;
  --light-bg: #F7F7F3;
  --paper: #fff;
  --orange: #ff5200;
  --muted: #6d6d6d;
  --line: #e2e2de;
  --radius: 26px;
  --page: min(92vw, 1200px);
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-duration: 920ms;
}

/* Reset and Typography */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  zoom: 80%;
  scrollbar-color: #ff5200 transparent;
  scrollbar-width: thin;
  background-color: var(--light-bg);
}
::-webkit-scrollbar { width: 10px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ff5200; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background-color: #df4700; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--light-bg);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }

/* Navbar reuse styling from index.html */
.site-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 10000; height: 150px; }
.navbar-wrapper { position: fixed; top: 24px; left: 0; right: 0; z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.navbar {
  pointer-events: auto;
  display: flex;
  width: 840px;
  max-width: 90vw;
  height: 90px;
  padding: 10px 14px 10px 29px;
  justify-content: space-between;
  align-items: center;
  border-radius: 749px;
  border: none;
  background: rgba(8,8,8,.45);
  -webkit-backdrop-filter: blur(25px) saturate(220%);
  backdrop-filter: blur(25px) saturate(220%);
  box-shadow: 0 6px 24px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.08) inset;
  transition: transform .3s cubic-bezier(.4,0,.2,1), background .3s ease, box-shadow .3s ease;
  font-family: "Inter Nav", Inter, -apple-system, Roboto, Helvetica, sans-serif;
  transform-origin: center top;
}
.navbar.scrolled {
  transform: scale(0.85);
  background: rgba(8,8,8,.65);
  box-shadow: 0 8px 30px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.1) inset;
}
.nav-container { display: flex; align-items: center; gap: 38px; }
.brand-mark { display: flex; width: 43px; height: 43px; flex: 0 0 43px; justify-content: center; align-items: center; transition: transform .2s; }
.brand-mark:hover { transform: rotate(5deg); }
.brand-mark img { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 29px; }
.nav-link { color: rgba(250,249,245,.8); font-size: 1.02rem; font-weight: 600; letter-spacing: .72px; position: relative; padding: 7px 0; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: #ea580c; transform: scaleX(0); transform-origin: left; transition: transform .25s ease-out; }
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active-page { color: #fff; }
.nav-link.active-page::after { transform: scaleX(1); background-color: var(--orange); }

.nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  padding: 17px 29px;
  border-radius: 749px;
  background: rgba(255,255,255,.96);
  min-height: 55px;
  font-family: inherit;
  font-size: 15.6px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #111;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  transition: background-color .2s, transform .15s, box-shadow .2s;
}
.nav-button:hover { background-color: #f94a04; color: #fff; border-color: #f94a04; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,74,4,.3); }
.nav-button:active { background-color: #f94a04; color: #fff; border-color: #f94a04; transform: scale(.98); box-shadow: 0 2px 10px rgba(249,74,4,.2); transition: transform 80ms cubic-bezier(.25,.46,.45,.94); }
.navbar.scrolled .nav-button { padding: 12px 24px; font-size: 1.02rem; border-radius: 749px; min-height: 48px; }
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 29px; height: 22px; padding: 0; background: transparent; border: none; cursor: pointer; }
.menu-toggle span { width: 100%; height: 2px; background-color: rgba(250,249,245,.8); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* Hamburger Navigation menu mobile state */
@media (max-width: 743px) {
  .menu-toggle { display: flex; order: 2; }
  .footer-brand { position: relative; left: 0 !important; padding-left: clamp(24px, 4vw, 48px) !important; }
  .nav-button { order: 3; padding: 13px 22px !important; min-height: 48px !important; font-size: 15px !important; margin-right: clamp(10px, 3vw, 20px) !important; }
  .nav-links {
    order: 4;
    display: none;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    background: rgba(8,8,8,.95);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    padding: 20px;
    border-radius: 15px;
    width: 200px;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
  }
  .nav-links .nav-link { color: rgba(250,249,245,.88); }
  .nav-links.active { display: flex; }
  .nav-container { gap: clamp(6px, 2vw, 12px); }
  .navbar { height: 75px; }
}

/* Legal Page Hero Section */
.legal-hero {
  position: relative;
  background: #141414;
  padding: 192px 0 160px;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.hero-content {
  position: relative;
  z-index: 10;
  width: var(--page);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(80px, 10vw, 160px);
  z-index: 5;
  pointer-events: none;
}
.legal-hero h1 {
  font-family: "Manrope", sans-serif;
  margin: 0 0 24px;
  font-size: clamp(48px, 6vw, 96px);
  line-height: .92;
  letter-spacing: -.05em;
  text-transform: uppercase;
  font-weight: 800;
  font-style: normal !important;
  color: #fff;
}
.legal-hero h1 em {
  color: #fff !important;
  font-family: "Manrope", sans-serif !important;
  font-style: normal !important;
  font-weight: 800 !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
}
.hero-subtitle {
  max-width: 680px;
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.4;
  color: #fff;
  margin: 0;
  min-height: 2.8em; /* Prevent layout shifts during typewriter anim */
}

/* Summary Card Layout */
.summary-card-container {
  position: relative;
  width: var(--page);
  margin: -60px auto 60px; /* Overlap divider curve */
  z-index: 20;
}
.summary-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(30px, 4vw, 54px);
  color: #f7f7f3;
  box-shadow: 0 24px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05);
}
.summary-badge {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--orange);
  margin-bottom: 12px;
}
.summary-card p {
  margin: 0;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -.02em;
}
.summary-card p em {
  color: var(--orange);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-style: italic;
}

/* Content Layout Grid */
.legal-content-section {
  position: relative;
  padding: 40px 0 120px;
  z-index: 10;
}
.legal-content-container {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 110px);
}

/* Numbered content block display */
.legal-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
}

.section-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--line);
  margin-bottom: 24px;
}

.legal-number {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal-body h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -.03em;
}
.legal-body p {
  margin: 0;
  color: #333333;
  font-size: 17px;
  line-height: 1.55;
}
.legal-body ul, .legal-body ol {
  margin: 8px 0;
  padding-left: 20px;
  color: #333333;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-body li::marker {
  color: var(--orange);
}

/* Side Note callout styling */
.side-note-card {
  background: #111111;
  border: 1px solid rgba(255, 82, 0, 0.15);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
}
.side-note-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--orange);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-note-header::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}



/* Animations and IntersectionObserver reveals */
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
  will-change: transform, opacity;
}
.motion-ready [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Typewriter animation utilities */
.typewriter-text {
  position: relative;
  display: inline;
}
.typewriter-cursor::after {
  content: "|";
  position: absolute;
  right: -6px;
  color: var(--orange);
  animation: blink 0.75s step-end infinite;
}
@keyframes blink {
  from, to { color: transparent }
  50% { color: var(--orange); }
}

/* prefers-reduced-motion: reduce overrides */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .motion-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .typewriter-cursor::after {
    display: none !important;
  }
  .navbar {
    transition: none !important;
  }
}

/* Responsive Scaling Rules for Rows */
@media (max-width: 1024px) {
  .legal-row {
    grid-template-columns: 60px 1fr;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  .legal-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .legal-number {
    margin-bottom: -8px;
  }
}
