/* ═══ LEGAL PAGES — atiempo.pe ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #374151;
  line-height: 1.75;
  background: #f8f9fb;
}

a { color: #DA291C; text-decoration: none; }
a:hover { text-decoration: underline; }

.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.legal-header {
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.legal-header .legal-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.legal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.legal-logo:hover { text-decoration: none; }
.legal-logo-img { height: 36px; width: auto; }
.legal-back {
  font-size: .85rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}
.legal-back:hover { color: #DA291C; text-decoration: none; }

/* MAIN CONTENT */
.legal-main {
  padding: 48px 0 80px;
}
.legal-content {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid #e4e7ed;
}

.legal-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-updated {
  font-size: .85rem;
  color: #9ca3b0;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f3f6;
}

.legal-content p {
  margin-bottom: 14px;
  color: #4b5563;
}

.legal-content ul {
  margin: 0 0 16px 20px;
  color: #4b5563;
}
.legal-content li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.legal-highlight {
  background: #fef0ef;
  border-left: 4px solid #DA291C;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.legal-highlight i {
  color: #DA291C;
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.legal-highlight p {
  margin: 0;
  font-size: .95rem;
}

/* FOOTER */
.legal-footer {
  background: #111;
  color: #9ca3b0;
  padding: 24px 0;
  font-size: .8rem;
}
.legal-footer .legal-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.legal-footer-links {
  display: flex;
  gap: 24px;
}
.legal-footer-links a {
  color: #9ca3b0;
  font-size: .8rem;
}
.legal-footer-links a:hover { color: #fff; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .legal-content {
    padding: 32px 20px;
    border-radius: 12px;
  }
  .legal-content h1 { font-size: 1.5rem; }
  .legal-content h2 { font-size: 1.05rem; }
  .legal-footer .legal-container {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══ CHECKBOX PARA FORMULARIO (pegar en styles.css principal) ═══ */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  padding: 16px;
  background: #f8f9fb;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
}
.form-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: #DA291C;
  cursor: pointer;
}
.form-consent label {
  font-size: .85rem;
  color: #4b5563;
  line-height: 1.5;
  cursor: pointer;
}
.form-consent a {
  color: #DA291C;
  font-weight: 600;
  text-decoration: underline;
}
.form-consent a:hover {
  color: #B71C1C;
}

/* ═══ FOOTER LEGAL DISCLAIMER (pegar en styles.css principal) ═══ */
.footer-legal-text {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  max-width: 800px;
  margin: 16px auto 0;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-legal-text a {
  color: rgba(255,255,255,.6);
  text-decoration: underline;
}
.footer-legal-text a:hover {
  color: #fff;
}
