/* shared-legal.css — Purple Giraffe Studio legal pages */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --green:        #00A651;
  --green-dark:   #007A3D;
  --green-light:  #E8F7EF;
  --green-mid:    #C5EDD8;
  --orange:       #FF6B35;
  --orange-light: #FFF0EB;
  --ink:          #1A2E1A;
  --text:         #2D3748;
  --mid:          #718096;
  --light:        #A0AEC0;
  --border:       #E2E8F0;
  --bg:           #F7FAFC;
  --white:        #FFFFFF;
  --shadow:       0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.08);
  --r:            8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.7;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow); height: 60px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 16px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.nav-logo span { color: var(--green); }
.nav-back { font-size: 13px; color: var(--mid); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.nav-back:hover { color: var(--green); }

/* ── PAGE HERO ── */
.legal-hero {
  background: linear-gradient(135deg, #F0FFF6 0%, #F7FAFC 60%, #FFF0EB 100%);
  padding: 96px 0 48px; border-bottom: 1px solid var(--border);
}
.legal-hero-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.legal-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green);
  background: var(--green-light); padding: 4px 12px; border-radius: 20px;
  margin-bottom: 16px;
}
.legal-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 12px;
}
.legal-meta {
  font-size: 13px; color: var(--light); display: flex; gap: 20px; flex-wrap: wrap;
}
.legal-meta span { display: flex; align-items: center; gap: 5px; }

/* ── CONTENT LAYOUT ── */
.legal-layout {
  max-width: 1100px; margin: 0 auto; padding: 48px 24px 80px;
  display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start;
}

/* ── TOC SIDEBAR ── */
.toc {
  position: sticky; top: 80px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; box-shadow: var(--shadow);
}
.toc-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); margin-bottom: 12px; }
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 2px; }
.toc-list a {
  font-size: 13px; color: var(--mid); text-decoration: none;
  padding: 5px 8px; border-radius: 4px; display: block;
  transition: all 0.15s; border-left: 2px solid transparent;
}
.toc-list a:hover { color: var(--green); background: var(--green-light); border-left-color: var(--green); }

/* ── DOCUMENT BODY ── */
.legal-doc {}

.legal-section { margin-bottom: 40px; scroll-margin-top: 80px; }

.legal-section h2 {
  font-size: 20px; font-weight: 700; color: var(--ink);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--green-light);
  display: flex; align-items: center; gap: 10px;
}
.section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: var(--green); color: var(--white);
  border-radius: 50%; font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.legal-section h3 {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin: 18px 0 8px;
}

.legal-section p { font-size: 14px; color: var(--mid); line-height: 1.75; margin-bottom: 12px; }
.legal-section p strong { color: var(--text); font-weight: 600; }

.legal-section ul, .legal-section ol {
  margin: 10px 0 14px 20px;
}
.legal-section li {
  font-size: 14px; color: var(--mid); line-height: 1.7; margin-bottom: 5px;
}

.highlight-box {
  background: var(--green-light); border: 1px solid var(--green-mid);
  border-left: 4px solid var(--green); border-radius: var(--r);
  padding: 16px 18px; margin: 16px 0;
}
.highlight-box p { color: var(--text); margin: 0; }
.highlight-box strong { color: var(--green-dark); }

.warning-box {
  background: var(--orange-light); border: 1px solid #FFD4C2;
  border-left: 4px solid var(--orange); border-radius: var(--r);
  padding: 16px 18px; margin: 16px 0;
}
.warning-box p { color: var(--text); margin: 0; }

.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; margin-top: 16px; box-shadow: var(--shadow);
}
.contact-card p { margin-bottom: 6px; }
.contact-card a { color: var(--green); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.legal-footer {
  background: var(--ink); padding: 32px 0;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-brand { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-brand strong { color: var(--green); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
