/* Hand-written styles that don't need a Tailwind rebuild.
   Footer grid and privacy-page text. Loaded after main.css in _base.html. */

/* ── Footer: 1 column on phones, 2 on small tablets, 4 on desktop ── */
.jd-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .jd-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .jd-footer-grid { grid-template-columns: 1.1fr 1fr 1.3fr 1.4fr; }
}

.jd-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
@media (min-width: 640px) {
  .jd-footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ── Privacy policy and other long-form text ── */
.jd-prose { color: #334155; line-height: 1.75; }
.jd-prose h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
.jd-prose h3 {
  margin-top: 1.5rem;
  font-weight: 600;
  color: #0f172a;
}
.jd-prose p,
.jd-prose ul { margin-top: 0.75rem; }
.jd-prose ul { list-style: disc; padding-left: 1.5rem; }
.jd-prose li + li { margin-top: 0.375rem; }
.jd-prose a { color: #0f172a; text-decoration: underline; }
.jd-prose a:hover { color: #475569; }
.jd-prose table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: 0.875rem; }
.jd-prose th,
.jd-prose td { text-align: left; vertical-align: top; padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid #e2e8f0; }
.jd-prose th { font-weight: 600; color: #0f172a; }
.jd-table-wrap { overflow-x: auto; }

/* Small "how we use this" note under forms */
.jd-form-note { margin-top: 0.75rem; font-size: 0.75rem; color: #64748b; }
.jd-form-note a { text-decoration: underline; }

/* Footer contact lines: icon + text, text aligned past the icon */
.jd-icon-row { display: flex; align-items: flex-start; gap: 0.625rem; }
.jd-icon-row > i { width: 1rem; margin-top: 0.3rem; text-align: center; color: #94a3b8; flex-shrink: 0; }

/* Outlined secondary button (the footer's "Send us a message") */
.jd-outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  transition: background-color .15s, border-color .15s;
}
.jd-outline-btn:hover { background: #f8fafc; border-color: #94a3b8; }
.jd-outline-btn .fa-arrow-right { font-size: 0.75rem; transition: transform .15s; }
.jd-outline-btn:hover .fa-arrow-right { transform: translateX(2px); }
