/* Shared styles for Harper legal + support pages. Matches the landing's
   dark theme tokens so the pages feel like one site. */
:root {
  --ink: #ededed;
  --ink-dim: #8a8a8a;
  --ink-faint: #5a5a5a;
  --canvas: #0a0a0a;
  --surface: #0f0f0f;
  --surface-2: #161616;
  --line: #232323;
  --line-strong: #2f2f2f;
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --accent: #0a84ff;
  --ok: #34c759;
}
* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* top bar */
.legal-nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.legal-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.legal-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 500; font-size: 16px; }
.legal-logo img { border-radius: 5px; }
.legal-nav .back { font-size: 13px; color: var(--ink-dim); text-decoration: none; transition: color .15s; }
.legal-nav .back:hover { color: var(--ink); }

/* header */
.legal-head { padding: clamp(56px, 11vw, 120px) 0 clamp(28px, 5vw, 48px); }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.legal-head h1 { margin-top: 16px; font-size: clamp(34px, 6vw, 54px); font-weight: 400; letter-spacing: -.02em; line-height: 1.04; }
.legal-head .lede { margin-top: 18px; color: var(--ink-dim); font-size: clamp(15px, 1.6vw, 18px); max-width: 38rem; }
.eff {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 100px;
  padding: 6px 13px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-dim);
}
.eff .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* body sections */
.legal-body { padding-bottom: clamp(64px, 10vw, 120px); }
.sec { padding: 32px 0; border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; padding-top: 0; }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sec-h .num { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--ink-faint); }
.sec-h h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; letter-spacing: -.01em; }
.prose { color: var(--ink-dim); font-size: 15.5px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 12px; }
.prose ul { margin: 4px 0 0; padding-left: 20px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--ink-faint); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.prose a:hover { text-decoration-color: var(--ink-dim); }
.sub { margin-top: 22px; }
.sub:first-child { margin-top: 0; }
.sub-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.sub-h .num { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--ink-faint); }
.sub-h h3 { font-size: 15.5px; font-weight: 500; color: var(--ink); }

.row-end { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 14px; }
.row-end a { color: var(--ink-dim); text-decoration: none; transition: color .15s; }
.row-end a:hover { color: var(--ink); }

/* support specifics */
.support-hero { text-align: center; padding: clamp(56px, 11vw, 120px) 0 clamp(20px, 4vw, 40px); }
.support-hero .kicker { display: block; }
.support-hero h1 { margin-top: 16px; font-size: clamp(36px, 7vw, 60px); font-weight: 400; letter-spacing: -.02em; line-height: 1.04; }
.support-hero .lede { margin: 18px auto 0; color: var(--ink-dim); max-width: 34rem; font-size: clamp(15px, 1.6vw, 18px); }
.contact-card {
  margin: clamp(28px, 5vw, 48px) 0;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(to bottom, var(--surface-2), var(--surface));
  padding: clamp(26px, 4vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.contact-card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ok); }
.contact-card h2 { margin-top: 12px; font-size: clamp(22px, 3vw, 30px); font-weight: 500; letter-spacing: -.02em; }
.contact-card p { margin-top: 8px; color: var(--ink-dim); font-size: 14px; max-width: 28rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--canvas); text-decoration: none;
  border-radius: 100px; padding: 13px 24px; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: clamp(40px, 7vw, 72px); }
.quick a {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 18px 20px; text-decoration: none; transition: border-color .15s, background .15s;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.quick a:hover { border-color: var(--line-strong); background: var(--surface-2); }
.quick .t { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.quick .d { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }
.quick .arr { color: var(--ink-faint); }
.faq { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 400; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-dim); display: grid; place-items: center; font-size: 16px; transition: transform .2s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-dim); font-size: 14.5px; max-width: 46rem; }

/* shared minimal footer */
.legal-foot { border-top: 1px solid var(--line); padding: 36px 0; }
.legal-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.legal-foot .links { display: flex; gap: 22px; flex-wrap: wrap; }
.legal-foot a { color: var(--ink-dim); text-decoration: none; font-size: 13px; transition: color .15s; }
.legal-foot a:hover { color: var(--ink); }
.legal-foot .copy { color: var(--ink-faint); font-size: 12.5px; }

@media (max-width: 640px) {
  .quick { grid-template-columns: 1fr; }
  .contact-card { flex-direction: column; align-items: flex-start; }
}
