/* page-shell.css — shared chrome for topical landings + privacy.
   Mirrors the homepage hero + footer styling so the handoff from a
   landing's input bar into the live chat at / feels visually seamless. */

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

:root {
  --navy: #1a2744;
  --navy-dark: #13203a;
  --teal: #139893;
  --teal-light: #f0faf8;
  --white: #ffffff;
  --border: #13989345;
  --text: #0c0c0c;
  --muted: #4b5563;
  --hairline: #e5e7eb;
  --page-bg: #ffffff;
}

html,
body {
  height: 100%;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #2a7a6b05;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--teal);
}

/* Page shell — mirrors homepage layout so content sits in the visual
   center vertically and the footer always anchors to the bottom of the
   viewport regardless of content height. */

#page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
}

.main-scroll {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  margin-top: auto;
  max-width: 760px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.input-bar {
  margin-bottom: auto;
  flex-shrink: 0;
  width: 100%;
}

/* Hero — matches homepage .hero / .hero-brand exactly */

.hero {
  text-align: center;
  padding: 28px 20px 28px;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  text-decoration: none;
}

.hero-brand img {
  width: min(288px, 67vw);
  height: auto;
  display: block;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin: 20px auto 12px;
  max-width: 640px;
}

.subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--teal);
  font-weight: 400;
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto 4px;
}

/* Handoff input bar — mirrors the chat input on / */

.input-bar {
  padding: 16px 20px 0;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 8px 8px 8px 20px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
  max-width: 640px;
  margin: 0 auto;
}

.input-wrap:focus-within {
  border-color: var(--teal);
}

.input-wrap input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: var(--text);
  padding: 12px 0;
  min-width: 0;
}

.input-wrap input::placeholder {
  color: var(--muted);
}

.mic-btn,
.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.mic-btn {
  background: var(--teal);
  color: var(--white);
  margin-right: 8px;
}

.mic-btn:hover {
  background: #0f7f7a;
}

.send-btn {
  background: #d1d5db;
  color: var(--white);
}

.send-btn:hover {
  background: var(--teal);
}

/* Suggestion pills */

.suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px auto 24px;
  max-width: 720px;
  list-style: none;
  padding: 0 20px;
  flex-shrink: 0;
}

.suggestions li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}

.suggestions li a::before {
  content: "✦";
  color: var(--teal);
  font-size: 12px;
}

.suggestions li a:hover {
  background: var(--teal-light);
  border-color: var(--teal);
}

/* Related topics cross-link block */

.related-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0 auto 16px;
  max-width: 720px;
  padding: 24px 20px 0;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  flex-shrink: 0;
  width: 100%;
}

.related-topics a {
  color: var(--muted);
  text-decoration: none;
}

.related-topics a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* Footer — matches homepage .site-footer layout (logo-left,
   links-center, social-right; space-between flex; navy underlined links) */

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--white);
  color: var(--navy);
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-size: 0.7rem;
}

.site-footer a {
  color: var(--navy);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--navy-dark);
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  text-decoration: none;
}

.footer-right a {
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: var(--navy-dark);
}

/* Legal page article */

.legal {
  max-width: 720px;
  margin: 16px auto 32px;
  padding: 0 4px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.legal h2 {
  font-size: 24px;
  color: var(--navy);
  margin-top: 32px;
  margin-bottom: 8px;
  font-weight: 700;
}

.legal h3 {
  font-size: 18px;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}

.legal p,
.legal ul,
.legal ol {
  margin-bottom: 16px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal a {
  color: var(--teal);
  text-decoration: underline;
}

.legal .effective {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.legal hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 32px 0;
}

/* Responsive tweaks */

@media (max-width: 480px) {
  .input-wrap {
    padding: 6px 6px 6px 16px;
  }
  .hero {
    padding: 20px 8px 16px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .subtitle {
    font-size: 0.95rem;
  }
}
