/**
 * HoplaCollect — Mentions Légales Public Section
 * Professional document viewer with sub-tabs
 * Theme-proof with !important and high specificity
 */

/* ===== Container ===== */
.hc-ml {
  margin: 2rem 0 !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: #374151 !important;
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased !important;
}

.hc-ml *,
.hc-ml *::before,
.hc-ml *::after {
  box-sizing: border-box !important;
}

/* ===== Header ===== */
.hc-ml .hc-ml-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: 1.5rem 1.5rem 1.25rem !important;
  background: #fafafa !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

.hc-ml .hc-ml-header-left {
  display: flex !important;
  align-items: flex-start !important;
  gap: 1rem !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.hc-ml .hc-ml-header-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  flex-shrink: 0 !important;
}

.hc-ml .hc-ml-header-icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #2563eb !important;
  fill: none !important;
}

.hc-ml .hc-ml-header-text {
  flex: 1 !important;
  min-width: 0 !important;
}

.hc-ml .hc-ml-header-text h3 {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin: 0 0 0.25rem !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  border: none !important;
  background: none !important;
  letter-spacing: -0.01em !important;
}

.hc-ml .hc-ml-header-text p {
  font-size: 0.8125rem !important;
  color: #9ca3af !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}

.hc-ml .hc-ml-header-date {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  font-size: 0.6875rem !important;
  font-weight: 500 !important;
  color: #9ca3af !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding-top: 0.25rem !important;
}

.hc-ml .hc-ml-header-date svg {
  width: 14px !important;
  height: 14px !important;
  stroke: #9ca3af !important;
  fill: none !important;
  flex-shrink: 0 !important;
}

/* ===== Tabs ===== */
.hc-ml .hc-ml-tabs {
  display: flex !important;
  gap: 0 !important;
  padding: 0 1.5rem !important;
  border-bottom: 2px solid #e5e7eb !important;
  background: #fafafa !important;
  margin: 0 !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

.hc-ml .hc-ml-tabs::-webkit-scrollbar {
  display: none !important;
}

.hc-ml .hc-ml-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.125rem !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  background: none !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

.hc-ml .hc-ml-tab:hover {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.04) !important;
  border-bottom-color: transparent !important;
}

.hc-ml .hc-ml-tab.active {
  color: #2563eb !important;
  border-bottom-color: #2563eb !important;
  background: none !important;
}

.hc-ml .hc-ml-tab-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

.hc-ml .hc-ml-tab-icon svg {
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  fill: none !important;
}

.hc-ml .hc-ml-tab-label {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

/* ===== Panels ===== */
.hc-ml .hc-ml-panel {
  display: none !important;
  animation: hc-ml-fade 0.25s ease-out !important;
}

.hc-ml .hc-ml-panel.active {
  display: block !important;
}

@keyframes hc-ml-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hc-ml .hc-ml-panel-content {
  padding: 1.75rem 1.5rem !important;
  font-size: 0.9375rem !important;
  line-height: 1.8 !important;
  color: #374151 !important;
}

/* ===== Panel Typography ===== */
.hc-ml .hc-ml-panel-content h1,
.hc-ml .hc-ml-panel-content h2,
.hc-ml .hc-ml-panel-content h3,
.hc-ml .hc-ml-panel-content h4,
.hc-ml .hc-ml-panel-content h5,
.hc-ml .hc-ml-panel-content h6 {
  color: #1f2937 !important;
  line-height: 1.3 !important;
  margin: 1.75em 0 0.625em !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  font-family: inherit !important;
}

.hc-ml .hc-ml-panel-content h1:first-child,
.hc-ml .hc-ml-panel-content h2:first-child,
.hc-ml .hc-ml-panel-content h3:first-child {
  margin-top: 0 !important;
}

.hc-ml .hc-ml-panel-content h1 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  padding-bottom: 0.5em !important;
  border-bottom: 2px solid #f3f4f6 !important;
}

.hc-ml .hc-ml-panel-content h2 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
}

.hc-ml .hc-ml-panel-content h3 {
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
}

.hc-ml .hc-ml-panel-content h4 {
  font-size: 1rem !important;
  font-weight: 600 !important;
}

.hc-ml .hc-ml-panel-content p {
  margin: 0 0 1em !important;
  color: #374151 !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.hc-ml .hc-ml-panel-content p:last-child {
  margin-bottom: 0 !important;
}

.hc-ml .hc-ml-panel-content ul,
.hc-ml .hc-ml-panel-content ol {
  margin: 0 0 1em 1.25em !important;
  padding: 0 !important;
}

.hc-ml .hc-ml-panel-content li {
  margin: 0.3em 0 !important;
  color: #374151 !important;
}

.hc-ml .hc-ml-panel-content a {
  color: #2563eb !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.15s ease !important;
}

