/* Juju Baby Tracker - Unified Legal/Support Styles (Light Juju Theme) */

/* ---------- COLOR TOKENS (from app theme) ---------- */
:root {
  --bg: #d9e6d9;              /* screen background (sage green) */
  --card-bg: #ffffff;         /* card background */
  --card-border: #c8e6c9;     /* pastel sage border */
  --text-main: #1b5e20;       /* primary dark green text */
  --text-muted: rgba(46, 125, 50, 0.7); /* medium green at 70% */
  --accent: #675746;          /* brown/tan accent */
  --accent-soft: #f3ebe1;     /* soft tan background */
  --accent-gold: #eecb86;     /* golden highlight */
  --accent-header: #8da68d;   /* sage headers */
  --timer-bg: #9bb99b;        /* darker sage (for chips/labels) */

  --shadow-soft: 0 18px 32px rgba(0, 0, 0, 0.06);
  --radius-xl: 20px;
}

/* ---------- GLOBAL RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 32px 14px 40px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, #e6f0e6 0, var(--bg) 45%, #edf7ed 100%);
  color: var(--text-main);
}

/* ---------- LAYOUT ---------- */

.wrapper {
  max-width: 980px;
  margin: 0 auto;
}

.shell {
  position: relative;
}

/* subtle soft glow around the card */
.shell::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(237, 203, 134, 0.35) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(141, 166, 141, 0.25) 0, transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(200, 230, 201, 0.4) 0, transparent 50%);
  opacity: 0.8;
  filter: blur(10px);
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  padding: 22px 18px 20px;
}

@media (min-width: 768px) {
  body {
    padding: 48px 20px 60px;
  }

  .card {
    padding: 28px 30px 24px;
  }
}

/* For inner content pages (support/privacy/terms) */
.inner-page {
  max-width: 860px;
  margin: 0 auto;
}

/* ---------- HEADER / LOGO ---------- */

.header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.logo-pill {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, #ffffff 0, #f6fbf6 45%, #c8e6c9 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  font-size: 26px;
  color: var(--accent);
}

.logo-pill span {
  display: block;
  transform: translateY(1px);
}

.logo-pill img {
  width: 60px;
  height: 60px;
  display: block;
}

.title-block h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--accent);
}

.title-block p {
  margin: 4px 0 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* Inner page header */

.inner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.inner-header-title {
  font-size: 1.35rem;
  margin: 0;
  color: var(--accent);
}

/* ---------- BADGES / PILLS ---------- */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(155, 185, 155, 0.25); /* timer/sage tone */
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-gold);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(141, 166, 141, 0.22);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 6px;
}

/* ---------- BREADCRUMB ---------- */

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- LANDING PAGE CONTENT ---------- */

.section {
  margin-top: 6px;
}

.section h2 {
  font-size: 1.12rem;
  margin-bottom: 6px;
  color: var(--accent-header);
}

.section p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 3px 0 10px;
}

/* Grid of tiles for index.html */
.link-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.link-tile {
  border-radius: 16px;
  border: 1px solid var(--card-border);
  padding: 12px 14px;
  background: #ffffff;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    border-color 0.12s ease-out,
    background-color 0.12s ease-out;
}

.link-tile span.label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.link-tile span.desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.link-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-header);
  background: #fdfbf7;
}

/* ---------- SUPPORT BOX / CALLOUT ---------- */

.support-box,
.callout {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px dashed rgba(103, 87, 70, 0.35);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.support-box strong,
.callout strong {
  color: var(--accent);
}

/* ---------- CONTENT TYPOGRAPHY (inner pages) ---------- */

.content {
  margin-top: 6px;
  line-height: 1.58;
}

.content em {
  color: var(--accent);
}

.content h2 {
  font-size: 1.12rem;
  margin-top: 18px;
  margin-bottom: 6px;
  color: var(--accent-header);
}

.content h3 {
  font-size: 1rem;
  margin-top: 14px;
  margin-bottom: 4px;
  color: var(--accent);
}

.content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 3px 0 8px;
}

.content ul {
  padding-left: 20px;
  margin: 4px 0 10px;
}

.content li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ---------- FOOTER ---------- */

.footer {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
