/* Legal pages (aviso-legal, privacidad, cookies).
   Loaded after styles.css: relies on its tokens, @font-face and base reset.
   These pages have no cinematic stage, so the header here is a plain static
   bar instead of the landing's fixed morphing pill. */

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 48px) 12px;
}

.legal-header .site-logo {
  font-size: 22px;
}

.legal-header-actions {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}

.legal-back {
  color: var(--paper-dim);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.legal-back:hover {
  color: var(--paper);
}

.legal-main {
  max-width: 72ch;
  margin: 0 auto;
  padding: clamp(36px, 7vh, 80px) clamp(20px, 4vw, 48px) clamp(72px, 10vh, 120px);
}

.legal-doc h1 {
  margin: 0 0 12px;
  font-family: "Ogg Medium", "Prata", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  line-height: 1.05;
  color: var(--paper);
}

.legal-updated {
  margin: 0 0 20px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253, 241, 225, 0.45);
}

.legal-note {
  margin: 0 0 36px;
  padding: 14px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--paper-dim);
}

.legal-doc h2 {
  margin: 44px 0 14px;
  font-family: "Ogg Medium", "Prata", Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--paper);
}

.legal-doc p,
.legal-doc li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--paper-dim);
}

.legal-doc p {
  margin: 0 0 16px;
}

.legal-doc ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-doc li {
  margin: 0 0 8px;
}

.legal-doc a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(13, 151, 200, 0.4);
  text-underline-offset: 3px;
}

.legal-doc a:hover {
  text-decoration-color: var(--accent);
}

.legal-doc strong {
  color: var(--paper);
  font-weight: 600;
}

.legal-doc code {
  padding: 1px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--paper);
}

.legal-table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  color: var(--paper-dim);
}

.legal-table th {
  color: var(--paper);
  font-weight: 600;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px clamp(20px, 4vw, 48px) 40px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}

.legal-footer p {
  margin: 0;
  color: rgba(253, 241, 225, 0.5);
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.legal-footer-links a {
  color: var(--paper-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.legal-footer-links a[aria-current="page"] {
  color: var(--paper);
}

@media (max-width: 560px) {
  .legal-header {
    padding-top: 20px;
  }

  .legal-doc p,
  .legal-doc li {
    font-size: 1rem;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
  }
}
