/* ===================================================
   Ndolo Legal Website — styles.css
   Palette: Terracotta #C1440E | Gold #D4A843 | Off-white #FDF8F3
   =================================================== */

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

:root {
  --terracotta: #C1440E;
  --terracotta-light: #E05A25;
  --gold: #D4A843;
  --gold-light: #E8C060;
  --charcoal: #1E1A17;
  --dark-brown: #2D2320;
  --off-white: #FDF8F3;
  --light-bg: #FBF4EC;
  --border: rgba(193,68,14,0.12);
  --text-muted: #6B5C52;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--charcoal); background: var(--off-white); line-height: 1.65; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,248,243,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo {
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800;
  color: var(--charcoal); text-decoration: none; letter-spacing: -0.5px;
}
.logo-n { color: var(--terracotta); }

nav { display: flex; gap: 28px; }
nav a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color .2s; }
nav a:hover { color: var(--terracotta); }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1E1A17 0%, #3B1F12 50%, #2D2320 100%);
  color: #fff; padding: 100px 0 120px;
  text-align: center;
}
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(193,68,14,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(212,168,67,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; background: rgba(193,68,14,0.2); border: 1px solid rgba(193,68,14,0.35);
  color: #E8C060; font-size: 0.8rem; font-weight: 600; letter-spacing: .5px;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 28px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 20px; color: #fff;
}
.gradient-text {
  background: linear-gradient(90deg, var(--terracotta-light), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 40px; }
.hero-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-outline {
  display: inline-block; padding: 12px 28px; border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 100px; color: #fff; font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: all .2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* ── CARDS SECTION ── */
.cards-section { padding: 80px 0; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 36px 30px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 12px 40px rgba(193,68,14,0.1); transform: translateY(-3px); }
.card-icon { font-size: 2rem; margin-bottom: 18px; }
.card h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 12px; color: var(--charcoal); }
.card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; }
.card-link { font-size: 0.9rem; font-weight: 600; color: var(--terracotta); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ── FOOTER ── */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.6); padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-logo { color: #fff; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ───────────────────────────────
   LEGAL DOCUMENT LAYOUT
   (shared by privacy.html & terms.html)
────────────────────────────────── */
.legal-hero {
  background: linear-gradient(160deg, #1E1A17, #3B1F12);
  color: #fff; padding: 70px 0 80px; text-align: left;
}
.legal-hero-inner { max-width: 760px; }
.legal-badge {
  display: inline-block; background: rgba(193,68,14,0.25); border: 1px solid rgba(193,68,14,0.4);
  color: var(--gold-light); font-size: 0.75rem; font-weight: 700; letter-spacing: .8px;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; text-transform: uppercase;
}
.legal-hero h1 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.legal-hero p { font-size: 0.95rem; color: rgba(255,255,255,0.6); }

.legal-body { display: grid; grid-template-columns: 220px 1fr; gap: 60px; padding: 72px 0 100px; align-items: start; }

/* TOC sidebar */
.legal-toc { position: sticky; top: 88px; }
.legal-toc h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.legal-toc ol { list-style: none; counter-reset: toc-counter; }
.legal-toc ol li { counter-increment: toc-counter; margin-bottom: 10px; }
.legal-toc ol li::before { content: counter(toc-counter) ". "; color: var(--terracotta); font-weight: 600; font-size: 0.8rem; }
.legal-toc a { font-size: 0.82rem; color: var(--text-muted); text-decoration: none; line-height: 1.4; transition: color .2s; }
.legal-toc a:hover { color: var(--terracotta); }

/* Article content */
.legal-content { max-width: 720px; }
.legal-content section { margin-bottom: 52px; }
.legal-content h2 {
  font-family: var(--font-heading); font-size: 1.45rem;
  color: var(--charcoal); margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.legal-content h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; color: var(--charcoal); }
.legal-content p { font-size: 0.95rem; color: #3D3028; margin-bottom: 14px; }
.legal-content ul, .legal-content ol { margin: 10px 0 16px 20px; }
.legal-content ul li, .legal-content ol li { font-size: 0.95rem; color: #3D3028; margin-bottom: 8px; line-height: 1.6; }
.legal-content a { color: var(--terracotta); }
.legal-content a:hover { text-decoration: none; }

.info-box {
  background: linear-gradient(135deg, rgba(193,68,14,0.07), rgba(212,168,67,0.07));
  border: 1px solid rgba(193,68,14,0.15); border-radius: 12px;
  padding: 20px 24px; margin: 20px 0;
}
.info-box p { margin: 0; font-size: 0.9rem; color: var(--charcoal); }
.info-box strong { color: var(--terracotta); }

/* Responsive */
@media (max-width: 768px) {
  .legal-body { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; background: var(--light-bg); border-radius: 12px; padding: 20px 24px; }
  .hero { padding: 70px 0 80px; }
}
@media (max-width: 480px) {
  nav { gap: 16px; }
  nav a { font-size: 0.8rem; }
}
