/* Long-form page layout — privacy, terms, support */

html { scroll-behavior: smooth; }

.page-hero {
  padding: 132px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { display: inline-block; margin-bottom: 18px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  max-width: 880px;
}
.page-hero .lede {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
  max-width: 640px;
}
.page-hero .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 26px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.page-hero .meta span b {
  color: var(--ink);
  font-weight: 500;
}

/* Two-column doc body: sticky TOC + prose */
.doc {
  padding: 64px 0 96px;
}
.doc-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 88px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}
.doc-toc h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.doc-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-toc ol li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
}
.doc-toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ink-3);
}
.doc-toc ol li a {
  color: var(--ink-3);
  transition: color 120ms;
}
.doc-toc ol li a:hover { color: var(--ink); }

.doc-body {
  max-width: 720px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.doc-body section {
  padding: 8px 0 36px;
  scroll-margin-top: 88px;
}
.doc-body section + section {
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.doc-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.doc-body h2 .num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.doc-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 24px 0 10px;
  color: var(--ink);
}
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol {
  padding-left: 0;
  margin: 0 0 14px;
  list-style: none;
}
.doc-body ul li, .doc-body ol li {
  position: relative;
  padding: 4px 0 4px 22px;
}
.doc-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brick);
  font-family: var(--font-mono);
  font-size: 13px;
}
.doc-body ol { counter-reset: olist; }
.doc-body ol li {
  counter-increment: olist;
}
.doc-body ol li::before {
  content: counter(olist) '.';
  position: absolute;
  left: 0;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12.5px;
  top: 6px;
}
.doc-body strong { color: var(--ink); font-weight: 500; }
.doc-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc-body a:hover { color: var(--brick); }

.doc-body .callout {
  border: 1px solid var(--ink);
  background: var(--bg-2);
  padding: 18px 20px;
  margin: 18px 0;
  font-size: 14.5px;
}
.doc-body .callout .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.doc-body .callout p:last-child { margin-bottom: 0; }

/* Subprocessor / contact tables */
.kv-table {
  border: 1px solid var(--ink);
  margin: 14px 0 18px;
}
.kv-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.kv-row:last-child { border-bottom: 0; }
.kv-row .k {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
}
.kv-row .v {
  padding: 12px 16px;
  color: var(--ink-2);
}

/* Final CTA / contact strip on doc pages */
.doc-cta {
  border-top: 1px solid var(--ink);
  padding: 96px 0 96px;
  text-align: center;
}
.doc-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.doc-cta p {
  font-size: 16.5px;
  color: var(--ink-3);
  max-width: 540px;
  margin: 0 auto 28px;
}
.doc-cta .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Support page hero card */
.support-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: stretch;
  padding: 56px 0 96px;
}
.support-grid > * { min-width: 0; }
.support-grid-single {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}
.support-card {
  border: 1px solid var(--ink);
  background: var(--bg);
  padding: 32px;
  position: relative;
}
.support-card::before {
  content: '';
  position: absolute;
  inset: 6px -6px -6px 6px;
  border: 1px solid var(--ink);
  z-index: -1;
  background: var(--bg-2);
}
.support-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.support-card .label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--brick);
  margin-right: 8px;
  vertical-align: 2px;
}
.support-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.support-card p {
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 460px;
}
.support-card .email-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 16px;
}
.support-card .email-line b { color: var(--ink); font-weight: 500; }

.support-card .copy-email {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 12px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.support-card .copy-email b {
  color: var(--ink);
  font-weight: 500;
}
.support-card .copy-email:hover {
  border-color: var(--ink);
  background: var(--bg-2);
}
.support-card .copy-email .copy-icon {
  position: relative;
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.support-card .copy-email .copy-icon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 200ms ease, transform 200ms ease;
}
.support-card .copy-email .icon-check {
  opacity: 0;
  transform: scale(0.6) rotate(-12deg);
}
.support-card .copy-email.is-copied {
  border-color: var(--pass);
  background: rgba(31, 95, 63, 0.06);
  color: var(--pass);
}
.support-card .copy-email.is-copied b { color: var(--pass); }
.support-card .copy-email.is-copied .icon-clipboard {
  opacity: 0;
  transform: scale(0.6) rotate(8deg);
}
.support-card .copy-email.is-copied .icon-check {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.support-tips {
  border: 1px solid var(--ink);
  padding: 28px 30px;
  background: var(--bg);
}
.support-tips h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.support-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.support-tips ul li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.support-tips ul li:first-child { border-top: 0; }
.support-tips ul li .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  padding-top: 3px;
}
.support-tips ul li b { color: var(--ink); font-weight: 500; }

.support-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 64px;
}
.support-meta .cell {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.support-meta .cell:last-child { border-right: 0; }
.support-meta .cell .k {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.support-meta .cell .v {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* Responsive */
@media (max-width: 960px) {
  .doc-grid { grid-template-columns: 1fr; gap: 32px; }
  .doc-toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .doc-toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
  .support-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 72px; }
  .support-meta { grid-template-columns: 1fr; }
  .support-meta .cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .support-meta .cell:last-child { border-bottom: 0; }
  .kv-row { grid-template-columns: 1fr; }
  .kv-row .k { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .page-hero { padding: 104px 0 40px; }
  .doc { padding: 40px 0 72px; }
  .doc-toc ol { grid-template-columns: 1fr; }
  .doc-cta { padding: 72px 0; }
}
