/* FindGoodDaily — shared styling for legal & support pages
   Brand tokens locked: forest, gold, terracotta, cream + DM Sans / Lora */

:root {
  --forest: #2A5C42;
  --gold: #EFC75E;
  --terracotta: #C8722F;
  --cream: #F6F2E8;
  --muted: #5C6B5E;
  --deep: #3d4a40;
  --taupe: #a39c8d;
  --line: rgba(42, 92, 66, .14);
  --max: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--deep);
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--terracotta); }
a:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 242, 232, .85);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.logo-lockup svg { display: block; }
.sunburst { width: 30px; height: 30px; flex-shrink: 0; }
.wordmark { width: 132px; height: 22px; }
.back-home {
  margin-left: auto;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.back-home:hover { color: var(--forest); text-decoration: underline; }

/* ---------- document header ---------- */
.doc-head {
  padding-top: 48px;
  padding-bottom: 8px;
}
.doc-kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 8px;
}
.doc-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 6px;
  letter-spacing: -.5px;
}
.doc-sub {
  font-style: italic;
  color: var(--muted);
  margin: 0 0 14px;
}
.doc-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--taupe);
  margin: 0;
}

/* ---------- callout boxes ---------- */
.callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 26px 0;
  font-size: 14.5px;
  line-height: 1.55;
}
.callout--draft {
  border-left-color: var(--taupe);
  color: var(--muted);
  font-style: italic;
}
.callout--commit {
  border-left-color: var(--forest);
  background: rgba(42, 92, 66, .045);
}
.callout--commit .callout-title {
  color: var(--forest);
}
.callout--warn {
  border-left-color: var(--terracotta);
  background: rgba(200, 114, 47, .05);
}
.callout--warn .callout-title {
  color: var(--terracotta);
}
.callout-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  margin: 0 0 8px;
  color: var(--deep);
}
.callout p { margin: 0 0 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin: 6px 0 0; padding-left: 18px; }
.callout li { margin: 6px 0; }

/* ---------- body sections ---------- */
main { padding-bottom: 8px; }
.lead { margin: 22px 0; }
section.clause { margin: 30px 0; }
h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--forest);
  margin: 0 0 12px;
  letter-spacing: -.2px;
}
h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--deep);
  margin: 20px 0 8px;
}
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 8px 0; }
strong { color: var(--deep); font-weight: 600; }
.contact-block {
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
.site-footer .wrap {
  text-align: center;
  padding-top: 28px;
  padding-bottom: 48px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--taupe);
}
.site-footer p { margin: 0 0 8px; }
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .sep { color: var(--gold); margin: 0 8px; }

@media (max-width: 480px) {
  body { font-size: 15px; }
  .doc-head { padding-top: 36px; }
}

/* ---------- top nav bar ---------- */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(246,242,232,.92);
  position: sticky; top: 0; z-index: 50;
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  backdrop-filter: saturate(120%) blur(6px);
}
.nav-inner { display: flex; align-items: center; gap: 16px; padding-top: 13px; padding-bottom: 13px; }
.nav-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-brand svg { display: block; }
.nav-links { margin-left: auto; display: flex; gap: 22px; }
.nav-links a { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--forest); }
