/* Document layouts: privacy, terms, account and invitation pages. */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

/* ── Doc header ── */
.doc-header {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.doc-header-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.doc-header h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 8px;
}

.doc-header-meta {
  font-size: 13px;
  color: var(--faint);
  font-family: var(--mono);
}

/* ── TOC ── */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 56px;
}

.toc-title {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 1.5px;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.toc ol li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  border-bottom: 1px solid transparent;
}

.toc ol li a:hover { color: var(--accent); }

.toc-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  width: 20px;
  flex-shrink: 0;
}

/* ── Sections ── */
.section { margin-bottom: 52px; scroll-margin-top: 80px; }

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.section-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 6px;
  flex-shrink: 0;
  width: 20px;
}

.section h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

.section p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 12px;
}

.section p:last-child { margin-bottom: 0; }

/* ── Lists ── */
.data-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.data-list li {
  position: relative;
  padding-left: 15px;
  font-size: 16px;
  color: var(--muted);
}

.data-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Callout ── */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 16px;
}

.callout p { font-size: 14px; color: var(--muted); margin: 0; }

/* ── Providers table ── */
.providers { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }

.providers-header {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.providers-header span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--faint);
  text-transform: uppercase;
}

.provider-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.15s;
}

.provider-row:hover { background: var(--surface); }
.provider-name { font-size: 15px; font-weight: 500; color: var(--text); }
.provider-role { font-size: 15px; color: var(--muted); }

/* ── Retention table ── */
.retention { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }

.retention-header {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 16px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.retention-header span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--faint);
  text-transform: uppercase;
}

.retention-header span:last-child { text-align: right; }

.retention-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  align-items: center;
}

.retention-row:hover { background: var(--surface); }
.retention-item { font-size: 15px; color: var(--muted); }

.retention-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  text-align: center;
  white-space: nowrap;
  justify-self: end;
}

.tag-immediate { background: rgba(229,62,62,0.08); color: var(--danger); border: 1px solid rgba(229,62,62,0.2); }
.tag-30days    { background: rgba(16, 42, 96,0.08); color: var(--accent); border: 1px solid rgba(16, 42, 96,0.2); }
.tag-legal     { background: var(--surface); color: var(--faint); border: 1px solid var(--border); }

/* ── Data grid ── */
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 16px;
}

.data-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 8px;
  font-size: 15px;
  color: var(--muted);
}

.data-item-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.data-item-dot.deleted { background: var(--danger); }
.data-item-dot.kept    { background: var(--faint); }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 10px;
  transition: background 0.15s;
}

.step:hover { background: var(--surface); }

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1px solid rgba(16, 42, 96,0.2);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-content { display: flex; flex-direction: column; gap: 3px; }
.step-label { font-size: 16px; color: var(--text); font-weight: 500; }
.step-hint  { font-size: 14px; color: var(--muted); }

/* ── Option cards ── */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }

.option-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card.primary { border-color: rgba(16, 42, 96,0.3); }
.option-icon  { font-size: 24px; }
.option-title { font-size: 16px; font-weight: 600; color: var(--text); }
.option-desc  { font-size: 15px; color: var(--muted); line-height: 1.6; }

.option-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(16, 42, 96,0.2);
  border-radius: 20px;
  padding: 3px 10px;
  align-self: flex-start;
}

.option-tag.secondary {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--border);
}

/* ── HR ── */
hr { border: none; border-top: 1px solid var(--border); margin: 0 0 52px; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
  max-width: 760px;
  margin: 0 auto;
}

.site-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

.site-footer-col a { color: var(--muted); }
.site-footer-col a:hover { color: var(--accent); }

.site-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-footer-bottom p { font-size: 13px; color: var(--faint); }

/* ── Responsive ── */
@media (max-width: 540px) {
  .options, .data-grid, .site-footer-cols { grid-template-columns: 1fr; }
  .provider-row, .providers-header,
  .retention-row, .retention-header { grid-template-columns: 1fr; gap: 4px; }
  .providers-header, .retention-header { display: none; }
  .retention-tag { justify-self: start; }
  .site-header-nav { display: none; }
  .doc-header h1 { font-size: 28px; }
}

/* ── Spacing helpers (replace former inline styles) ── */
.spaced-top    { margin-top: 12px; }
.spaced-top-md { margin-top: 20px; }
.spaced-top-lg { margin-top: 28px; }

/* ── Steps title ── */
.steps-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── Sub-headings inside a section ── */
.section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
}

/* ── Legend for the data grid ── */
.data-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--faint);
}

.data-legend span { display: flex; align-items: center; gap: 8px; }
.data-legend .data-item-dot { margin-top: 0; }
