/* =============================================
   FOOTIFLOW · LEGAL.CSS
   Shared: Privacy Policy + Terms of Service
   Palette: #000 · #fff · #D2773B (copper)
   Fonts:   Quicksand (display) · Inter (body)
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:         #000000;
  --off-black:     #0D0D0D;
  --card-bg:       #111111;
  --copper:        #D2773B;
  --copper-dim:    rgba(210,119,59,0.10);
  --copper-border: rgba(210,119,59,0.28);
  --copper-hover:  #e08840;
  --white:         #FFFFFF;
  --text-body:     #E8E6E3;
  --text-sub:      rgba(255,255,255,0.62);
  --text-muted:    rgba(255,255,255,0.40);
  --border:        rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 80px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ── NAVBAR ── */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000; box-sizing: border-box;
  transition: background 0.4s, border-color 0.4s;
}
.navbar.scrolled { background: rgba(0,0,0,0.96); border-color: var(--border); }

.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 800; font-size: 1.35rem;
  color: var(--white); text-decoration: none;
}
.logo-img { width: 36px; height: auto; transition: transform 0.3s; }
.logo-img:hover { transform: rotate(-8deg) scale(1.1); }

.navbar-content { display: flex; align-items: center; flex: 1; justify-content: center; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.875rem;
  color: var(--text-sub); text-decoration: none;
  letter-spacing: 0.02em; transition: color 0.25s;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--copper); transition: width 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.navbar-right { display: flex; align-items: center; flex-shrink: 0; }

.quote-btn {
  background: var(--copper); color: var(--white);
  padding: 0.55rem 1.3rem; border-radius: 4px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.85rem;
  text-decoration: none; white-space: nowrap;
  transition: background 0.25s, transform 0.2s;
}
.quote-btn:hover { background: var(--copper-hover); transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: 0.3s; }

/* ── LEGAL HERO ── */
.legal-hero {
  padding: 6rem 2.5rem 4rem;
  border-bottom: 1px solid var(--border);
  background: var(--off-black);
  position: relative; overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute; top: 0; left: 2.5rem;
  width: 1px; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--copper), transparent);
  opacity: 0.5;
}
.lh-inner { max-width: 860px; margin: 0 auto; }

.legal-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 1rem;
}
.legal-eyebrow::before {
  content: ''; display: block; width: 20px; height: 1px; background: var(--copper);
}

.legal-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -0.025em; margin-bottom: 1rem;
}
.legal-hero h1 em { font-style: normal; color: var(--copper); }

.legal-hero p {
  font-size: 1rem; color: var(--text-sub);
  max-width: 580px; line-height: 1.8;
}

.legal-meta {
  display: flex; align-items: center; gap: 2.5rem;
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.lm-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: var(--text-muted);
}
.lm-item svg { color: var(--copper); flex-shrink: 0; }
.lm-item strong { color: var(--text-sub); font-weight: 500; margin-left: 0.1rem; }

/* ── LAYOUT: Sidebar + Content ── */
.legal-layout {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 5rem;
  padding: 5rem 2rem;
  align-items: flex-start;
}

/* ── TABLE OF CONTENTS ── */
.legal-toc { position: sticky; top: 100px; }
.toc-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.2rem; display: block;
}
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 0; }
.toc-list a {
  display: block; font-size: 0.8rem; color: var(--text-muted);
  text-decoration: none; padding: 0.42rem 0 0.42rem 1rem;
  border-left: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
  line-height: 1.45;
}
.toc-list a:hover { color: var(--copper); border-color: var(--copper); }
.toc-list a.toc-active { color: var(--copper); border-color: var(--copper); font-weight: 600; }

/* ── LEGAL CONTENT ── */
.legal-section {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.ls-num {
  font-family: 'Inter', sans-serif; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 0.5rem; display: block;
}

.legal-section h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 800; color: var(--white);
  margin-bottom: 1.3rem; letter-spacing: -0.01em;
  scroll-margin-top: 110px;
}
.legal-section h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--white); margin: 2rem 0 0.7rem;
}
.legal-section h4 {
  font-size: 0.88rem; font-weight: 700;
  color: var(--text-sub); margin: 1.4rem 0 0.4rem; letter-spacing: 0.02em;
}

.legal-section p {
  font-size: 0.9rem; color: var(--text-sub);
  line-height: 1.9; margin-bottom: 1rem;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul, .legal-section ol {
  padding-left: 0; margin: 0.8rem 0 1.2rem; list-style: none;
}
.legal-section ul li, .legal-section ol li {
  font-size: 0.9rem; color: var(--text-sub);
  line-height: 1.72; padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.035);
}
.legal-section ul li:last-child, .legal-section ol li:last-child { border-bottom: none; }

