/* ============================================================================
   Capi Când-IA Pro — Page header + Footer legal · Fase A
   Topbar de páginas internas + footer institucional.
   ============================================================================ */

/* ──────────────────────── PAGE TOPBAR (interna) ──────────────────────── */
.ds-page-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 24px !important;
  min-height: 60px !important;
  height: 60px !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: var(--ds-bg);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.ds-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.ds-page-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--ds-border);
  color: var(--ds-text-2);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.ds-page-back:hover {
  background: rgba(255,255,255,0.04);
  color: var(--ds-text);
}

.ds-page-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.ds-page-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ds-page-title {
  font-family: var(--ds-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ds-text);
  letter-spacing: -0.005em;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-page-subtitle {
  font-family: var(--ds-font-mono);
  font-size: 10.5px;
  color: var(--ds-text-muted);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.ds-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ds-topbar-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: 12px;
}

/* Hamburger pra mobile drawer */
.ds-shell-hamburger {
  background: transparent;
  border: none;
  color: var(--ds-text-2);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.ds-shell-hamburger:hover {
  background: rgba(255,255,255,0.04);
  color: var(--ds-text);
}

.ds-shell-hamburger svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .ds-shell-hamburger {
    display: inline-flex;
  }
}

/* ──────────────────────── FOOTER LEGAL ──────────────────────── */
.ds-footer-legal {
  width: 100%;
  border-top: 1px solid var(--ds-border);
  background: var(--ds-bg);
  padding: 24px 32px;
  margin-top: auto;
}

.ds-footer-legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.ds-footer-legal-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ds-footer-legal-copyright {
  font-family: var(--ds-font-mono);
  font-size: 11px;
  color: var(--ds-text-muted);
  letter-spacing: 0.05em;
}

@media (max-width: 700px) {
  .ds-footer-legal-inner {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 16px;
  }
  .ds-footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
