/* Cultivator public site styles
   Used by: index.html (apex footer link row only), privacy.html, terms.html
*/

* { box-sizing: border-box; }

:root {
  --brand: #2f7d4f;
  --ink: #182019;
  --muted: #5c675f;
  --paper: #fbfdfb;
  --line: #e2e8e4;
  --head-bg: #f2f6f3;
}

/* ---------------------------------------------------------------------
   Legal document pages (privacy.html, terms.html)
   Light, readable document layout. Mobile-first.
--------------------------------------------------------------------- */

body.doc {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.doc-header {
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}

.doc-header .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}

.doc-header .wordmark::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--brand);
}

.doc-header .wordmark:hover {
  color: var(--brand);
}

.doc-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.doc-main h1 {
  font-size: clamp(26px, 6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.doc-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--brand);
}

.doc-main h2 {
  font-size: clamp(19px, 4vw, 23px);
  line-height: 1.3;
  margin: 36px 0 12px;
}

.doc-main h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 22px 0 8px;
}

.doc-main p {
  margin: 0 0 16px;
  font-size: 16px;
}

.doc-main ul,
.doc-main ol {
  margin: 0 0 16px;
  padding-left: 22px;
  font-size: 16px;
}

.doc-main li {
  margin: 0 0 8px;
}

.doc-main a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-main a:hover {
  text-decoration: none;
}

.doc-main strong {
  font-weight: 700;
}

/* Tables: the retention table runs wide, so every table scrolls inside
   its own container instead of forcing the page to scroll sideways. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.doc-main table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 14px;
}

.doc-main th,
.doc-main td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.doc-main th {
  background: var(--head-bg);
  font-weight: 700;
  white-space: nowrap;
}

.doc-main tr:last-child td {
  border-bottom: none;
}

.doc-footer {
  border-top: 1px solid var(--line);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.doc-footer a {
  color: var(--muted);
  margin: 0 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-footer a:hover {
  color: var(--brand);
}

/* ---------------------------------------------------------------------
   Apex "coming soon" page footer link row (index.html only)
   Quiet footnote, not navigation: small, muted, fixed at the bottom,
   sitting above the scrim (z-index 1) and level with the card (z-index 2).
--------------------------------------------------------------------- */

.apex-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.apex-foot a {
  pointer-events: auto;
  color: inherit;
  text-decoration: none;
}

.apex-foot a:hover {
  text-decoration: underline;
}

.apex-foot .sep {
  margin: 0 6px;
  opacity: 0.7;
}
