:root {
  --primary: #1B3A7A;
  --secondary: #23A2E2;
  --text-dark: #0B1D3C;
  --text-light: #4A5771;
  --orange-color: #F47925;
  --bg-light: #F4F6FA;
  --accent: var(--secondary);
  --cta: var(--orange-color);
  --bg: #0B1D3C;
  --panel: #122A52;
  --text: #f8fbff;
  --muted: #c4d0e0;
  --line: rgba(184, 198, 220, 0.18);
  --shadow: 0 24px 54px rgba(4, 18, 41, 0.34);
  --accent-rgb: 35, 162, 226;
  --cta-rgb: 244, 121, 37;
  --font-heading: "Sora", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.18), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(var(--cta-rgb), 0.08), transparent 24%),
    linear-gradient(135deg, #08172f 0%, #0d2143 52%, #13305f 100%);
  color: var(--text);
  font-family: var(--font-body);
}

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

h1,
h2,
p {
  margin: 0;
}

.legal-page {
  padding: 40px 20px 72px;
}

.legal-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
}

.legal-head {
  margin-top: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: rgba(var(--accent-rgb), 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

h1,
h2 {
  color: var(--text);
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.last-updated,
.legal-copy p {
  color: var(--muted);
}

.legal-copy {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}

.legal-copy section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-copy h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-fab-copy,
.whatsapp-fab-icon {
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.whatsapp-fab-copy {
  max-width: 190px;
  padding: 12px 16px;
  border: 1px solid rgba(var(--cta-rgb), 0.24);
  border-radius: 18px;
  background: rgba(8, 23, 47, 0.94);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  animation: whatsapp-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.whatsapp-fab-copy strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(var(--cta-rgb), 0.86);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.whatsapp-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border: 1px solid rgba(var(--cta-rgb), 0.24);
  border-radius: 50%;
  background: linear-gradient(135deg, #f47925 0%, #ff9a4d 100%);
  color: var(--text-dark);
  animation:
    whatsapp-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
    whatsapp-pulse 2.8s ease-in-out 0.8s infinite;
}

.whatsapp-fab-icon i {
  display: block;
  width: 28px;
  height: 28px;
  font-size: 28px;
  line-height: 28px;
  text-align: center;
}

.whatsapp-fab:hover .whatsapp-fab-copy,
.whatsapp-fab:hover .whatsapp-fab-icon,
.whatsapp-fab:focus-visible .whatsapp-fab-copy,
.whatsapp-fab:focus-visible .whatsapp-fab-icon {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

@keyframes whatsapp-enter {
  0% {
    opacity: 0;
    transform: translateX(18px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes whatsapp-pulse {
  0%,
  100% {
    box-shadow: var(--shadow), 0 0 0 0 rgba(var(--cta-rgb), 0.24);
  }

  50% {
    box-shadow: var(--shadow), 0 0 0 14px rgba(var(--cta-rgb), 0);
  }
}

@media (max-width: 640px) {
  .legal-page {
    padding: 24px 12px 48px;
  }

  .legal-shell {
    padding: 22px;
  }

  .back-link {
    width: 100%;
  }

  .whatsapp-fab {
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }

  .whatsapp-fab-copy {
    max-width: 148px;
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .whatsapp-fab-icon {
    width: 54px;
    height: 54px;
  }
}