.legal-section ul li::before {
  content: '';
  position: absolute; left: 0; top: 0.9rem;
  width: 5px; height: 5px;
  border-radius: 50%; background: var(--copper);
}

.legal-section ol { counter-reset: legal-counter; }
.legal-section ol li { counter-increment: legal-counter; }
.legal-section ol li::before {
  content: counter(legal-counter) ".";
  position: absolute; left: 0;
  font-size: 0.75rem; font-weight: 700;
  color: var(--copper); top: 0.42rem;
}

.legal-section strong { color: var(--white); font-weight: 600; }
.legal-section a { color: var(--copper); text-decoration: none; transition: color 0.2s; }
.legal-section a:hover { color: var(--copper-hover); text-decoration: underline; }

/* Highlight callout */
.legal-highlight {
  background: var(--copper-dim);
  border: 1px solid var(--copper-border);
  border-left: 3px solid var(--copper);
  border-radius: 0 6px 6px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.6rem 0;
}
.legal-highlight p {
  font-size: 0.875rem !important;
  color: rgba(255,255,255,0.72) !important;
  margin-bottom: 0 !important;
}
.legal-highlight strong { color: var(--copper) !important; }

/* Info box */
.legal-info-box {
  background: rgba(255,255,255,0.028);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.legal-info-box h4 { color: var(--white) !important; margin-top: 0 !important; margin-bottom: 0.7rem; font-size: 0.9rem !important; }
.legal-info-box p { font-size: 0.85rem !important; margin-bottom: 0.5rem !important; }
.legal-info-box p:last-child { margin-bottom: 0 !important; }

/* Data table */
.legal-table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 8px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.legal-table th {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border); text-align: left;
  background: rgba(255,255,255,0.02);
}
.legal-table th:first-child { border-radius: 8px 0 0 0; }
.legal-table th:last-child  { border-radius: 0 8px 0 0; }
.legal-table td {
  padding: 0.85rem 1.1rem; color: var(--text-sub);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top; line-height: 1.65;
}
.legal-table td:first-child { color: var(--white); font-weight: 500; white-space: nowrap; }
.legal-table tbody tr:last-child td { border-bottom: none; }

/* ── FOOTER ── */
footer {
  background: var(--black); color: var(--white);
  padding: 4rem 2.5rem 2rem;
  border-top: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
}
.footer-container {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  max-width: 1200px; margin: 0 auto 3rem; gap: 3rem;
}
.footer-left, .footer-center, .footer-right { flex: 1; min-width: 200px; }
.footer-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 800; font-size: 1.2rem;
  color: var(--white); margin-bottom: 1rem;
}
.footer-logo-img { width: 28px; height: auto; opacity: 0.9; }
.footer-left p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 0.8rem; }
.footer-left p a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-left p a:hover { color: var(--copper); }
.footer-center h4, .footer-right h4 {
  font-family: 'Quicksand', sans-serif; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.2rem;
}
.footer-center ul, .footer-right ul { list-style: none; padding: 0; }
.footer-center ul li, .footer-right ul li { margin-bottom: 0.6rem; }
.footer-center ul li a, .footer-right ul li a {
  font-size: 0.875rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-center ul li a:hover, .footer-right ul li a:hover { color: var(--copper); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 2rem; border-top: 1px solid var(--border); text-align: center;
}
.footer-legal {
  list-style: none; display: flex; justify-content: center;
  gap: 1.5rem; padding: 0; margin-bottom: 0.8rem;
}
.footer-legal a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ── SCROLL REVEAL ── */
[data-reveal] { opacity: 1; transform: translateY(0); transition: opacity 0.65s ease, transform 0.65s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* Legal section reveals */
.legal-section { opacity: 1; transform: translateY(0); transition: opacity 0.65s ease, transform 0.65s ease; }
.legal-section.revealed { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .legal-toc { position: static; display: none; }
}
@media (max-width: 768px) {
  body { padding-top: 70px; }
  .navbar { padding: 1rem 1.5rem; }
  .navbar-content { display: none; }
  .navbar-content.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(0,0,0,0.97); border-top: 1px solid var(--border);
    padding: 1.5rem; flex-direction: column;
  }
  .nav-links { flex-direction: column; gap: 1rem; }
  .nav-toggle { display: flex; }
  .legal-hero { padding: 5rem 1.5rem 3rem; }
  .legal-layout { padding: 3rem 1.5rem; }
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-container { flex-direction: column; gap: 2rem; }
}
@media (max-width: 480px) {
  .legal-hero h1 { font-size: 2rem; }
  .legal-section h2 { font-size: 1.25rem; }
}