/* ============================================================
   Bombómetro — Legal Pages CSS
   Extends landing.css for Terms, Privacy & Refund pages
   ============================================================ */

/* --- Legal Header --- */
.legal-header {
  background-color: #FFFCFA;
  border-bottom: 1px solid #D9CBBF;
  padding: 16px 0;
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8A5A52;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #6B4A44;
}

.legal-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

/* --- Main Content --- */
.legal-main {
  background-color: #F6E9DC;
  padding: 48px 0 80px;
  min-height: 70vh;
}

/* --- Title --- */
.legal-title-section {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 2px solid #D9CBBF;
}

.legal-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #6B4A44;
  margin-bottom: 6px;
  line-height: 1.2;
}

.legal-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: #8A7A74;
  font-style: italic;
  margin-bottom: 14px;
}

.legal-updated {
  font-size: 0.85rem;
  color: #A89F96;
}

/* --- Content Sections --- */
.legal-section {
  background: #FFFCFA;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  border: 1px solid #E8DDD1;
}

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #6B4A44;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E8DDD1;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #8A5A52;
  margin: 18px 0 10px;
}

.legal-section p {
  font-size: 0.93rem;
  line-height: 1.75;
  color: #6B4A44;
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 12px 20px;
  line-height: 1.75;
  font-size: 0.93rem;
  color: #6B4A44;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section strong {
  font-weight: 600;
  color: #6B4A44;
}

.legal-section a {
  color: #8A5A52;
  text-decoration: underline;
}

.legal-section a:hover {
  color: #A67069;
}

/* --- Language Divider --- */
.lang-divider {
  border: none;
  border-top: 1px dashed #D9CBBF;
  margin: 20px 0;
}

.lang-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #A89F96;
  background: #FFFCFA;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* --- Footer Legal Links (shared with landing.css override) --- */
.footer-legal-links {
  margin-top: 14px;
  font-size: 0.8rem;
}

.footer-legal-links a {
  color: #F6E9DC;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.footer-legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-legal-links .separator {
  margin: 0 8px;
  opacity: 0.4;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .legal-title {
    font-size: 1.65rem;
  }

  .legal-subtitle {
    font-size: 1rem;
  }

  .legal-section {
    padding: 20px 18px;
  }

  .legal-main {
    padding: 32px 0 60px;
  }
}

@media (max-width: 480px) {
  .legal-title {
    font-size: 1.4rem;
  }

  .legal-header .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* --- Print --- */
@media print {
  .legal-header,
  .footer {
    display: none;
  }

  .legal-main {
    background: white;
    padding: 0;
  }

  .legal-section {
    border: none;
    box-shadow: none;
    page-break-inside: avoid;
    padding: 12px 0;
  }
}
