/* ==========================================================================
   LifeNexa.pl — promotional landing page
   ========================================================================== */

:root {
  --bg: #fefcff;
  --bg-soft: #f6f3fb;
  --surface: #ffffff;
  --surface-tint: #f5f2fb;
  --surface-border: rgba(30, 27, 46, 0.08);
  --surface-border-strong: rgba(30, 27, 46, 0.16);
  --text: #1e1b2e;
  --text-muted: #625f77;
  --text-faint: #938fa8;

  --brand-1: #8b5cf6;
  --brand-2: #38bdf8;
  --brand-text: #7c3aed;
  --brand-gradient: linear-gradient(135deg, var(--brand-1), var(--brand-2));

  --nexora-1: #a8670f;
  --nexora-2: #f2c14e;
  --growme-1: #15803d;
  --growme-2: #4ade80;
  --guardian-1: #047857;
  --guardian-2: #34d399;
  --guardian-dark: #0f231c;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --container: 1160px;
  --shadow-lg: 0 30px 60px -25px rgba(30, 27, 46, 0.22);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin: 0 0 14px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0;
}

/* Background glow */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 15% -10%, rgba(139, 92, 246, 0.13), transparent 60%),
    radial-gradient(800px 600px at 90% 8%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(900px 700px at 50% 115%, rgba(34, 197, 94, 0.09), transparent 60%),
    var(--bg);
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(254, 252, 255, 0.78);
  border-bottom: 1px solid var(--surface-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.brand-mark { width: 30px; height: 30px; flex: none; }

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a:hover, .nav a:focus-visible { color: var(--text); }

.nav-cta { display: inline-flex; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-tint);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 4px;
}

.lang-switch span,
.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1;
  color: var(--text-faint);
}

.lang-switch .lang-current {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(30, 27, 46, 0.1);
}

.lang-switch a {
  transition: color 0.2s ease;
}

.lang-switch a:hover, .lang-switch a:focus-visible {
  color: var(--brand-text);
}

@media (max-width: 860px) {
  .nav { display: none; }
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #1a1330;
  box-shadow: 0 14px 30px -12px rgba(139, 92, 246, 0.45);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(139, 92, 246, 0.55); }

.btn-outline {
  background: transparent;
  border-color: var(--surface-border-strong);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--brand-text); color: var(--brand-text); }

.btn-ghost {
  background: var(--surface-tint);
  border-color: var(--surface-border);
  color: var(--text);
  padding: 10px 20px;
  font-size: 14px;
}

.btn-ghost:hover { border-color: var(--surface-border-strong); }

@media (max-width: 860px) {
  .nav-cta.btn-ghost { padding: 9px 16px; font-size: 13px; }
}

.btn-app {
  width: 100%;
  background: transparent;
  border-color: var(--surface-border-strong);
  color: var(--text);
  margin-top: 28px;
  padding: 14px 22px;
}

.btn-app svg { width: 18px; height: 18px; transition: transform 0.2s ease; }

.app-card:hover .btn-app { border-color: var(--accent-1); color: var(--accent-1); }
.app-card:hover .btn-app svg { transform: translateX(3px); }

/* ---------------- Hero ---------------- */

.hero { padding: 76px 0 88px; overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
}

.hero-copy { max-width: 600px; }

.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .br-desktop { display: none; }
  .hero { padding: 48px 0 40px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; }
  .hero-phone-wrap { order: -1; margin: 0 auto 12px; }
}

/* ---------------- Hero phone mockup ---------------- */

