/* Nimbo · US (English) legal pages: draft banner, lawyer-review callouts, language switch,
   provider cards and the stacked table used on phones.
   Loads after ../styles.css and ../legal.css. Mobile first (390px). */

/* ---------- Draft banner (remove before publishing) ---------- */
.draft-banner {
  position: relative; z-index: 60;
  padding: 10px var(--gutter);
  background: #8A1C1C; color: #fff;
  font: 700 13.5px/1.4 var(--sans); letter-spacing: .01em; text-align: center;
}
.draft-banner span { font-weight: 500; opacity: .92; }

/* ---------- Lawyer review callouts ---------- */
.lawyer-review {
  display: block;
  margin-top: 16px; padding: 12px 14px 12px 16px;
  background: #FFF4E5; border: 1px dashed #C2410C; border-left: 5px solid #C2410C; border-radius: 12px;
  color: #5C2A06; font-size: 14.5px; line-height: 1.55; text-wrap: pretty;
  overflow-wrap: anywhere;
}
.lawyer-review strong:first-child {
  display: inline-block; margin-right: 4px;
  font: 700 11.5px/1.6 var(--sans); letter-spacing: .08em; color: #9A3412;
}
.legal .lawyer-review p, .legal .lawyer-review li { font-size: 14.5px; line-height: 1.55; color: inherit; }
.legal .lawyer-review ul { margin-top: 6px; gap: 4px; }
.legal .lawyer-review ul > li::before { background: #C2410C; }
.tldr .lawyer-review, .legal-hero .lawyer-review { text-align: left; }

/* Inline fill-in markers (names, addresses, dates still to be decided) */
.todo {
  padding: 1px 6px; border-radius: 6px;
  background: #FFF4E5; color: #9A3412; border: 1px dashed #C2410C;
  font-weight: 600; font-size: .92em; overflow-wrap: anywhere;
}

/* ---------- Language switch in the header ---------- */
.lang-switch {
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.lang-switch:hover { border-color: var(--lavender); color: var(--primary); }

/* ---------- Providers and recipients ---------- */
.vendor-list { display: grid; gap: 10px; margin-top: 16px; }
.vendor {
  padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
}
.vendor b { display: block; font-size: 15.5px; line-height: 1.35; }
.vendor .vendor__role { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--gold); text-transform: uppercase; }
.legal .vendor p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.legal .vendor p strong { color: var(--ink); }

/* ---------- Tables (stacked cards on phones) ---------- */
.legal-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.legal-table caption { text-align: left; font-weight: 600; font-size: 15px; padding-bottom: 8px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; overflow-wrap: break-word; }

@media (max-width: 639px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr {
    margin-top: 10px; padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  }
  .legal-table td { padding: 4px 0; color: var(--ink-2); }
  .legal-table td:first-child { color: var(--ink); font-weight: 600; font-size: 15.5px; }
  .legal-table td[data-label]:not(:first-child)::before {
    content: attr(data-label); display: block;
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
  }
}
@media (min-width: 640px) {
  .legal-table { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
  .legal-table th { padding: 12px 14px; background: var(--lilac-2); font-size: 13px; letter-spacing: .03em; color: var(--ink-2); }
  .legal-table td { padding: 12px 14px; border-top: 1px solid var(--border); color: var(--ink-2); }
  .legal-table td:first-child { color: var(--ink); font-weight: 600; }
  .legal-table th:first-child, .legal-table td:first-child { width: 26%; }
}

/* ---------- Highlighted links to the Consumer Health page ---------- */
.health-link {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 16px; padding: 16px 18px; border-radius: 18px;
  background: var(--sage); border: 1px solid #D3E2D3; color: var(--ink);
  font-size: 15.5px; line-height: 1.55; text-decoration: none;
}
.health-link > .ico { width: 20px; height: 20px; color: var(--sage-ink); margin-top: 3px; }
.health-link b { color: var(--sage-ink); }
.health-link:hover { border-color: var(--sage-ink); }

/* Emergency numbers */
.legal .hotlines { margin-top: 16px; gap: 8px; }
.legal .hotlines > li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
}
.legal .hotlines > li::before { display: none; }
.legal .hotlines b { font-size: 16px; line-height: 1.4; }
.legal .hotlines span { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* Footer links wrap nicely on phones */
.legal-page .foot__links a[lang] { font-weight: 600; color: var(--primary); }

@media print {
  .top, .toc, .legal-contact img { display: none; }
  .draft-banner { background: none; color: #8A1C1C; border: 2px solid #8A1C1C; }
}
