/* Professional Legal Page Styling - Fixed & Organized */

.legal-hero {
  padding: 160px 40px 60px;
  background: linear-gradient(135deg, #0A1F44 0%, #1a3a6e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.legal-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 15px;
}

.legal-meta-hero {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* Sidebar Styling */
.legal-sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 100px;
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.legal-sidebar h3 {
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 20px;
  font-weight: 700;
}

.legal-nav-link {
  display: block;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  padding-left: 10px;
  border-left: 2px solid transparent;
}

html[dir="rtl"] .legal-nav-link {
  padding-left: 0;
  padding-right: 10px;
  border-left: none;
  border-right: 2px solid transparent;
}

.legal-nav-link:hover, .legal-nav-link.active {
  color: #1a3a6e;
  border-color: #1a3a6e;
  font-weight: 500;
}

/* Content Styling */
.legal-content {
  flex: 1;
  background: white;
  padding: 40px 50px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.legal-section {
  margin-bottom: 50px;
}

.legal-section-title {
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.legal-content p {
  color: #334155;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 20px;
}

.legal-content .subhead {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 10px;
  margin-top: 25px;
}

.legal-list {
  padding-left: 25px;
  margin-bottom: 30px;
  color: #334155;
  line-height: 1.8;
  list-style-type: disc;
}

html[dir="rtl"] .legal-list {
  padding-left: 0;
  padding-right: 25px;
}

.legal-list li {
  margin-bottom: 10px;
}

.legal-link {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-contact-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 24px 30px;
  border-radius: 8px;
  margin: 35px 0;
  font-size: 0.95rem;
}

.legal-contact-box p {
  margin: 0;
  color: #0f172a;
  line-height: 1.8;
}

.legal-closing {
  margin-top: 40px;
  font-size: 1.1rem;
  color: #0f172a;
  font-weight: 600;
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .legal-container {
    flex-direction: column;
    padding: 40px 20px;
    gap: 30px;
  }
  
  .legal-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    padding: 20px;
  }
  
  .legal-content {
    width: 100%;
    padding: 30px 20px;
  }
}

/* Bilingual Toggle */
html[lang="ar"] .content-en { display: none !important; }
html[lang="en"] .content-ar { display: none !important; }
