/* =========================================================
   SFDX-Express — shared styles for legal / policy pages
   Design tokens mirror index.html so pages read as one site.
   ========================================================= */
:root {
  --blue: #0ea5e9;
  --blue-deep: #2563eb;
  --cloud: #38bdf8;
  --orange: #f97316;
  --purple: #8b5cf6;
  --ink: #0b1220;
  --ink-2: #0f172a;
  --slate: #64748b;
  --slate-2: #94a3b8;
  --line: rgba(148, 163, 184, 0.16);
  --bg: #f7f9fc;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.28);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: "Sora", "Inter", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
a {
  color: var(--blue-deep);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.wrap {
  width: min(1160px, 92vw);
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(247, 249, 252, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  height: 38px;
  width: auto;
}
.brand span b {
  color: var(--orange);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--slate);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.6);
}
.btn.primary:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--ink);
}

/* ---------- HERO ---------- */
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 44px;
  text-align: center;
  background: linear-gradient(180deg, #eef2fb 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.legal-hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 0;
}
.legal-hero .blob.b1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
  top: -140px;
  left: -60px;
}
.legal-hero .blob.b2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  top: -120px;
  right: -40px;
}
.legal-hero .wrap {
  position: relative;
  z-index: 1;
}
.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  margin: 18px auto 0;
  max-width: 20ch;
}
.updated {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: 999px;
}

/* ---------- LAYOUT ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0 40px;
}
.toc {
  position: sticky;
  top: 96px;
  font-size: 0.9rem;
}
.toc h4 {
  font-family: "Sora", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin: 0 0 14px;
}
.toc a {
  display: block;
  color: var(--slate);
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover {
  color: var(--ink);
  border-left-color: var(--blue);
  text-decoration: none;
}

/* ---------- ARTICLE ---------- */
.legal-article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 46px 46px;
  position: relative;
  overflow: hidden;
  max-width: 820px;
}
.legal-article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--orange));
}
.legal-article .lead {
  font-size: 1.08rem;
  color: var(--slate);
  margin: 34px 0 8px;
}
.legal-article section {
  scroll-margin-top: 90px;
  padding-top: 30px;
}
.legal-article h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.legal-article h2 .num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-deep);
}
.legal-article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 22px 0 6px;
}
.legal-article p {
  margin: 0 0 14px;
  color: #334155;
}
.legal-article ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}
.legal-article ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: #334155;
}
.legal-article ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}
.legal-article ul ul {
  margin-top: 10px;
}
.legal-article strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-article hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 34px 0 0;
}
.callout {
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 0.97rem;
}
.callout strong {
  color: var(--blue-deep);
}
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.07), rgba(139, 92, 246, 0.07));
  border: 1px solid var(--line);
}
.contact-card .k {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-2);
  display: block;
}
.contact-card .v {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- FOOTER ---------- */
footer.site {
  background: var(--ink);
  color: var(--slate-2);
  padding: 56px 0 30px;
  margin-top: 40px;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.foot-top .brand {
  color: #fff;
}
.foot-top .brand:hover {
  text-decoration: none;
}
.foot-tag {
  max-width: 32ch;
  margin-top: 14px;
  font-size: 0.92rem;
}
.socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--slate-2);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.socials a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-color: transparent;
  text-decoration: none;
}
.socials svg {
  width: 20px;
  height: 20px;
}
.foot-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-col h5 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.foot-col a {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--slate-2);
  transition: color 0.2s;
}
.foot-col a:hover {
  color: var(--cloud);
  text-decoration: none;
}
.foot-bottom {
  margin-top: 26px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 40px;
  }
  .toc {
    position: static;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
  }
  .toc a {
    border-left: none;
    padding: 6px 0;
  }
  .legal-article {
    padding: 8px 24px 32px;
  }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    background: rgba(247, 249, 252, 0.98);
    backdrop-filter: blur(14px);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: none;
  }
  .nav-toggle {
    display: block;
  }
}
