/* ==========================================
   AICP Legal Center - Global Styles
   ========================================== */

/* Hero Banner */
.legal-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b2d4f 40%, #2a4a7f 100%);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66,165,245,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,181,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero-content {
  position: relative;
  z-index: 1;
}

.legal-hero .legal-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.legal-hero .legal-breadcrumb a:hover {
  color: rgba(255,255,255,0.9);
}

.legal-hero .legal-breadcrumb span {
  color: rgba(255,255,255,0.4);
  margin: 0 6px;
  font-size: 13px;
}

.legal-hero .legal-breadcrumb .current {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}

/* Legal Center Cards */
.legal-center-wrap {
  background: #f8fafc;
  min-height: 100vh;
}

.legal-card-item {
  border-radius: 16px !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden;
  cursor: pointer;
}

.legal-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
  border-color: rgba(25,118,210,0.15) !important;
}

.legal-card-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-card-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Legal Content Page */
.legal-content-wrap {
  background: #f8fafc;
  min-height: 100vh;
}

/* Table of Contents */
.legal-toc-card {
  border-radius: 12px !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  position: sticky;
  top: 80px;
}

.legal-toc-item {
  padding: 10px 16px;
  font-size: 13px;
  color: #546e7a;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  display: block;
  text-decoration: none;
  line-height: 1.5;
}

.legal-toc-item:hover {
  color: #1976d2;
  background: rgba(25, 118, 210, 0.04);
  border-left-color: rgba(25, 118, 210, 0.3);
}

.legal-toc-item.active {
  color: #1976d2;
  font-weight: 600;
  background: rgba(25, 118, 210, 0.06);
  border-left-color: #1976d2;
}

/* Article Content */
.legal-article-card {
  border-radius: 16px !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}

.legal-article h2.legal-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e3f2fd;
  scroll-margin-top: 100px;
}

.legal-article p {
  font-size: 14.5px;
  line-height: 1.95;
  color: #455a64;
  margin-bottom: 12px;
}

.legal-article .legal-sub-title {
  font-size: 15px;
  font-weight: 600;
  color: #263238;
  margin-bottom: 8px;
  margin-top: 16px;
}

.legal-article ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 16px;
}

.legal-article ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #455a64;
}

.legal-article ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #42a5f5;
}

.legal-article .legal-highlight-box {
  background: #f1f8ff;
  border-left: 3px solid #42a5f5;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

.legal-article .legal-highlight-box p {
  color: #37474f;
  margin-bottom: 0;
}

.legal-article a {
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.legal-article a:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* Contact Info Card */
.legal-contact-card {
  border-radius: 12px !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}

.legal-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.legal-contact-item:last-child {
  margin-bottom: 0;
}

.legal-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e3f2fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Related Links */
.legal-related-link {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #455a64;
  transition: all 0.2s;
  gap: 10px;
}

.legal-related-link:hover {
  background: #e3f2fd;
  color: #1976d2;
}

/* Back to top */
.legal-back-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 10;
}

/* Info Footer */
.legal-info-bar {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}

/* Mobile Adjustments */
@media (max-width: 959px) {
  .legal-hero {
    min-height: 180px;
  }

  .legal-toc-card {
    position: relative;
    top: 0;
  }

  .legal-card-item {
    margin-bottom: 8px;
  }

  .legal-back-top {
    bottom: 20px;
    right: 20px;
  }
}

/* Print Styles */
@media print {
  .legal-hero {
    background: none !important;
    color: #000 !important;
    min-height: auto;
  }

  .legal-toc-card,
  .legal-back-top,
  .legal-contact-card {
    display: none !important;
  }
}
