/* ==========================================
   TEXT PAGES — FAQ, Help, Privacy, Terms
   Linked last in each page's <head>; restyles the existing markup without
   changing any words. A pale-green header panel, then one white panel on
   the site's 3-column grid: section headings in column 1, questions or
   text in columns 2-3. No left-edge accent lines.
   ========================================== */
:root {
  --t-paper: #F6F5F1; --t-ink: #1C1C1A; --t-ink-mid: #4A4A47; --t-ink-faint: #6B6B67;
  --t-moss: #0D8268; --t-moss-pale: #DBEFE8; --t-rule: rgba(28, 28, 26, 0.10);
}
body { background: var(--t-paper); }

/* ---------- Header panel ---------- */
.page-header {
  margin: 16px; border-radius: 28px; background: var(--t-moss-pale);
  padding: 88px 40px 72px; text-align: left; border: 0;
}
.page-header .container { max-width: 1200px; margin: 0 auto; padding: 0; }
.page-header .container::before {
  content: 'Clearly'; display: block; margin-bottom: 24px;
  font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--t-moss);
}
.page-header h1 {
  font-family: 'EB Garamond', serif; font-weight: 400; font-size: 52px; line-height: 1.06;
  letter-spacing: -0.4px; color: var(--t-ink); margin: 0 0 14px; text-align: left;
}
.page-header p { font-size: 17px; color: var(--t-ink-mid); margin: 0; text-align: left; }

/* ---------- Body panel on the 3-column grid ---------- */
.faq-section, .content-page {
  margin: 0 16px 16px; border-radius: 28px; background: #FFFFFF; padding: 88px 40px; border: 0;
}
/* !important: FAQ and Help set an inline max-width on this container */
.faq-section .container, .content-page .container {
  max-width: 1200px !important; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 16px; align-items: start;
}
.faq-section .container > *, .content-page .container > * { grid-column: 2 / span 2; }
/* Section headings sit in column 1, level with the first item after them */
.faq-section .container > h2, .content-page .container > h2 {
  grid-column: 1; font-family: 'EB Garamond', serif; font-weight: 400; font-size: 28px; line-height: 1.15;
  color: var(--t-ink); margin: 0; padding: 18px 24px 0 0; text-wrap: balance;
}
/* The gap between groups goes on the heading and on the item beside it, so they stay level */
.faq-section .container > h2 ~ h2, .content-page .container > h2 ~ h2,
.faq-section .container > h2 ~ h2 + *, .content-page .container > h2 ~ h2 + * { margin-top: 56px !important; }

/* FAQ / Help: ruled question rows */
.faq-item { margin: 0; padding: 18px 0 20px; border: 0; border-top: 1px solid var(--t-rule); background: transparent; box-shadow: none; border-radius: 0; }
.faq-section .container > h2 + .faq-item { border-top: 0; }
.faq-item h3 { font-family: 'Instrument Sans', sans-serif; font-size: 17px; font-weight: 500; color: var(--t-ink); margin: 0 0 8px; }
.faq-item p { font-size: 16px; line-height: 1.7; color: var(--t-ink-mid); margin: 0 0 10px; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item a, .content-page a { color: var(--t-moss); }

/* Contact / download card: a green card across the full grid */
.faq-section .container > .contact-card {
  grid-column: 1 / -1; margin: 48px 0 0; padding: 36px 40px; border-radius: 22px; background: var(--t-moss-pale);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; text-align: left; border: 0; box-shadow: none;
}
.contact-card h3 { font-family: 'EB Garamond', serif; font-weight: 400; font-size: 24px; line-height: 1.3; color: var(--t-ink); margin: 0; max-width: 32em; }
.contact-card p { margin: 0; color: var(--t-ink-mid); }
.contact-card .app-badge { display: inline-flex; flex-shrink: 0; }
.contact-card .btn-primary {
  background: var(--t-ink); color: #FFFFFF; border-radius: 999px; padding: 13px 22px; font-size: 15px; font-weight: 500; white-space: nowrap; border: 0;
}

/* Privacy / Terms open with text before the first heading; give that
   opening an 'Overview' heading in column 1 so it matches every section
   (added here, so the policy text itself is unchanged). */
.content-page .container::before {
  content: 'Overview'; grid-column: 1; grid-row: 1;
  font-family: 'EB Garamond', serif; font-size: 28px; line-height: 1.15; color: var(--t-ink); padding-right: 24px;
}
.content-page .container > h2:first-child { grid-row: auto; }

/* Privacy / Terms: readable legal text */
.content-page .container > h2 + * { padding-top: 18px; }
.content-page p, .content-page li { font-size: 16px; line-height: 1.75; color: var(--t-ink-mid); }
.content-page p { margin: 0 0 16px; max-width: 46em; }
.content-page ul, .content-page ol { margin: 0 0 16px; padding-left: 22px; max-width: 46em; }
.content-page li { margin: 0 0 8px; }
.content-page h3 { font-family: 'Instrument Sans', sans-serif; font-size: 17px; font-weight: 500; color: var(--t-ink); margin: 24px 0 8px; }
.content-page strong { color: var(--t-ink); font-weight: 500; }
.content-page table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.content-page th, .content-page td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--t-rule); vertical-align: top; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 900px) {
  .page-header { margin: 10px; border-radius: 22px; padding: 56px 22px 48px; }
  .page-header h1 { font-size: 38px; }
  .faq-section, .content-page { margin: 0 10px 10px; border-radius: 22px; padding: 48px 22px; }
  .faq-section .container, .content-page .container { display: block; }
  .faq-section .container > h2, .content-page .container > h2 { padding: 0; margin: 40px 0 12px; font-size: 26px; }
  .faq-section .container > h2:first-child, .content-page .container > h2:first-child { margin-top: 0; }
  .faq-section .container > h2 ~ h2 + *, .content-page .container > h2 ~ h2 + * { margin-top: 0 !important; }
  .faq-section .container > h2 ~ h2, .content-page .container > h2 ~ h2 { margin-top: 40px !important; }
  .faq-section .container > .contact-card { padding: 28px 22px; }
  .content-page .container::before { display: block; margin: 0 0 12px; font-size: 26px; padding: 0; }
}
