:root {
  --bg: #070b17;
  --soft: #10162b;
  --text: #f7f8ff;
  --muted: #aeb7cc;
  --border: rgba(255, 255, 255, 0.11);
  --pink: #ff2d87;
  --violet: #8f3dff;
  --blue: #2d6cff;
  --cyan: #19c8f2;
  --grad: linear-gradient(
    135deg,
    var(--pink),
    var(--violet) 52%,
    var(--cyan)
  );
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.38);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;

  color: var(--text);

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(143, 61, 255, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 35%,
      rgba(25, 200, 242, 0.1),
      transparent 30%
    ),
    var(--bg);

  line-height: 1.65;
}

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

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

.legal-container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;

  padding: 14px 0;

  border-bottom: 1px solid var(--border);

  background: rgba(7, 11, 23, 0.88);
  backdrop-filter: blur(18px);
}

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

.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-brand img {
  width: 48px;
  height: 48px;

  border-radius: 50%;
  object-fit: cover;
}

.legal-brand div {
  display: grid;
}

.legal-brand strong {
  font-size: 1rem;
}

.legal-brand small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 0 18px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.05);

  font-size: 0.88rem;
  font-weight: 800;

  transition:
    transform 0.2s,
    border-color 0.2s;
}

.legal-back:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.legal-hero {
  padding: 130px 0 80px;
  text-align: center;
}

.legal-hero .legal-container {
  max-width: 900px;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: #c7d0e4;

  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-eyebrow::before {
  content: "";

  width: 34px;
  height: 2px;

  background: var(--grad);
}

.legal-hero h1 {
  margin-top: 20px;

  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.legal-hero p {
  max-width: 760px;
  margin: 26px auto 0;

  color: var(--muted);

  font-size: 1.08rem;
}

.legal-update {
  display: inline-grid;
  gap: 2px;

  margin-top: 34px;
  padding: 13px 19px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.045);
}

.legal-update span {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-update strong {
  font-size: 0.9rem;
}

.legal-section {
  padding: 30px 0 110px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.legal-card {
  display: flex;
  flex-direction: column;
  min-height: 370px;

  padding: 34px;

  border: 1px solid var(--border);
  border-radius: 28px;

  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(143, 61, 255, 0.14),
      transparent 33%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.018)
    );

  box-shadow: var(--shadow);

  transition:
    transform 0.25s,
    border-color 0.25s;
}

.legal-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-7px);
}

.legal-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 21px;

  background: rgba(255, 255, 255, 0.07);

  font-size: 1.9rem;
}

.legal-card-label {
  margin-top: 30px;

  color: #bfc9dc;

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-card h2 {
  margin-top: 10px;

  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.legal-card p {
  margin-top: 18px;
  color: var(--muted);
}

.legal-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  margin-top: auto;
  padding: 0 20px;

  border-radius: 999px;

  background: var(--grad);

  font-weight: 850;

  box-shadow: 0 15px 38px rgba(143, 61, 255, 0.25);

  transition: transform 0.2s;
}

.legal-card a:hover {
  transform: translateY(-2px);
}

.legal-trust {
  padding: 0 0 110px;
}

.legal-trust-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;

  padding: 50px;

  border: 1px solid var(--border);
  border-radius: 32px;

  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(25, 200, 242, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at 5% 95%,
      rgba(255, 45, 135, 0.14),
      transparent 30%
    ),
    #10172d;

  box-shadow: var(--shadow);
}

.legal-trust-card h2 {
  max-width: 760px;
  margin-top: 15px;

  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.legal-trust-card p {
  margin-top: 16px;
  color: var(--muted);
}

.legal-trust-card > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 0 22px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.055);

  font-weight: 800;
  white-space: nowrap;
}

.legal-footer {
  padding: 38px 0;

  border-top: 1px solid var(--border);

  background: rgba(0, 0, 0, 0.15);
}

.legal-footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  align-items: center;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;

  color: var(--muted);

  font-size: 0.85rem;
}

.legal-footer-links a:hover {
  color: var(--text);
}

.legal-footer-content > p {
  grid-column: 1 / -1;

  padding-top: 20px;

  border-top: 1px solid var(--border);

  color: #8995ad;

  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .legal-hero {
    padding: 95px 0 60px;
  }

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

  .legal-card {
    min-height: 340px;
  }

  .legal-trust-card {
    grid-template-columns: 1fr;
    padding: 38px 28px;
  }

  .legal-trust-card > a {
    width: fit-content;
  }

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

  .legal-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .legal-container {
    width: min(calc(100% - 28px), var(--max));
  }

  .legal-nav {
    align-items: flex-start;
  }

  .legal-brand img {
    width: 43px;
    height: 43px;
  }

  .legal-back {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.75rem;
  }

  .legal-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .legal-card {
    min-height: auto;
    padding: 28px 22px;
  }

  .legal-card a {
    margin-top: 32px;
  }

  .legal-trust-card {
    padding: 32px 22px;
  }
}
/* =========================================================
   DOCUMENTOS LEGALES
========================================================= */

