/* Shared across index.html, privacy.html, terms.html: fonts, design tokens,
   nav, footer, and legal-page layout. Page-specific sections stay inline in
   index.html. Fonts are self-hosted (see assets/fonts) so the site makes no
   requests to third-party font servers. */

@font-face {
  font-family: 'Pangolin';
  src: url('../fonts/Pangolin_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Playpen Sans';
  src: url('../fonts/PlaypenSans_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

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

:root {
  /* Littles palette, from the footprints logo */
  --rose: #A8505E;          /* buttons and links (5.3:1 on white) */
  --rose-dark: #8E4150;
  --pink: #E9CAC8;
  --pink-light: #FBE9EC;
  --pink-shadow: #F2C4CD;
  --pink-shadow-dark: #DD9AA7;
  --blue: #AEC8CA;
  --blue-light: #E9F3F7;
  --blue-shadow: #BEDCE8;
  --blue-shadow-dark: #86B4C6;
  --blue-text: #3F7488;
  --gold: #B8860B;
  --cream: #EFE4DD;
  /* Red is kept for emergencies only */
  --emergency: #D32F2F;
  --emergency-light: #FFEBEE;
  --black: #1F1A1C;
  --body: #3A3436;
  --muted: #6B6366;
  --border: #EBE3E5;
  --white: #FFFFFF;
  --off-white: #FAF7F8;
  --font-display: 'Pangolin', 'Comic Sans MS', system-ui, sans-serif;
  --font-brand: 'Playpen Sans', 'Pangolin', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* "LITTLES" wordmark: each letter its own soft color */
.littles-word { font-family: var(--font-brand); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.littles-word span:nth-child(1) { color: #8E8E9E; }
.littles-word span:nth-child(2) { color: #F0A59B; }
.littles-word span:nth-child(3) { color: #9DC3C1; }
.littles-word span:nth-child(4) { color: #F2C25B; }
.littles-word span:nth-child(5) { color: #EAAE8F; }
.littles-word span:nth-child(6) { color: #D49CAF; }
.littles-word span:nth-child(7) { color: #9DADC0; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-icon { width: 38px; height: 38px; border-radius: 10px; display: block; }
.nav-wordmark { font-size: 26px; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--black); }
.nav-cta {
  background: var(--rose); color: white !important;
  padding: 9px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background .15s;
}
.nav-cta:hover { background: var(--rose-dark) !important; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
  background: var(--off-white);
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.fl-icon { width: 30px; height: 30px; border-radius: 8px; display: block; }
.fl-name { font-size: 20px; line-height: 1; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--black); }
.footer-links a.current { color: var(--black); font-weight: 600; }
.footer-copy { font-size: 12px; color: #8b8386; width: 100%; }

/* LEGAL PAGE LAYOUT (privacy.html, terms.html) */
.legal-header {
  padding: 110px 48px 52px;
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--blue-light) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.legal-header-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 54px);
  color: var(--rose);
  margin-bottom: 8px;
}
.legal-header-date { font-size: 14px; color: var(--muted); }
.legal-content { max-width: 740px; margin: 0 auto; padding: 64px 48px; background: white; }
.legal-h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--black);
  margin-top: 48px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pink-shadow);
}
.legal-h2:first-child { margin-top: 0; }
.legal-h3 { font-size: 17px; font-weight: 600; color: var(--black); margin-top: 28px; margin-bottom: 8px; }
.legal-body { font-size: 16px; line-height: 1.8; color: var(--body); margin-bottom: 16px; }
.legal-body a, .legal-list a { color: var(--rose); }
.legal-highlight {
  background: var(--blue-light);
  border-left: 4px solid var(--blue-shadow-dark);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--body);
  margin: 24px 0;
  line-height: 1.65;
}
.legal-highlight strong { color: var(--black); }
.legal-emergency {
  background: var(--emergency-light);
  border-left: 4px solid var(--emergency);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--body);
  margin: 24px 0;
  line-height: 1.65;
}
.legal-list { margin: 0 0 16px 20px; padding: 0; }
.legal-list li { font-size: 16px; line-height: 1.8; color: var(--body); margin-bottom: 6px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal-table th { background: var(--pink-light); color: var(--black); font-weight: 600; }

/* RESPONSIVE: nav/footer */
@media (max-width: 960px) {
  nav { padding: 0 20px; }
  footer { padding: 28px 24px; }
}
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 768px) {
  .legal-header { padding: 96px 24px 40px; }
  .legal-content { padding: 48px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
