/* ============================================================
   MAGSTADT CONSULTING — LEGAL PAGES SHELL
   Shared base for privacy.html and terms.html (production legal
   pages linked from index.html footer). Page-specific styles stay
   inline in each file.
   ============================================================ */

:root {
  --page-bg:   #F6F4F0;
  --page-bg-2: #EFEDE7;
  --surface:   #FFFFFF;
  --ink:       #18181B;
  --body:      #3D3A36;
  --muted:     rgba(61,58,54,0.55);
  --line:      rgba(24,24,27,0.08);
  --line-2:    rgba(24,24,27,0.14);
  --dot:       #0EA5E9;
  --amber:     #E8941A;

  --g-blue:    #3B82F6;
  --g-cyan:    #22D3EE;
  --g-magenta: #D946EF;

  --g-blue-soft:    #BFDBFE;
  --g-cyan-soft:    #A5F3FC;
  --g-magenta-soft: #F5D0FE;

  --font-display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --font-body: "DM Sans", Inter, system-ui, sans-serif;

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--page-bg);
  color: var(--body);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(ellipse 680px 440px at 94% 6%,  rgba(165,243,252,0.30), transparent 70%),
    radial-gradient(ellipse 520px 360px at 6% 18%, rgba(191,219,254,0.26), transparent 70%),
    radial-gradient(ellipse 400px 300px at 52% 96%, rgba(245,208,254,0.20), transparent 70%);
  filter: blur(64px) saturate(1.1);
}

main { position: relative; z-index: 1; }

.container { width: min(1180px, 92%); margin-inline: auto; }

section { padding: clamp(72px, 10vw, 132px) 0; position: relative; }
.sec-light { background: var(--page-bg); }
.sec-stripe { background: var(--page-bg-2); }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
}
h1 {
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800; line-height: 1.15;
}
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 900; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--dot);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 999px; background: var(--dot);
}

.lede { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--body); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 800; font-size: 14px; padding: 13px 26px; border-radius: 999px; text-decoration: none; cursor: pointer; border: none; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.btn-primary { background: linear-gradient(135deg, var(--g-blue), var(--g-cyan)); color: #fff; box-shadow: 0 8px 22px rgba(59,130,246,0.30), 0 2px 6px rgba(59,130,246,0.18); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(59,130,246,0.38), 0 2px 6px rgba(59,130,246,0.22); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 8px rgba(24,24,27,0.04), 0 8px 24px rgba(24,24,27,0.04);
}

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed;
  top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 200;
  width: max-content; max-width: calc(100% - 24px);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: rgba(246,244,240,0.82);
  border: 1px solid rgba(24,24,27,0.10);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 4px 24px rgba(24,24,27,0.06),
    0 1px 2px rgba(24,24,27,0.04),
    0 0 0 1px rgba(255,255,255,0.72) inset;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  padding-right: 20px; border-right: 1px solid rgba(24,24,27,0.10);
  margin-right: 4px;
}
.nav-brand-mark {
  width: 22px; height: 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--g-blue), var(--g-cyan) 55%, var(--g-magenta));
  box-shadow: 0 0 0 3px rgba(255,255,255,0.85), 0 4px 10px rgba(59,130,246,0.25);
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  color: var(--muted); text-decoration: none;
  padding: 6px 0 4px;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); border-bottom-color: var(--dot); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--g-blue), var(--g-cyan));
  color: #fff; text-decoration: none;
  font-weight: 800; font-size: 13px;
  padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(59,130,246,0.28), 0 1px 2px rgba(59,130,246,0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(59,130,246,0.36); }

.nav-burger {
  display: none;
  background: transparent; border: 0; cursor: pointer; padding: 8px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px; margin: 5px 0;
  background: var(--ink); border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Footer ---------- */
footer { padding: 40px 0 60px; border-top: 1px solid var(--line); background: var(--page-bg-2); position: relative; z-index: 1; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot a { color: var(--body); text-decoration: none; margin-left: 18px; }
.foot a:hover { color: var(--ink); }
.foot .legal { font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  html { scroll-padding-top: 80px; }
  .nav-wrap { width: calc(100% - 24px); }
  .nav { width: 100%; gap: 8px; padding: 10px 10px 10px 18px; }
  .nav-brand { padding-right: 12px; margin-right: 0; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(246,244,240,0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 8px;
    box-shadow: 0 8px 28px rgba(24,24,27,0.10);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links .nav-link {
    padding: 12px 14px; border-radius: 10px; border-bottom: none;
  }
  .nav-cta { padding: 9px 14px; font-size: 12px; }
  section { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