.hero-phone-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.phone-glow {
  position: absolute;
  inset: 10% 8%;
  background:
    radial-gradient(220px 220px at 30% 20%, rgba(168, 103, 15, 0.22), transparent 65%),
    radial-gradient(220px 220px at 75% 75%, rgba(21, 128, 61, 0.18), transparent 65%),
    radial-gradient(220px 220px at 70% 15%, rgba(4, 120, 87, 0.18), transparent 65%);
  filter: blur(6px);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 260px;
  padding: 14px;
  background: linear-gradient(155deg, #ffffff, #ece8f7 55%, #e3ddf2);
  border-radius: 42px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  box-shadow:
    0 40px 70px -28px rgba(76, 29, 149, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  animation: phone-float 6.5s ease-in-out infinite;
}

.phone-frame::before,
.phone-frame::after {
  content: "";
  position: absolute;
  background: linear-gradient(155deg, #ffffff, #e3ddf2);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.phone-frame::before {
  left: -3px;
  top: 92px;
  width: 3px;
  height: 46px;
  border-radius: 2px 0 0 2px;
}

.phone-frame::after {
  right: -3px;
  top: 130px;
  width: 3px;
  height: 70px;
  border-radius: 0 2px 2px 0;
}

.phone-screen {
  position: relative;
  background: linear-gradient(180deg, #fffdf9, #f6f3fb);
  border-radius: 30px;
  padding: 18px 16px 22px;
  overflow: hidden;
  min-height: 420px;
}

.phone-notch {
  width: 84px;
  height: 22px;
  background: #100e18;
  border-radius: 999px;
  margin: 0 auto 18px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.phone-greeting-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 2px;
}

.phone-greeting {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 18px;
}

.phone-apps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.phone-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: 0 6px 14px rgba(30, 27, 46, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.phone-app:hover, .phone-app:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 22px rgba(30, 27, 46, 0.12);
  border-color: var(--app-c1, var(--brand-text));
}

.phone-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-c1);
  background: linear-gradient(135deg, color-mix(in srgb, var(--app-c1) 18%, white), color-mix(in srgb, var(--app-c2) 12%, white));
}

.phone-app-icon svg { width: 22px; height: 22px; }

.phone-app-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
}

.phone-app-nexora { --app-c1: var(--nexora-1); --app-c2: var(--nexora-2); }
.phone-app-growme { --app-c1: var(--growme-1); --app-c2: var(--growme-2); }
.phone-app-guardian { --app-c1: var(--guardian-2); --app-c2: var(--guardian-2); }
.phone-app-guardian .phone-app-icon {
  background: linear-gradient(135deg, var(--guardian-dark), #16352a);
  color: var(--guardian-2);
}

.phone-app-soon {
  cursor: default;
  opacity: 0.7;
}

.phone-app-soon .phone-app-icon {
  color: var(--text-faint);
  background: var(--surface-tint);
  border: 1px dashed var(--surface-border-strong);
}

.phone-app-soon .phone-app-label { color: var(--text-faint); }

.phone-home-indicator {
  width: 100px;
  height: 4px;
  border-radius: 999px;
  background: rgba(30, 27, 46, 0.18);
  margin: 18px auto 0;
}

.hero-phone-caption {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 14px 0 0;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-14px) rotate(1.2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-frame { animation: none; }
}

/* ---------------- Ekosystem / pillars ---------------- */

.ekosystem { padding: 40px 0 96px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 2px 10px rgba(30, 27, 46, 0.04);
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-text);
  background: rgba(139, 92, 246, 0.1);
  margin-bottom: 18px;
}

.pillar-icon svg { width: 22px; height: 22px; }

.pillar h3 { margin: 0 0 8px; font-size: 18px; }
.pillar p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------------- Apps ---------------- */

.apps { padding: 40px 0 100px; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .app-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: 0 2px 14px rgba(30, 27, 46, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--surface-border-strong);
  box-shadow: var(--shadow-lg);
}

.app-nexora { --accent-1: var(--nexora-1); --accent-2: var(--nexora-2); }
.app-growme { --accent-1: var(--growme-1); --accent-2: var(--growme-2); }
.app-guardian { --accent-1: var(--guardian-1); --accent-2: var(--guardian-2); }

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-1), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.app-card:hover::before { opacity: 1; }

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-1) 16%, white), color-mix(in srgb, var(--accent-2) 12%, white));
  border: 1px solid color-mix(in srgb, var(--accent-1) 30%, transparent);
}

