/* ============================================================
   PAGES.CSS — Estilos compartidos para páginas internas
   Abogaland S.A.S. — Silent Luxury
   
   Usado por: servicios.html, nosotros.html, contacto.html, legal/*
   ============================================================ */

/* ── PAGE HERO (compacto, no full-height) ── */
.page-hero {
  padding-top: 140px;
  padding-bottom: var(--space-3xl);
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: var(--z-base);
}

.page-hero__title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
}

.page-hero__subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-loose);
}

@media (max-width: 767px) {
  .page-hero {
    padding-top: 120px;
    padding-bottom: var(--space-2xl);
  }

  .page-hero__title {
    font-size: var(--font-size-2xl);
  }
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  justify-content: center;
}

.breadcrumbs a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs__separator {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.breadcrumbs__current {
  color: var(--color-accent);
}

/* ── SERVICE DETAIL (expandida) ── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail--reverse {
  direction: rtl;
}

.service-detail--reverse > * {
  direction: ltr;
}

.service-detail__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
}

.service-detail__icon-box {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: var(--color-accent-glow);
  border: 1px solid var(--color-accent-muted);
  color: var(--color-accent);
  transition: all var(--transition-base);
}

.service-detail:hover .service-detail__icon-box {
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.service-detail__icon-box svg {
  width: 56px;
  height: 56px;
  stroke: currentColor;
  stroke-width: 1.2;
  fill: none;
}

.service-detail__content {
  /* text content side */
}

.service-detail__label {
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.service-detail__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.service-detail__description {
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
  margin-bottom: var(--space-lg);
}

.service-detail__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-xl);
}

.service-detail__list-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.service-detail__list-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-accent);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.service-detail__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-accent);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.service-detail__cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--transition-fast);
}

.service-detail__cta:hover {
  color: var(--color-accent-hover);
}

.service-detail__cta:hover svg {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
  }

  .service-detail--reverse {
    direction: ltr;
  }

  .service-detail__visual {
    padding: var(--space-lg);
  }

  .service-detail__icon-box {
    width: 80px;
    height: 80px;
  }

  .service-detail__icon-box svg {
    width: 40px;
    height: 40px;
  }

  .service-detail__title {
    font-size: var(--font-size-xl);
  }

  .service-detail__list {
    grid-template-columns: 1fr;
  }
}

/* ── MISSION / VISION ── */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.mv-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
}

.mv-card__label {
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.mv-card__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.mv-card__text {
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
  font-size: var(--font-size-sm);
}

@media (max-width: 767px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }
}

/* ── VALUES ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.value-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.value-card:hover {
  border-color: var(--color-accent-muted);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-glow);
  border: 1px solid var(--color-accent-muted);
  margin: 0 auto var(--space-md);
  color: var(--color-accent);
}

.value-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.value-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
}

@media (max-width: 767px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ── BRAND SECTION ── */
.brand-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.brand-section__quote {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-xl);
  position: relative;
}

.brand-section__quote::before {
  content: '"';
  font-size: var(--font-size-5xl);
  color: var(--color-accent-muted);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  line-height: 1;
}

.brand-section__text {
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
  font-size: var(--font-size-md);
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .brand-section__quote {
    font-size: var(--font-size-xl);
  }
}

/* ── COMPANY TIMELINE ── */
.company-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.company-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--color-accent-muted), var(--color-accent), var(--color-accent-muted));
}

.timeline-item {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
  position: relative;
}

.timeline-item__dot {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  position: relative;
  z-index: var(--z-base);
  color: var(--color-accent);
}

.timeline-item__dot svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.timeline-item__content {
  padding-top: var(--space-md);
}

.timeline-item__year {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.timeline-item__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.timeline-item__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
}

@media (max-width: 767px) {
  .company-timeline::before {
    left: 20px;
  }

  .timeline-item__dot {
    width: 40px;
    height: 40px;
  }

  .timeline-item__dot svg {
    width: 18px;
    height: 18px;
  }

  .timeline-item {
    gap: var(--space-md);
  }
}

/* ── PAGE CTA (reutilizable) ── */
.page-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.page-cta__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.page-cta__text {
  color: var(--color-text-secondary);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-xl);
  line-height: var(--line-height-loose);
}

/* ── CONTACT GRID ── */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-3xl);
  align-items: flex-start;
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ── FORM GROUP ── */
.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.form-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--space-sm);
}

.form-label .required {
  color: var(--color-accent);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-muted);
}

.form-input.has-error,
.form-textarea.has-error,
.form-select.has-error {
  border-color: #e74c3c;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-right: var(--space-2xl);
  cursor: pointer;
}

.form-select option {
  background: var(--color-bg);
  color: var(--color-text-primary);
}

.form-error {
  display: none;
  font-size: var(--font-size-xs);
  color: #e74c3c;
  margin-top: var(--space-xs);
}

