/* ─── RESET & ROOT VARIABLES ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  color: #cbd5e1;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
  position: relative;
  font-size: 0.75rem; /* Small compact legal font size */
  line-height: 1.5;
}

/* ─── TOP HEADER ─── */
.top-header {
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: linear-gradient(180deg, #8b4513 0%, #d2691e 80%, #0f172a 100%);
  z-index: 100;
  height: 58px;
}

.back-btn { font-size: 1.1rem; color: #fff; padding: 4px; display: flex; align-items: center; }
.page-title { font-size: 0.95rem; font-weight: 700; color: #fff; }
.logo-pill {
  font-size: 0.82rem; font-weight: 900;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 4px 10px; border-radius: 50px; color: #fff;
}
.logo-pill .accent { color: #FFD166; }

/* ─── QUICK NAV BAR ─── */
.quick-jump-bar {
  position: sticky;
  top: 58px;
  z-index: 90;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-jump-bar::-webkit-scrollbar { display: none; }
.jump-chip {
  white-space: nowrap;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  background: #334155;
  color: #94a3b8;
  transition: all 0.2s;
}
.jump-chip:hover, .jump-chip.active {
  background: #ee5100;
  color: #fff;
}

/* ─── MAIN CONTENT ─── */
.legal-container {
  padding: 16px 14px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── HERO CARD ─── */
.hero-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
}
.hero-card h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-card p {
  font-size: 0.72rem;
  color: #94a3b8;
}
.effective-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  background: rgba(238,81,0,0.15);
  border: 1px solid rgba(238,81,0,0.3);
  color: #ffedd5;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* ─── POLICY SECTION CARD ─── */
.policy-section {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 14px;
  scroll-margin-top: 100px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px solid #334155;
  padding-bottom: 8px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-num {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  color: #fff;
}

/* COLOR BADGES */
.bg-amber  { background: #d97706; }
.bg-emerald{ background: #059669; }
.bg-blue   { background: #2563eb; }
.bg-purple { background: #7c3aed; }
.bg-cyan   { background: #0891b2; }
.bg-rose   { background: #e11d48; }
.bg-gold   { background: #b45309; }
.bg-indigo { background: #4f46e5; }
.bg-teal   { background: #0d9488; }

.section-header h2 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #f1f5f9;
}

.policy-body p {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 8px;
  text-align: justify;
}

.policy-body ul {
  padding-left: 14px;
  margin-bottom: 8px;
}

.policy-body li {
  font-size: 0.70rem;
  color: #cbd5e1;
  margin-bottom: 4px;
}

/* ─── CALLOUT BOXES ─── */
.callout-box {
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0;
  font-size: 0.68rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.callout-box i { font-size: 0.95rem; margin-top: 1px; }

.callout-info    { background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.3); color: #93c5fd; }
.callout-warning { background: rgba(217,119,6,0.12); border: 1px solid rgba(217,119,6,0.3); color: #fde68a; }
.callout-success { background: rgba(5,150,105,0.12); border: 1px solid rgba(5,150,105,0.3); color: #6ee7b7; }
.callout-danger  { background: rgba(225,29,72,0.12); border: 1px solid rgba(225,29,72,0.3); color: #fca5a5; }

/* ─── KEY-VALUE HIGHLIGHT GRID ─── */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.highlight-item {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px;
}
.highlight-lbl { font-size: 0.60rem; color: #64748b; text-transform: uppercase; font-weight: 700; }
.highlight-val { font-size: 0.75rem; font-weight: 800; color: #ee5100; margin-top: 2px; }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}
.toast.show { opacity: 1; }

/* ─── BOTTOM NAVIGATION ─── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: 58px;
  background-color: #ee5100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
  z-index: 200;
}
.nav-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  color: rgba(255,255,255,0.7);
  font-size: 0.62rem; font-weight: 500;
  padding: 4px 8px; border-radius: 8px;
}
.nav-item svg { width: 20px; height: 20px; stroke-width: 1.8px; }
.nav-item:hover, .nav-item.active { color: #fff; }