.legal-document-hero {
  padding: 115px 0 70px;
  text-align: center;
}

.legal-document-heading {
  max-width: 900px;
}

.legal-document-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 30px auto 0;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.07);

  font-size: 2.1rem;

  box-shadow: var(--shadow);
}

.legal-document-heading h1 {
  margin-top: 24px;

  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.legal-document-heading > p {
  max-width: 760px;
  margin: 25px auto 0;

  color: var(--muted);

  font-size: 1.08rem;
}

.legal-document-section {
  padding: 20px 0 110px;
}

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

.legal-document-index {
  position: sticky;
  top: 105px;

  padding: 25px;

  border: 1px solid var(--border);
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
}

.legal-document-index > span {
  display: block;

  margin-bottom: 17px;

  color: #cbd4e7;

  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-document-index nav {
  display: grid;
  gap: 3px;
}

.legal-document-index a {
  padding: 9px 11px;

  border-radius: 11px;

  color: var(--muted);

  font-size: 0.82rem;

  transition:
    color 0.2s,
    background 0.2s;
}

.legal-document-index a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.legal-document {
  min-width: 0;

  padding: 44px;

  border: 1px solid var(--border);
  border-radius: 30px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.018)
    );

  box-shadow: var(--shadow);
}

.legal-document section {
  scroll-margin-top: 120px;
}

.legal-document section + section {
  margin-top: 62px;
  padding-top: 62px;

  border-top: 1px solid var(--border);
}

.legal-section-number {
  display: inline-flex;

  color: #aab7d1;

  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-document h2 {
  margin-top: 10px;

  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.legal-document h3 {
  margin-top: 30px;

  color: #eef2fb;

  font-size: 1.12rem;
}

.legal-document p {
  margin-top: 17px;
  color: var(--muted);
}

.legal-document ul {
  display: grid;
  gap: 11px;

  margin-top: 20px;
  padding-left: 0;

  list-style: none;
}

.legal-document li {
  position: relative;
  padding-left: 31px;

  color: #d4dbea;
}

.legal-document li::before {
  content: "✓";

  position: absolute;
  top: 1px;
  left: 0;

  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;

  border-radius: 50%;

  background: var(--grad);

  color: #ffffff;

  font-size: 0.65rem;
  font-weight: 900;
}

.legal-highlight {
  margin-top: 26px;
  padding: 20px 22px;

  border: 1px solid rgba(25, 200, 242, 0.24);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(25, 200, 242, 0.09),
      rgba(143, 61, 255, 0.07)
    );
}

.legal-highlight strong {
  font-size: 0.95rem;
}

.legal-inline-link {
  display: inline-flex;

  margin-top: 22px;

  color: #ffffff;

  font-weight: 850;
}

.legal-inline-link:hover {
  text-decoration: underline;
}

.legal-contact-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;

  margin-top: 26px;
}

.legal-contact-card > div {
  display: grid;
  gap: 5px;

  padding: 20px;

  border: 1px solid var(--border);
  border-radius: 17px;

  background: rgba(255, 255, 255, 0.04);
}

.legal-contact-card span {
  color: var(--muted);

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-contact-card a {
  font-weight: 850;
}

.legal-document-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  margin-top: 65px;
  padding-top: 30px;

  border-top: 1px solid var(--border);
}

.legal-document-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 18px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.045);

  font-size: 0.85rem;
  font-weight: 850;
}

.legal-document-navigation a:last-child {
  border: 0;
  background: var(--grad);
}

@media (max-width: 900px) {
  .legal-document-layout {
    grid-template-columns: 1fr;
  }

  .legal-document-index {
    position: static;
  }

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

@media (max-width: 560px) {
  .legal-document-hero {
    padding: 90px 0 55px;
  }

  .legal-document-heading h1 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

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

  .legal-document {
    padding: 30px 21px;
    border-radius: 24px;
  }

  .legal-document section + section {
    margin-top: 48px;
    padding-top: 48px;
  }

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

  .legal-document-navigation {
    display: grid;
  }

  .legal-document-navigation a {
    width: 100%;
  }
}