/* Shared styles for legal pages — matches SumApp main site identity */
:root {
  --brand: #6c63ff;
  --brand-deep: #4a3fcc;
  --brand-neon: #a78bfa;
  --ink: #0a0a14;
  --paper: #ffffff;
  --paper-3: #f4f3ff;
  --muted: #6b6b80;
  --line: rgba(10,10,20,0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
.mono { font-family: 'Geist Mono', ui-monospace, monospace; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* CTA */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  background: radial-gradient(120% 80% at 30% 0%, #a78bfa 0%, #8b7fff 35%, #6c63ff 65%, #4a3fcc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -2px 0 rgba(20,10,60,0.45),
    inset 0 -8px 16px rgba(40,20,90,0.25),
    0 6px 14px rgba(108,99,255,0.4),
    0 18px 40px rgba(108,99,255,0.3);
  transition: transform 160ms cubic-bezier(.2,.7,.2,1), box-shadow 160ms ease;
}
.cta:hover { transform: translateY(-1px); text-decoration: none; }
.cta:active { transform: translateY(2px); }

/* Glass */
.glass {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 10px 30px rgba(40,20,90,0.06);
}

/* Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Logo */
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  overflow: hidden;
  background: #0a0512;
  box-shadow: 0 4px 12px rgba(108,99,255,0.45), inset 0 1px 0 rgba(255,255,255,0.15), inset 0 0 0 1px rgba(167,139,250,0.25);
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-mark--sm { width: 24px; height: 24px; border-radius: 7px; }

/* Nav */
.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin: 16px auto 0;
  max-width: 1240px;
  padding: 0 24px;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 22px;
  border-radius: 22px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.nav-brand span { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }

/* Hero */
.legal-hero {
  position: relative;
  padding: 80px 24px 40px;
  text-align: center;
  overflow: hidden;
}
.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 18px;
}
.display {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0;
}
.legal-hero h1 {
  font-size: 72px;
  margin: 0 auto 18px;
  max-width: 780px;
}
.reveal-grad {
  background: linear-gradient(135deg, #6c63ff 0%, #a78bfa 50%, #6c63ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-hero .effective {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Body */
.legal-body {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  z-index: 1;
}
.legal-body p {
  font-size: 16.5px;
  line-height: 1.7;
  color: #2a2a3a;
  margin: 0 0 18px;
}
.legal-body h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 56px 0 18px;
  scroll-margin-top: 100px;
}
.legal-body h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 32px 0 12px;
}
.legal-body ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 22px;
}
.legal-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 16.5px;
  line-height: 1.7;
  color: #2a2a3a;
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 14px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a78bfa, #6c63ff);
}
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--brand); }

/* TOC */
.toc {
  position: relative;
  margin: 40px auto 0;
  max-width: 760px;
  padding: 22px 28px;
  border-radius: 18px;
  background: rgba(108,99,255,0.04);
  border: 1px solid rgba(108,99,255,0.12);
}
.toc-title {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.toc ol {
  margin: 0; padding: 0 0 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}
.toc ol li {
  font-size: 14px;
  color: var(--ink);
}
.toc ol li a {
  color: var(--ink);
  font-weight: 500;
}
.toc ol li a:hover { color: var(--brand); }

/* Footer CTA */
.foot-cta {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.foot-cta-slab {
  position: relative;
  border-radius: 32px;
  padding: 56px 40px;
  background: linear-gradient(135deg, #1a1340 0%, #0a0a14 50%, #1f1d3a 100%);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(40,20,90,0.4);
}
.foot-cta-slab h2 {
  font-size: 44px;
  color: #fff;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.foot-cta-slab p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 28px;
}
.foot-cta-slab .cta {
  padding: 16px 26px;
  font-size: 15px;
  border-radius: 16px;
}

/* Footer */
footer.site-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-row {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.footer-brand .name { color: var(--ink); font-weight: 600; font-size: 14px; }
.footer-links {
  display: flex; gap: 24px; font-size: 13px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand); text-decoration: none; }

/* Apple glyph */
.apple-glyph {
  width: 14px; height: 17px;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 720px) {
  .legal-hero { padding: 48px 20px 28px; }
  .legal-hero h1 { font-size: 44px; }
  .legal-body { padding: 24px 20px 60px; }
  .legal-body h2 { font-size: 26px; margin-top: 42px; }
  .legal-body h3 { font-size: 18px; }
  .legal-body p, .legal-body ul li { font-size: 15.5px; }
  .toc ol { grid-template-columns: 1fr; }
  .foot-cta-slab { padding: 40px 24px; border-radius: 24px; }
  .foot-cta-slab h2 { font-size: 30px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .nav-cta-label { display: none; }
}
