/* LuminaPay Legal Center — unified warm cream + teal editorial theme */
:root {
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --cream: #FBF7F0;
  --cream-2: #F5EFE4;
  --white: #FFFFFF;
  --teal: #0D9488;
  --teal-d: #0F766E;
  --teal-dd: #115E59;
  --teal-50: #F0FDFA;
  --teal-100: #CCFBF1;
  --amber-50: #FFF7E6;
  --amber-border: #FCD34D;
  --amber-ink: #92400E;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 4px 12px rgba(15,23,42,.05);
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-d); }
.topbar {
  background: rgba(251,247,240,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar-inner {
  max-width: 920px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
}
.brand img { border-radius: 8px; }
.brand-badge {
  font-family: var(--font); font-size: .74rem; font-weight: 700;
  background: var(--teal-100); color: var(--teal-dd);
  padding: 2px 9px; border-radius: 999px;
}
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-size: .88rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--cream-2); color: var(--ink); }
.nav-links a.active { background: var(--teal-d); color: #fff; font-weight: 600; }

main { max-width: 920px; margin: 36px auto 0; padding: 0 20px 64px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--teal-d);
  margin-bottom: 18px;
}
.back-link:hover { text-decoration: underline; }
.doc-shell {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-sm);
}
.page-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.35rem); letter-spacing: -.03em; line-height: 1.15;
  color: var(--ink); margin-bottom: 8px;
}
.meta-text { color: var(--muted); font-size: .9rem; }
.subtitle { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 28px; }

.callout {
  border-radius: 16px; padding: 20px 22px; margin-bottom: 30px;
  border: 1px solid var(--teal-100); background: var(--teal-50);
}
.callout-warn {
  border-color: var(--amber-border); background: var(--amber-50);
}
.callout-title {
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  color: var(--teal-dd); margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.callout-warn .callout-title { color: var(--amber-ink); }
.callout p { margin: 0; font-size: .95rem; color: var(--ink-2); }

.content section { margin-bottom: 28px; }
.content h2 {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
  color: var(--ink); margin-bottom: 10px; letter-spacing: -.015em;
}
.content p, .content ul, .content ol { color: var(--ink-2); font-size: .97rem; margin-bottom: 12px; }
.content ul, .content ol { padding-left: 1.4rem; }
.content li { margin-bottom: 6px; }
.content strong { color: var(--ink); }
.code-tag {
  background: var(--teal-50); color: var(--teal-dd); border: 1px solid var(--teal-100);
  padding: 1px 6px; border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em;
}

.step-card {
  background: var(--cream); border: 1px solid var(--cream-2); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: flex-start; gap: 14px; color: var(--ink-2); font-size: .95rem;
}
.step-number {
  background: var(--teal-d); color: #fff; width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: .85rem; flex: none;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 28px; }
.card {
  background: var(--cream); border: 1px solid var(--cream-2); border-radius: 16px;
  padding: 22px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: var(--shadow-sm); }
.card-icon { font-size: 1.65rem; margin-bottom: 10px; }
.card-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.card-desc { font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.card-link { font-size: .88rem; font-weight: 700; color: var(--teal-d); }

.contact-box {
  background: var(--cream); border: 1px solid var(--cream-2); border-radius: 16px;
  padding: 22px; margin-top: 32px;
}
.contact-box h2 { border: 0; margin-bottom: 8px; }
.contact-box p:last-child { margin-bottom: 0; }

footer {
  max-width: 920px; margin: 0 auto; padding: 20px 20px 44px;
  border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--teal-d); text-decoration: underline; }
