/* ==========================================================================
   LEGAL CENTER & COMPLIANT FOOTER STYLES
   Sologiri AI Labs (OPC) Private Limited — Meta Compliance Suite
   ========================================================================== */

/* Full-Screen Legal Center View */
.legal-center-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8fafc;
  z-index: 9999;
  overflow-y: auto;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  display: flex;
  flex-direction: column;
}

.legal-center-view[hidden] {
  display: none !important;
}

/* Legal Center Sticky Top Bar */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.legal-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-header__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.legal-back-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: translateX(-2px);
}

.legal-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-header__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.legal-header__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.2em;
  color: #0f172a;
  line-height: 1;
}

.legal-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #64748b;
  background: #f8fafc;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

/* Legal Container Layout */
.legal-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  gap: 2rem;
  flex: 1;
}

/* Sidebar Navigation */
.legal-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.legal-sidebar__inner {
  position: sticky;
  top: 96px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.legal-sidebar__heading {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

.legal-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.legal-nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.legal-nav-item.active {
  background: #7c5dfa;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(124, 93, 250, 0.25);
}

.legal-nav-item.active svg {
  color: #ffffff !important;
}

/* Mobile Category Selector */
.legal-mobile-selector {
  display: none;
  margin-bottom: 1.5rem;
  width: 100%;
}

.legal-mobile-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

/* Legal Content Reader Area */
.legal-content-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.legal-doc-banner {
  padding: 1.75rem 2rem;
  color: #ffffff;
  background: #0f172a;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-doc-banner--privacy { background: #4338ca; }
.legal-doc-banner--terms { background: #047857; }
.legal-doc-banner--corporate { background: #0f172a; }
.legal-doc-banner--refund { background: #ea580c; }
.legal-doc-banner--grievance { background: #0f766e; }
.legal-doc-banner--trust { background: #4f46e5; }
.legal-doc-banner--acceptable { background: #dc2626; }
.legal-doc-banner--cookies { background: #d97706; }
.legal-doc-banner--seller { background: #1e1b4b; }

.legal-doc-banner h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.legal-doc-banner p {
  font-size: 0.825rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

.legal-doc-body {
  padding: 2.25rem;
  font-size: 0.925rem;
  line-height: 1.75;
  color: #334155;
}

.legal-doc-body section {
  margin-bottom: 2rem;
}

.legal-doc-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.legal-doc-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-doc-body p {
  margin-bottom: 0.85rem;
}

.legal-doc-body ul, 
.legal-doc-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-doc-body li {
  margin-bottom: 0.4rem;
}

.legal-callout {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.legal-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #1e293b;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #cbd5e1;
  text-align: left;
}

.legal-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

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

/* Copy Button for Corporate Details */
.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono, monospace);
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 0.5rem;
}

.copy-pill:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

/* COMPLIANT FOOTER STYLES */
.footer-compliant {
  background: #070a10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 2.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.6;
  width: 100%;
}

.footer-compliant .container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.footer-compliant__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr 1.15fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-title .brand-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.25rem;
  color: #ffffff;
  letter-spacing: 0.20em;
  transform: scaleY(0.85);
  transform-origin: left center;
  line-height: 1;
}

.footer-tagline {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.footer-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-icon-btn:hover {
  background: #7c5dfa;
  border-color: #7c5dfa;
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-icon-btn--wa:hover {
  background: #25d366;
  border-color: #25d366;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
  text-decoration: none;
}

.footer-link-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Bottom Strip */
.footer-compliant__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.825rem;
}

.footer-compliant__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #94a3b8;
  text-align: center;
  margin: 0 auto;
}

.footer-compliant__divider {
  opacity: 0.4;
}

@media (max-width: 1024px) {
  .footer-compliant__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .footer-compliant__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}
  
  .legal-container {
    flex-direction: column;
  }
  
  .legal-sidebar {
    display: none;
  }
  
  .legal-mobile-selector {
    display: block;
  }
  
  .legal-header__inner {
    padding: 0 1rem;
  }
  
  .legal-doc-body {
    padding: 1.5rem;
  }
}
