/* ============================================
   OS1® · LEGAL.CSS
   Estilos específicos de páginas legales
   (terminos, privacidad/simplificado, privacidad/integral)
   Hereda de master.css (incluye nav y footer)
   ============================================ */

body {
  line-height: 1.65;
}

/* ============================================
   ENCABEZADO DEL DOCUMENTO
   ============================================ */
.doc-header {
  padding: clamp(140px, 18vh, 180px) clamp(24px, 6vw, 80px) clamp(48px, 6vh, 64px);
  border-bottom: 0.5px solid var(--linea-suave);
}

.doc-header-inner {
  max-width: 820px;
  margin: 0 auto;
}

.doc-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris-faint);
  margin-bottom: 24px;
  display: block;
}

.doc-eyebrow .eyebrow-num {
  color: var(--rojo-os1);
  margin-right: 1.5em;
}

.doc-title {
  font-family: var(--editorial);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--negro);
  margin-bottom: 24px;
}

.doc-subtitle {
  font-family: var(--editorial);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.5;
  color: var(--gris-faint);
  max-width: 680px;
}

/* ============================================
   CUERPO DEL DOCUMENTO
   ============================================ */
.doc-body {
  padding: clamp(48px, 7vh, 80px) clamp(24px, 6vw, 80px) clamp(72px, 10vh, 100px);
}

.doc-body-inner {
  max-width: 820px;
  margin: 0 auto;
}

.doc-section {
  margin-bottom: clamp(36px, 5vh, 52px);
  padding-bottom: clamp(36px, 5vh, 52px);
  border-bottom: 0.5px solid var(--linea-suave);
}

.doc-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.doc-section-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rojo-os1);
  margin-bottom: 14px;
  display: block;
}

.doc-section-title {
  font-family: var(--inter);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--negro);
  margin-bottom: 20px;
}

.doc-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--tinta);
  margin-bottom: 12px;
  max-width: 720px;
}

.doc-section p:last-child {
  margin-bottom: 0;
}

.doc-section a {
  color: var(--negro);
  text-decoration: none;
  border-bottom: 1px solid var(--gris-claro);
  transition: border-color 0.3s ease;
}

.doc-section a:hover {
  border-bottom-color: var(--rojo-os1);
}

.doc-section ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.doc-section ul li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--tinta);
  padding: 4px 0 4px 24px;
  position: relative;
}

.doc-section ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--rojo-os1);
}

.doc-subhead {
  font-family: var(--inter);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--negro);
  margin-top: 20px;
  margin-bottom: 8px;
}

/* ============================================
   PIE DEL DOCUMENTO
   ============================================ */
.doc-pie {
  margin-top: clamp(48px, 7vh, 64px);
  padding-top: clamp(32px, 5vh, 44px);
  border-top: 0.5px solid var(--linea-suave);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.doc-pie-volver {
  font-family: var(--inter);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--negro);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: none !important;
  transition: gap 0.3s ease;
}

.doc-pie-volver:hover {
  gap: 16px;
}

.doc-pie-fecha {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gris-medio);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 700px) {
  .doc-header {
    padding-top: 120px;
  }

  .doc-pie {
    flex-direction: column;
    align-items: flex-start;
  }
}
