/* ── Legal page — BrandBook ── */

.legal-content {
  max-width: 800px;
  margin: clamp(3rem, 7vw, 5rem) auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--bs-surface-0);
  border: 1px solid var(--bs-border);
  border-radius: 20px;
  box-shadow: 0 20px 48px -28px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

/* Accent bar top */
.legal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--bs-primary), var(--bs-cold-0));
}

/* ── Typography ── */
.legal-content h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--bs-text-0);
  text-align: center;
  margin-bottom: 0.6rem;
  padding-bottom: 1.4rem;
  position: relative;
}

.legal-content h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--bs-primary);
  border-radius: 2px;
}

.legal-content h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--bs-primary);
  border-left: 3px solid var(--bs-primary);
  padding-left: 0.9rem;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  font-family: 'Lexend', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--bs-text-1);
  margin-bottom: 1.4rem;
  text-align: justify;
}

.legal-content p a {
  color: var(--bs-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
  word-break: break-all;
  overflow-wrap: break-word;
}

.legal-content p a:hover {
  opacity: 0.75;
}

/* License note — surface card */
.legal-content .license-note {
  background: var(--bs-surface-1);
  border: 1px solid var(--bs-border);
  border-left: 3px solid var(--bs-primary);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  color: var(--bs-text-1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .legal-content {
    margin: 1.5rem 1rem;
  }
}

/* Apartados del aviso de privacidad. */
.legal-content h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  color: var(--bs-text-0);
  margin-top: 1.6rem;
  margin-bottom: 0.55rem;
}
