:root {
  --primary: #1321ed;
  --primary-dark: #09127a;
  --secondary: #4d5bff;
  --accent: #f5c400;
  --ink: #111827;
  --muted: #667085;
  --line: #e6eaf2;
  --white: #ffffff;
  --soft: #f5f7ff;
  --soft-2: #eef2ff;
  --dark: #071033;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 18px 45px rgba(19, 33, 237, 0.12);
  --transition: 220ms ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(230, 234, 242, 0.85);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(19, 33, 237, 0.22);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid rgba(19, 33, 237, 0.16);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 78px;
  background:
    radial-gradient(circle at top left, rgba(19, 33, 237, 0.14), transparent 34%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% auto;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 196, 0, 0.34), rgba(19, 33, 237, 0.06) 52%, transparent 70%);
  pointer-events: none;
}

.legal-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.legal-hero h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  color: var(--dark);
  margin-bottom: 24px;
}

.subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.legal-summary {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(230, 234, 242, 0.95);
  box-shadow: var(--shadow);
}

.legal-summary span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.legal-summary strong {
  display: block;
  color: var(--dark);
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.legal-summary p {
  color: var(--muted);
}

.legal-section {
  padding: 72px 0 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.legal-index {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.legal-index p {
  margin-bottom: 8px;
  color: var(--dark);
  font-weight: 800;
}

.legal-index a {
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}

.legal-index a:hover {
  background: var(--white);
  color: var(--primary);
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.legal-block {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
}

.legal-block + .legal-block {
  border-top: 1px solid var(--line);
}

.block-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 800;
}

.legal-block h2 {
  color: var(--dark);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}

.legal-block p {
  color: var(--muted);
  margin-bottom: 16px;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block strong {
  color: var(--dark);
}

.legal-block a:not(.btn) {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(19, 33, 237, 0.25);
}

.contact-block {
  background:
    radial-gradient(circle at top right, rgba(245, 196, 0, 0.20), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.footer {
  background: #071033;
  color: var(--white);
  padding: 58px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr;
  gap: 36px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.footer p,
.copyright {
  color: rgba(255, 255, 255, 0.66);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}

.footer a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--white);
}

.copyright {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.float-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    font-size: 1.65rem;
    box-shadow: 0 18px 36px rgba(37, 211, 102, 0.35);
    z-index: 60;
}

.cookie-container {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(7, 16, 51, 0.96);
  color: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.cookie-container p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.cookie-container a {
  color: var(--accent);
  font-weight: 700;
}

.cookie-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #111827;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-container.hidden {
  display: none;
}

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

  .legal-hero-grid,
  .legal-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-summary {
    max-width: 520px;
  }

  .legal-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-index p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 70px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav > .btn {
    padding: 10px 15px;
    font-size: 0.88rem;
  }

  .legal-hero {
    padding: 56px 0 52px;
  }

  .legal-index {
    grid-template-columns: 1fr;
  }

  .contact-actions,
  .btn {
    width: 100%;
  }

  .cookie-container {
    flex-direction: column;
    align-items: stretch;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-btn {
    width: 100%;
  }

  .float-whatsapp {
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
  }
}