.form-error.visible {
  display: block;
}

/* ── CUSTOM CHECKBOX ── */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  cursor: pointer;
  margin-bottom: var(--space-xl);
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 2px;
  position: relative;
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--color-text-inverse);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px var(--color-accent-muted);
}

.form-checkbox input[type="checkbox"].has-error {
  border-color: #e74c3c;
}

.form-checkbox__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
}

.form-checkbox__text a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ── FORM SUBMIT BUTTON ── */
.form-submit {
  width: 100%;
  position: relative;
}

.form-submit .btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--color-text-inverse);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.form-submit.is-loading .btn__text {
  visibility: hidden;
}

.form-submit.is-loading .btn__spinner {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── CONTACT INFO CARD ── */
.contact-info {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.contact-info__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-info__item:last-of-type {
  margin-bottom: 0;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-glow);
  border: 1px solid var(--color-accent-muted);
  color: var(--color-accent);
}

.contact-info__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.contact-info__label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
}

.contact-info__value a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-info__value a:hover {
  color: var(--color-accent);
}

/* WhatsApp CTA inside contact info */
.contact-whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: var(--space-xl);
  border: none;
  cursor: pointer;
}

.contact-whatsapp-cta:hover {
  background: #20bd5a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.contact-whatsapp-cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ── TOAST NOTIFICATIONS ── */
.toast-container {
  position: fixed;
  top: var(--space-xl);
  right: var(--space-xl);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform var(--transition-base);
  max-width: 400px;
}

.toast.is-visible {
  transform: translateX(0);
}

.toast--success {
  background: #0d2818;
  border: 1px solid #25D366;
  color: #a3e4b8;
}

.toast--error {
  background: #2d0f0f;
  border: 1px solid #e74c3c;
  color: #f0a8a8;
}

.toast__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.toast__close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: var(--space-xs);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  margin-left: auto;
}

.toast__close:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .toast-container {
    top: var(--space-md);
    right: var(--space-md);
    left: var(--space-md);
  }

  .toast {
    max-width: 100%;
  }
}

/* ── WHATSAPP FAB (Floating Action Button) ── */
.whatsapp-fab {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  transition: all var(--transition-base);
  animation: fabSlideIn 0.6s ease-out 1s both;
}

.whatsapp-fab__button {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
}

.whatsapp-fab__button svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.whatsapp-fab:hover .whatsapp-fab__button {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab__tooltip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.whatsapp-fab:hover .whatsapp-fab__tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-fab--hidden {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

@keyframes fabSlideIn {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .whatsapp-fab {
    bottom: var(--space-lg);
    right: var(--space-lg);
  }

  .whatsapp-fab__tooltip {
    display: none;
  }
}

/* ============================================================
   LEGAL PAGES — Privacidad, Términos, Cookies
   ============================================================ */

/* ── Hero compacto para legales ── */
.page-hero--compact {
  padding-bottom: 40px;
}

.page-hero--compact .page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* ── Contenedor legal (lectura centrada) ── */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

/* ── Tabla de contenidos ── */
.legal-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px 32px;
  margin-bottom: 48px;
}

.legal-toc__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.legal-toc__list {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc__list a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.legal-toc__list a:hover {
  color: var(--color-accent);
}

/* ── Secciones legales ── */
.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.legal-section h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-section p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
  color: var(--color-text-secondary);
  padding-left: 20px;
  margin-bottom: 16px;
  line-height: 1.8;
}

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

.legal-section a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--color-accent-hover);
}

/* ── Info box (datos del responsable) ── */
.legal-info-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.legal-info-box p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.legal-info-box a {
  color: var(--color-accent);
  text-decoration: none;
}

/* ── Definiciones (dl/dt/dd) ── */
.legal-definitions {
  margin-bottom: 16px;
}

.legal-definitions dt {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 16px;
  margin-bottom: 4px;
}

.legal-definitions dd {
  color: var(--color-text-secondary);
  padding-left: 16px;
  border-left: 2px solid var(--color-border);
  margin-left: 0;
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ── Tablas legales (cookies) ── */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.legal-table th {
  background: var(--color-surface);
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--color-border);
}

.legal-table td {
  padding: 10px 16px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.legal-table tbody tr:hover {
  background: var(--color-surface);
}

/* ── Fecha de actualización ── */
.legal-date {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted, #666);
}

/* ── Navegación entre documentos legales ── */
.legal-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.legal-nav__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.legal-nav__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-nav__link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.legal-nav__link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ── Mobile legal ── */
@media (max-width: 768px) {
  .legal-toc {
    padding: 16px 20px;
  }

  .legal-nav__links {
    flex-direction: column;
  }

  .legal-table {
    font-size: 0.8rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 8px 10px;
  }
}
