/* ── Legal pages shared stylesheet ── */
/* Used by: aviso-legal.html, politica-cookies.html, privacidad.html, seguridad.html */

.legal-section {
  padding: 60px 20px 100px;
}

.legal-wrapper {
  max-width: 780px;
  margin: 0 auto;
  font-family: 'Inter', system-ui, sans-serif;
  color: #334155;
  line-height: 1.8;
}

/* Page title */
.legal-title {
  font-size: 38px;
  font-weight: 800;
  color: #0b1c2d;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

/* Section subheadings */
.legal-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: #0b1c2d;
  margin-top: 36px;
  margin-bottom: 12px;
}

/* Body paragraphs */
.legal-wrapper p {
  font-size: 15px;
  margin-bottom: 16px;
  color: #475569;
}

/* Bullet lists */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.legal-list li {
  padding: 14px 20px;
  font-size: 15px;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
}

.legal-list li:last-child {
  border-bottom: none;
}

.legal-list li strong {
  color: #0b1c2d;
  font-weight: 600;
  margin-right: 6px;
}

/* Lead subtitle (below h1) */
.legal-lead {
  font-size: 16px;
  color: #64748b;
  font-style: italic;
  margin-top: -20px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

/* Callout boxes (info / secure) */
.legal-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 20px 0 28px;
  font-size: 14px;
  line-height: 1.7;
}

.legal-callout p {
  margin: 0;
  font-size: 14px;
  color: inherit;
}

.legal-callout__icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1.4;
}

.legal-callout--info {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}

.legal-callout--secure {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
}

/* Phase blocks */
.legal-phase {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 26px;
  margin: 24px 0;
}

.legal-phase--2 {
  background: #faf5ff;
  border-color: #e9d5ff;
}

.legal-phase__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.legal-phase__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2b7cff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

.legal-phase__badge--2 {
  background: #7c3aed;
}

.legal-phase__label {
  font-size: 15px;
  font-weight: 700;
  color: #0b1c2d;
}

.legal-phase p {
  font-size: 15px;
  color: #475569;
  margin-bottom: 12px;
}

.legal-phase .legal-h3 {
  margin-top: 18px;
}

/* H3 sub-subheadings (e.g. "Según su origen:") */
.legal-h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0b1c2d;
  margin-top: 22px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Bullet lists (prose-style, indented) */
.legal-bullets {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 20px 0;
}

.legal-bullets li {
  font-size: 15px;
  color: #475569;
  margin-bottom: 10px;
  line-height: 1.7;
}

.legal-bullets li strong {
  color: #0b1c2d;
  font-weight: 600;
}

/* Cookies table */
.legal-table-wrap {
  overflow-x: auto;
  margin: 8px 0 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  min-width: 620px;
}

.legal-table thead tr {
  background: #0b1c2d;
  color: #ffffff;
}

.legal-table th {
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.legal-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.legal-table tbody tr:last-child {
  border-bottom: none;
}

.legal-table tbody tr:hover {
  background: #f8fafc;
}

.legal-table td {
  padding: 12px 16px;
  color: #475569;
  vertical-align: middle;
}

.legal-table td code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: #f1f5f9;
  color: #0b1c2d;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Cookie type badges */
.cookie-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-badge.analytic {
  background: #dbeafe;
  color: #1d4ed8;
}

.cookie-badge.marketing {
  background: #fce7f3;
  color: #be185d;
}

.cookie-badge.technical {
  background: #dcfce7;
  color: #15803d;
}

/* Inline links */
.legal-link {
  color: #2b7cff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-link:hover {
  color: #1a5fd1;
  text-decoration: underline;
}

/* Wide wrapper variant (subencargados) */
.legal-wrapper--wide {
  max-width: 900px;
}

/* Provider cards */
.provider-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.provider-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.provider-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #0b1c2d;
}

.provider-card__full {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.provider-card__list {
  list-style: none;
  padding: 16px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.provider-card__list li {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  padding-left: 14px;
  border-left: 3px solid #e2e8f0;
}

.provider-card__list li strong {
  color: #0b1c2d;
  font-weight: 600;
}

/* Compliance table indicators */
.compliance-check {
  font-size: 16px;
}

.compliance-partial {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 50px;
  white-space: nowrap;
}

.compliance-na {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 50px;
}

/* Responsive */
@media (max-width: 600px) {
  .legal-section {
    padding: 40px 16px 80px;
  }

  .legal-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .legal-subtitle {
    font-size: 18px;
    margin-top: 28px;
  }
}