.hc-ml .hc-ml-panel-content a:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

.hc-ml .hc-ml-panel-content strong,
.hc-ml .hc-ml-panel-content b {
  font-weight: 600 !important;
  color: #1f2937 !important;
}

.hc-ml .hc-ml-panel-content em,
.hc-ml .hc-ml-panel-content i {
  font-style: italic !important;
}

.hc-ml .hc-ml-panel-content hr {
  border: none !important;
  border-top: 1px solid #e5e7eb !important;
  margin: 1.5em 0 !important;
  padding: 0 !important;
}

.hc-ml .hc-ml-panel-content blockquote {
  margin: 1.25rem 0 !important;
  padding: 0.875rem 1.25rem !important;
  border-left: 4px solid #2563eb !important;
  background: #f8fafc !important;
  color: #4b5563 !important;
  border-radius: 0 8px 8px 0 !important;
  font-style: normal !important;
}

.hc-ml .hc-ml-panel-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 1em 0 !important;
  font-size: 0.875rem !important;
}

.hc-ml .hc-ml-panel-content th,
.hc-ml .hc-ml-panel-content td {
  padding: 0.625rem 0.875rem !important;
  text-align: left !important;
  border-bottom: 1px solid #e5e7eb !important;
  color: #374151 !important;
}

.hc-ml .hc-ml-panel-content th {
  font-weight: 600 !important;
  color: #1f2937 !important;
  background: #f9fafb !important;
}

/* ===== Empty State ===== */
.hc-ml .hc-ml-empty {
  text-align: center !important;
  padding: 3rem 1.5rem !important;
}

.hc-ml .hc-ml-empty svg {
  color: #d1d5db !important;
  stroke: #d1d5db !important;
  margin: 0 auto 1rem !important;
  display: block !important;
}

.hc-ml .hc-ml-empty p {
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  margin: 0 0 0.375rem !important;
  line-height: 1.4 !important;
}

.hc-ml .hc-ml-empty span {
  font-size: 0.875rem !important;
  color: #9ca3af !important;
  font-weight: 400 !important;
}

/* ===== Responsive — Tablet ===== */
@media (max-width: 768px) {
  .hc-ml {
    margin: 1.25rem 0 !important;
    border-radius: 8px !important;
  }

  .hc-ml .hc-ml-header {
    flex-direction: column !important;
    padding: 1.25rem !important;
    gap: 0.75rem !important;
  }

  .hc-ml .hc-ml-header-date {
    padding-top: 0 !important;
  }

  .hc-ml .hc-ml-header-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
  }

  .hc-ml .hc-ml-header-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .hc-ml .hc-ml-header-text h3 {
    font-size: 1rem !important;
  }

  .hc-ml .hc-ml-tabs {
    padding: 0 1rem !important;
    gap: 0 !important;
  }

  .hc-ml .hc-ml-tab {
    padding: 0.625rem 0.875rem !important;
    font-size: 0.75rem !important;
  }

  .hc-ml .hc-ml-tab-icon {
    display: none !important;
  }

  .hc-ml .hc-ml-panel-content {
    padding: 1.25rem 1rem !important;
    font-size: 0.875rem !important;
  }

  .hc-ml .hc-ml-panel-content h1 {
    font-size: 1.25rem !important;
  }

  .hc-ml .hc-ml-panel-content h2 {
    font-size: 1.125rem !important;
  }

  .hc-ml .hc-ml-panel-content h3 {
    font-size: 1rem !important;
  }
}

/* ===== Responsive — Mobile ===== */
@media (max-width: 480px) {
  .hc-ml .hc-ml-header-left {
    gap: 0.75rem !important;
  }

  .hc-ml .hc-ml-header-icon {
    width: 34px !important;
    height: 34px !important;
  }

  .hc-ml .hc-ml-header-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  .hc-ml .hc-ml-header-text h3 {
    font-size: 0.9375rem !important;
  }

  .hc-ml .hc-ml-header-text p {
    font-size: 0.75rem !important;
  }

  .hc-ml .hc-ml-tabs {
    padding: 0 0.75rem !important;
  }

  .hc-ml .hc-ml-tab {
    padding: 0.5rem 0.625rem !important;
    font-size: 0.6875rem !important;
  }

  .hc-ml .hc-ml-panel-content {
    padding: 1rem 0.75rem !important;
    font-size: 0.8125rem !important;
    line-height: 1.7 !important;
  }

  .hc-ml .hc-ml-empty {
    padding: 2rem 1rem !important;
  }

  .hc-ml .hc-ml-empty p {
    font-size: 0.9375rem !important;
  }

  .hc-ml .hc-ml-empty span {
    font-size: 0.8125rem !important;
  }
}
