/* ============================================
   PÁGINAS LEGALES (aviso de privacidad, términos,
   cookies, política de calidad) y 404
   ============================================ */

body.legal-page {
  background-color: var(--black);
}

.legal-header {
  padding: 9rem 3rem 3rem;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-breadcrumb {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.legal-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
}

.legal-breadcrumb a:hover {
  color: var(--orange);
}

.legal-title {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.legal-updated {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 3rem 6rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.85;
}

.legal-content h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--white);
  margin: 2.75rem 0 1rem;
}

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

.legal-content h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--white);
  margin: 1.75rem 0 0.75rem;
}

.legal-content p {
  margin-bottom: 1.2rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1.2rem 1.4rem;
  padding: 0;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: var(--white);
  font-weight: 600;
}

.legal-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--orange-dark);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}

.legal-content th,
.legal-content td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-content th {
  color: var(--white);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
}

.legal-note {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--orange);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
  .legal-header {
    padding: 7rem 1.5rem 2rem;
  }

  .legal-content {
    padding: 2.5rem 1.5rem 4rem;
  }
}

/* ============================================
   404
   ============================================ */

.error-404-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  background: var(--black);
  text-align: center;
}

.error-404-code {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.error-404-title {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.error-404-text {
  font-family: "Inter", sans-serif;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.error-404-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.error-404-links a {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: var(--transition);
}

.error-404-links a.primary {
  background: var(--orange);
  border-color: var(--orange);
}

.error-404-links a.primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.error-404-links a:not(.primary):hover {
  border-color: var(--orange);
  color: var(--orange);
}
