/* =========================================================
   Morning Bell — privacy/privacy.css
   Prose-page template: /privacy owns it, and /delete + /terms link it
   for the shared column/heading/footer rules (their extras live in
   their own small css files). All tokens come from ../styles.css.
   No new colors. No JavaScript needed on these pages.
   ========================================================= */

/* ---------- Sticky footer (hotfix 2026-07-16, same as /signup) ----------
   The policy is normally taller than the viewport, but on very tall screens
   the same mid-screen-footer bug applies. Harmless when content is tall. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* ---------- Page column ---------- */
.privacy-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 40px 100px;
}

/* ---------- Eyebrow + title block ---------- */
.privacy-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  font-weight: 600;
  font-family: Spectral, serif;
  color: rgba(14,26,48,0.6);
  margin-bottom: 20px;
}

.privacy-h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.privacy-effective {
  font-style: italic;
  color: rgba(14,26,48,0.55);
  font-size: 14px;
  margin: 0 0 48px;
}

/* ---------- Section headings ---------- */
.privacy-wrap h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 48px 0 14px;
  color: #0E1A30;
}

/* First section heading has less top margin (follows intro) */
.privacy-wrap h2:first-of-type {
  margin-top: 40px;
}

/* ---------- Body copy ---------- */
.privacy-wrap p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(14,26,48,0.88);
  margin: 0 0 18px;
}

.privacy-wrap ul {
  margin: 0 0 18px;
  padding-left: 1.5em;
}

.privacy-wrap ul li {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(14,26,48,0.88);
  margin-bottom: 8px;
}

/* ---------- API calls panel ----------
   The panel BREAKS OUT of the 780px prose column: the table needs real width
   for the Endpoint column, and cramming it into the text measure forced a
   horizontal scrollbar at desktop while the page sat mostly empty (Luke,
   2026-07-16). --api-w is the panel's own width: up to 1060px, never wider
   than the viewport minus a margin. The negative inline margins center it on
   the page (the prose column itself is centered). overflow-x stays auto as a
   last resort but must not engage above ~600px — under 600px the code cells
   are allowed to wrap instead (media rule below). */
.api-panel {
  --api-w: min(1060px, calc(100vw - 48px));
  background: #FBF6E9;
  border: 1px solid rgba(14,26,48,0.12);
  border-radius: 12px;
  padding: 28px 28px 22px;
  margin: 24px calc((100% - var(--api-w)) / 2) 18px;
  width: var(--api-w);
  box-sizing: border-box;
  overflow-x: auto;
}

.api-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

.api-panel thead tr th {
  font-family: Spectral, serif;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: rgba(14,26,48,0.55);
  text-align: left;
  padding: 0 16px 12px 0;
  border-bottom: 1px solid rgba(14,26,48,0.12);
}

.api-panel thead tr th:last-child {
  padding-right: 0;
}

.api-panel tbody tr td {
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid rgba(14,26,48,0.08);
  color: rgba(14,26,48,0.88);
}

.api-panel tbody tr:last-child td {
  border-bottom: none;
}

.api-panel tbody tr td:last-child {
  padding-right: 0;
}

.api-panel td code,
.api-panel th code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 13px;
  background: rgba(14,26,48,0.07);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  color: #0E1A30;
}

/* Inline code in prose (outside the panel): long paths are single unbreakable
   tokens (e.g. supabase/functions/_shared/lms/client.ts) and were forcing
   PAGE-level horizontal overflow at phone widths — the page must never scroll
   sideways (the stray scrollbar reads as a dark band under a dark UI theme). */
.privacy-wrap p > code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 14px;
  background: rgba(14,26,48,0.07);
  padding: 2px 6px;
  border-radius: 4px;
  color: #0E1A30;
  overflow-wrap: anywhere;
}

/* "What these calls can never do" paragraph inside the panel */
.api-never {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(14,26,48,0.12);
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(14,26,48,0.8);
}

/* ---------- Hairline rule between major sections ---------- */
.privacy-rule {
  border: none;
  border-top: 1px solid rgba(14,26,48,0.1);
  margin: 52px 0 0;
}

/* ---------- Plain ink footer (no canvas wave) ----------
   The ink footer is the ONE footer. The old .privacy-contact block duplicated
   its contents (hello@ lives in the intro paragraph; Andersen Labs + the
   not-affiliated line live here) and read as two stacked footers — removed
   2026-07-16 (Luke). */
.footer-plain {
  background: #0E1A30;
  color: #F4EFE2;
  padding: 32px 0 44px;
}

.footer-plain .footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-plain .footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-plain .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-plain .footer-name {
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
}

.footer-plain .footer-note {
  font-size: 13.5px;
  line-height: 1;
  font-style: italic;
  color: rgba(244,239,226,0.7);
}

.footer-plain .footer-divider {
  height: 1px;
  background: rgba(244,239,226,0.16);
  margin: 22px 0 18px;
}

.footer-plain .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(244,239,226,0.6);
}

.footer-plain .footer-bottom a {
  color: rgba(244,239,226,0.6);
  text-decoration: underline;
}

.footer-plain .footer-bottom a:hover {
  color: rgba(244,239,226,0.9);
}

/* ---------- Responsive ---------- */
@media (max-width: 999px) {
  .privacy-wrap { padding: 40px 24px 72px; }
  .privacy-h1 { font-size: 34px; }
  .footer-plain .footer-inner { padding: 0 24px; }
  .footer-plain .footer-bottom { flex-direction: column; gap: 12px; }
}

@media (max-width: 600px) {
  .privacy-h1 { font-size: 28px; }
  .api-panel { padding: 18px 16px 16px; }
  /* Below ~600px the endpoint strings can't fit on one line no matter what:
     let code WRAP instead of forcing a scrollbar (spec: horizontal scroll only
     if truly unavoidable — wrapping makes it avoidable). */
  .api-panel td code,
  .api-panel th code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
