/* ─── LEGAL PAGES ─── */

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.legal-back {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.legal-back:hover {
  color: #D4AF37;
}

.legal-main {
  min-height: 100vh;
  background: #0D0D0D;
  padding: 80px 0;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.legal-updated {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: #6b7280;
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
}

.legal-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #d1d5db;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  color: #D4AF37;
  font-weight: 600;
  margin-bottom: 1rem;
}

.legal-section p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.8;
}

/* Footer legal links */
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-legal-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  color: #6b7280;
  text-decoration: none;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}

.footer-legal-link:hover {
  color: #D4AF37;
}

.footer-legal-sep {
  color: #374151;
}

/* Language selector for legal pages */
.legal-header .lang-selector {
  position: relative;
}

.legal-header .lang-btn {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #D4AF37;
  padding: 6px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}

.legal-header .lang-btn:hover {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.1);
}

.legal-header .lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  z-index: 100;
}

.legal-header .lang-dropdown.open {
  display: block;
}

.legal-header .lang-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 20px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.legal-header .lang-dropdown button:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #D4AF37;
}

/* RTL support for legal pages */
[dir="rtl"] .legal-header-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .legal-section h2,
[dir="rtl"] .legal-section p,
[dir="rtl"] .legal-intro,
[dir="rtl"] .legal-title,
[dir="rtl"] .legal-updated {
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-title {
    font-size: 2rem;
  }

  .legal-main {
    padding: 40px 0;
  }

  .legal-header-inner {
    height: 60px;
  }
}
