/* ==========================================================================
   LUXE — Dedicated Legal Documents CSS
   ========================================================================== */

/* ---------- Legal Hero ---------- */
.legal-hero {
  position: relative;
  overflow: hidden;
  background: #0B1220;
  padding: 100px 0 80px;
  text-align: center;
  color: #fff;
}
.legal-hero .hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.45), transparent 50%),
    radial-gradient(circle at 20% 85%, rgba(16, 185, 129, 0.25), transparent 45%);
  filter: blur(10px);
  animation: meshDrift 14s ease-in-out infinite alternate;
}

/* ---------- Document Card ---------- */
.doc-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.doc-card:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

/* ---------- Document Thumbnail ---------- */
.doc-thumb-wrap {
  aspect-ratio: 1 / 1.41; /* A4 aspect ratio */
  background: #F1F5F9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
  margin-bottom: 24px;
}
.doc-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.doc-card:hover .doc-thumb-wrap img {
  transform: scale(1.04);
}

/* ---------- Verified Status Badge ---------- */
.badge-verified {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Actions Row ---------- */
.doc-actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 12px;
}
.doc-actions .btn {
  flex: 1;
}

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: var(--color-text-dark);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  text-align: center;
}
.newsletter-form { max-width: 460px; margin: 24px auto 0; display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1;
  border-radius: var(--radius-pill);
  border: none;
  padding: 13px 22px;
}

.main-nav .nav-link.active,
.main-nav .nav-link:hover { color: var(--color-primary); }
.main-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 3px; left: 16px; right: 16px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ---------- 8. Custom Lightbox Modal ---------- */
.legal-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.95);
  z-index: 1100;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.legal-modal.show {
  display: flex;
  opacity: 1;
}
.legal-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1110;
}
.legal-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}
.legal-modal-viewport {
  width: 90%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.legal-modal-content-container {
  width: 100%;
  height: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.legal-modal-content-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.legal-modal-content-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
