/* ===========================================
   GESTELEARN — Legal pages (privacidad, aviso-legal)
   =========================================== */

/* Page header */
.legal-header {
  background: var(--dark);
  background-image:
    linear-gradient(rgba(240, 233, 218, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 233, 218, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  padding: calc(var(--nav-h) + 5rem) 0 4rem;
  border-bottom: 1px solid rgba(240, 233, 218, 0.08);
}

.legal-header .section-tag {
  color: var(--cream);
}

.legal-header__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.legal-header__meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  opacity: 0.35;
  text-transform: uppercase;
}

/* Main content area */
.legal-main {
  background: var(--cream);
  color: var(--dark);
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 8rem);
}

/* Content column — narrower for readability */
.legal-content {
  max-width: 780px;
}

/* Sections */
.legal-section {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--dark-line);
}
.legal-section:last-child {
  border-bottom: 1px solid var(--dark-line);
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dark);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.legal-section p {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--dark);
  opacity: 0.8;
  margin-bottom: 1rem;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  margin: 0.75rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-section ul li {
  font-size: 0.925rem;
  line-height: 1.65;
  opacity: 0.8;
  padding-left: 1.25rem;
  position: relative;
}
.legal-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  opacity: 0.35;
  font-size: 0.8rem;
}

.legal-section a {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.legal-section a:hover { opacity: 1; }

/* Data table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.legal-table th,
.legal-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--dark-line);
  vertical-align: top;
  line-height: 1.5;
}

.legal-table th {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  width: 180px;
  white-space: nowrap;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table a {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.legal-table a:hover { opacity: 1; }

/* Responsive */
@media (max-width: 600px) {
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }
  .legal-table th {
    padding-bottom: 0.1rem;
    border-bottom: none;
  }
  .legal-table td {
    padding-top: 0.1rem;
    padding-bottom: 0.85rem;
  }
}
