/* ── Indigo Money — shared styles ─────────────────────────────── */

/* ── Variables ── */
:root {
  --black:    #1d1d1f;
  --gray:     #6e6e73;
  --subtle:   #86868b;
  --light:    #f5f5f7;
  --white:    #ffffff;
  --dark:     #000000;
  --accent:   #5856dd;
  --accent-2: #4240c4;
  --border:   rgba(0,0,0,0.08);
  --border-d: rgba(255,255,255,0.10);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.022em;
  color: var(--black);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ── Nav ── */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  height: 44px;
  background: rgba(18,18,20,0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  will-change: transform;
  transform: translateZ(0);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.nav-links { display: flex; align-items: center; }
.nav-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  padding: 0 11px;
  line-height: 44px;
  white-space: nowrap;
  transition: color 0.12s;
  text-decoration: none;
}
.nav-links a:hover { color: #fff; text-decoration: none; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 500;
  border-radius: 980px;
  padding: 0 14px;
  height: 28px;
  line-height: 28px !important;
  margin: 8px 0 8px 4px;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent-2); color: #fff !important; text-decoration: none; }

/* ── Page header (inner pages) ── */
.page-header,
.legal-header {
  padding: 88px 22px 52px;
  background: var(--light);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1,
.legal-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.06;
  margin-bottom: 14px;
}

.page-header p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

.legal-header .updated {
  font-size: 14px;
  color: var(--subtle);
}

/* ── Footer ── */
#footer {
  background: var(--light);
  border-top: 1px solid var(--border);
}

.footer-top {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 22px 24px;
  border-bottom: 1px solid var(--border);
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-grid h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--black); margin-bottom: 14px; }
.footer-grid p, .footer-grid li, .footer-grid a { font-size: 13px; color: var(--subtle); line-height: 1.65; }
.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { transition: color 0.12s; }
.footer-grid a:hover { color: var(--black); text-decoration: none; }

.footer-bottom {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p, .footer-bottom a { font-size: 12px; color: var(--subtle); }
.footer-bottom a:hover { color: var(--black); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Mobile nav ── */
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; cursor: pointer; background: none; border: none; padding: 0 11px; flex-shrink: 0; }
.nav-burger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.85); border-radius: 2px; transition: transform 0.22s, opacity 0.22s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; position: fixed; inset: 44px 0 auto 0; z-index: 9998; background: rgba(18,18,20,0.97); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 15px 22px; font-size: 16px; color: rgba(255,255,255,0.82); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a:active { color: #fff; background: rgba(255,255,255,0.04); text-decoration: none; }
.nav-mobile .nav-cta-mobile { color: #fff !important; font-weight: 600; }
@media (max-width: 768px) { .nav-links { display: none; } .nav-burger { display: flex; } }
