
/* Elementos legales añadidos sin modificar los estilos funcionales existentes. */
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px 14px;
  max-width: 620px;
}

.footer-legal-links a,
.footer-cookie-settings {
  color: #d1d1d6;
  font: inherit;
  font-size: .84rem;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .25);
  text-underline-offset: 3px;
}

.footer-legal-links a:hover,
.footer-cookie-settings:hover {
  color: #ffffff;
}

.footer-cookie-settings {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147482500;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  background: rgba(20, 20, 24, .98);
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.cookie-banner p {
  max-width: 760px;
  color: #d7d7dc;
  font-size: .9rem;
  line-height: 1.55;
}

.cookie-banner a,
.cookie-modal a {
  color: #c9bcff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions,
.cookie-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 11px;
  border: 1px solid transparent;
  font: inherit;
  font-size: .88rem;
  font-weight: 750;
  cursor: pointer;
}

.cookie-btn--primary {
  background: #6d4aff;
  color: #ffffff;
}

.cookie-btn--primary:hover {
  background: #5939e2;
}

.cookie-btn--secondary {
  border-color: #56565f;
  background: #29292f;
  color: #ffffff;
}

.cookie-btn--secondary:hover {
  background: #35353c;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482600;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(4px);
}

.cookie-modal__card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border-radius: 20px;
  background: #ffffff;
  color: #171717;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .35);
}

.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.cookie-modal__header small {
  color: #6d4aff;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cookie-modal__header h2 {
  margin-top: 4px;
  font-size: 1.45rem;
}

.cookie-modal__close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #f0eff5;
  color: #222222;
  font-size: 1.6rem;
  cursor: pointer;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid #e7e6eb;
}

.cookie-option p {
  margin-top: 4px;
  color: #62626a;
  font-size: .88rem;
  line-height: 1.5;
}

.cookie-option input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: #6d4aff;
}

.cookie-modal__footer {
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid #e7e6eb;
}

.cookie-modal-open {
  overflow: hidden;
}

.legal-page {
  min-height: 100vh;
  background: #f6f6f8;
  color: #1b1b1f;
  font-family: Arial, Helvetica, sans-serif;
}

.legal-header {
  background: #151515;
  color: #ffffff;
}

.legal-header__inner,
.legal-main,
.legal-footer__inner {
  width: min(920px, 92%);
  margin: 0 auto;
}

.legal-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.legal-brand img {
  width: auto;
  height: 38px;
  max-width: 190px;
  object-fit: contain;
}

.legal-back {
  color: #ddd8ff;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
}

.legal-main {
  padding: 54px 0 70px;
}

.legal-card {
  padding: clamp(24px, 5vw, 50px);
  border: 1px solid #e4e3e8;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .07);
}

.legal-kicker {
  color: #6d4aff;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.legal-updated {
  margin-bottom: 30px;
  color: #73737b;
  font-size: .9rem;
}

.legal-card h2 {
  margin: 30px 0 10px;
  font-size: 1.28rem;
}

.legal-card h3 {
  margin: 20px 0 8px;
  font-size: 1.03rem;
}

.legal-card p,
.legal-card li {
  color: #4f4f57;
  line-height: 1.72;
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-card ul,
.legal-card ol {
  margin: 10px 0 0 22px;
}

.legal-card li + li {
  margin-top: 7px;
}

.legal-callout {
  margin: 24px 0;
  padding: 17px 18px;
  border-left: 4px solid #6d4aff;
  border-radius: 0 12px 12px 0;
  background: #f2efff;
  color: #40365f;
}

.legal-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #25d366;
  color: #102e1a;
  font-weight: 800;
  text-decoration: none;
}

.legal-footer {
  background: #151515;
  color: #c9c9ce;
}

.legal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 28px 0;
}

.legal-footer a,
.legal-footer button {
  color: #e0dcff;
}

.legal-form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

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

.legal-form label {
  display: grid;
  gap: 7px;
  color: #33333a;
  font-size: .9rem;
  font-weight: 750;
}

.legal-form input,
.legal-form select,
.legal-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d8d7de;
  border-radius: 11px;
  background: #ffffff;
  color: #1b1b1f;
  font: inherit;
}

.legal-form textarea {
  min-height: 130px;
  resize: vertical;
}

.legal-form button {
  justify-self: start;
  min-height: 46px;
  padding: 11px 20px;
  border: 0;
  border-radius: 12px;
  background: #6d4aff;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.legal-small {
  color: #777780 !important;
  font-size: .85rem;
}

@media (max-width: 820px) {
  .footer-inner {
    align-items: flex-start;
  }

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

  .cookie-banner__content {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .cookie-btn {
    flex: 1 1 110px;
  }
}

@media (max-width: 620px) {
  .legal-header__inner {
    min-height: 68px;
  }

  .legal-brand img {
    height: 32px;
    max-width: 155px;
  }

  .legal-main {
    padding: 28px 0 48px;
  }

  .legal-card {
    border-radius: 16px;
  }

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

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 15px;
    border-radius: 15px;
  }

  .cookie-modal {
    padding: 10px;
  }

  .cookie-modal__card {
    padding: 18px;
    border-radius: 16px;
  }

  .cookie-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }
}
