/* ============================================================
   Secure Capture — shared styles for the legal pages
   (privacy.html, terms.html). Matches the marketing design tokens.
   ============================================================ */
@font-face {
  font-family: "Stack Sans Headline";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/stacksansheadline/v1/1Ptyg9jZXvmMnkLnuURbaukKZJTyrDV38aevGw.woff2) format("woff2");
}

:root {
  --bg: #07080a;
  --t1: #f4f6fa;
  --t2: rgba(238, 242, 250, 0.66);
  --t3: rgba(238, 242, 250, 0.42);
  --blue: #2f80ff;
  --blue-bright: #5b9cff;
  --emerald: #12c98a;
  --emerald-br: #3ee0a6;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.085);
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-2: rgba(255, 255, 255, 0.16);
  --edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --font: "Inter", -apple-system, system-ui, sans-serif;
  --display: "Stack Sans Headline", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ambient glow */
.glow {
  position: fixed;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  height: 540px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(47, 128, 255, 0.14), rgba(18, 201, 138, 0.06) 52%, transparent 80%);
  filter: blur(48px);
}

/* ---------- top bar ---------- */
.legal-nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  margin-top: 14px;
}
.legal-nav-bar {
  width: 100%;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px 9px 16px;
  border-radius: 16px;
  background: rgba(12, 13, 17, 0.72);
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.72), var(--edge-light);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--t1);
}
.legal-brand img { width: 30px; height: 30px; object-fit: contain; }
.legal-brand b { color: var(--blue-bright); font-weight: 600; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  background: var(--glass);
  border: 1px solid var(--hairline);
  box-shadow: var(--edge-light);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.legal-back:hover { color: var(--t1); background: var(--glass-2); transform: translateX(-2px); }

/* ---------- document ---------- */
.legal-wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 22px 40px;
}
.legal-head { text-align: center; margin-bottom: 48px; }
.legal-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald-br);
  margin-bottom: 14px;
}
.legal-title {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.04;
}
.legal-updated {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  background: var(--glass);
  border: 1px solid var(--hairline);
  box-shadow: var(--edge-light);
}
.legal-note {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--t3);
}

/* glass document card */
.legal-doc {
  background: linear-gradient(180deg, rgba(18, 19, 25, 0.82), rgba(12, 13, 17, 0.82));
  border: 1px solid var(--hairline);
  border-radius: 24px;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.85), var(--edge-light);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  padding: clamp(26px, 4vw, 48px);
  counter-reset: sec;
}
.legal-section { padding: 26px 0; border-top: 1px solid var(--hairline); }
.legal-section:first-child { padding-top: 0; border-top: none; }
.legal-section h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(20px, 2.6vw, 26px);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal-section h2::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-bright);
  background: rgba(47, 128, 255, 0.12);
  border: 1px solid rgba(47, 128, 255, 0.3);
  border-radius: 8px;
  padding: 4px 9px;
  flex: none;
  transform: translateY(-2px);
}
.legal-section p {
  color: var(--t2);
  font-size: 16px;
  line-height: 1.68;
  margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 4px;
}
.legal-section li {
  position: relative;
  padding-left: 26px;
  color: var(--t2);
  font-size: 15.5px;
  line-height: 1.6;
}
.legal-section li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-br);
  box-shadow: 0 0 0 4px rgba(18, 201, 138, 0.14);
}
.legal-section a { color: var(--blue-bright); }
.legal-section a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.legal-foot {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 26px 22px 40px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  color: var(--t3);
}
.legal-foot-links { display: flex; gap: 18px; }
.legal-foot a { color: var(--t2); transition: color 0.2s var(--ease); }
.legal-foot a:hover { color: var(--blue-bright); }

@media (max-width: 560px) {
  .legal-foot { flex-direction: column; align-items: flex-start; }
}