.app-icon svg { width: 28px; height: 28px; }

.app-guardian .app-icon {
  background: linear-gradient(135deg, var(--guardian-dark), #16352a);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--guardian-2);
}

.app-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: color-mix(in srgb, var(--accent-1) 12%, white);
  border: 1px solid color-mix(in srgb, var(--accent-1) 28%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
}

.app-card h3 {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.app-tagline {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-1);
  margin: 0 0 14px;
}

.app-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.app-for {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13.5px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--accent-1) 7%, white);
  border: 1px solid color-mix(in srgb, var(--accent-1) 16%, transparent);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 0 0 20px;
}

.app-for strong {
  flex: none;
  color: var(--accent-1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-features li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.app-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-1) 16%, white);
  border: 1px solid var(--accent-1);
}

.app-features li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
}

/* ---------------- Dla kogo (reuses .pillars/.pillar look) ---------------- */

.segments {
  padding: 40px 0 96px;
}

/* ---------------- Jak to działa ---------------- */

.steps-section {
  padding: 40px 0 100px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 14px rgba(30, 27, 46, 0.05);
  overflow: hidden;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  padding: 36px 30px;
  counter-increment: step;
}

.step + .step {
  border-top: 1px solid var(--surface-border);
}

@media (min-width: 861px) {
  .step + .step { border-top: none; border-left: 1px solid var(--surface-border); }
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  color: #1a1330;
  background: var(--brand-gradient);
}

.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ---------------- FAQ ---------------- */

.faq-section { padding: 40px 0 100px; }

.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 4px 24px;
  box-shadow: 0 2px 10px rgba(30, 27, 46, 0.04);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-tint);
  color: var(--brand-text);
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-icon svg { width: 14px; height: 14px; }

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--brand-gradient);
  color: #1a1330;
}

.faq-answer {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------------- Wkrótce ---------------- */

.wkrotce {
  padding: 20px 0 100px;
}

.wkrotce-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: 0 2px 14px rgba(30, 27, 46, 0.05);
}

.wkrotce-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-text);
  background: rgba(139, 92, 246, 0.1);
}

.wkrotce-icon svg { width: 26px; height: 26px; }

.wkrotce h2 { font-size: 26px; margin: 0 0 14px; }
.wkrotce p { color: var(--text-muted); font-size: 15.5px; margin: 0; }

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .brand { margin-bottom: 12px; }

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 260px;
  margin: 0;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a, .footer-col span {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--brand-text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--surface-border);
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-legal {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------------- Reveal-on-scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Legal / content pages ---------------- */

.legal-page { padding: 64px 0 100px; }

.legal-header { max-width: 700px; margin: 0 0 48px; }

.legal-updated {
  font-size: 13.5px;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.legal-back:hover { color: var(--brand-text); }
.legal-back svg { width: 16px; height: 16px; }

.legal-body {
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: 0 2px 14px rgba(30, 27, 46, 0.05);
}

@media (max-width: 640px) {
  .legal-body { padding: 32px 24px; }
}

.legal-body h2 {
  font-size: 19px;
  margin: 32px 0 12px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p, .legal-body li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-body p { margin: 0 0 16px; }

.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }

.legal-body a { color: var(--brand-text); font-weight: 600; }
.legal-body a:hover { text-decoration: underline; }

.legal-body strong { color: var(--text); }

/* ---------------- 404 ---------------- */

.notfound-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.notfound-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.notfound-code {
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 8px;
}

.notfound-inner h1 {
  font-size: 26px;
  margin: 0 0 14px;
}

.notfound-inner p {
  color: var(--text-muted);
  font-size: 15.5px;
  margin: 0 0 32px;
}

.notfound-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
