/* ============================================
   Tilawa Website — Legal Pages Shared Styles
   ============================================ */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 40px 80px;
}
.legal-page .section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.legal-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem; font-weight: 700;
  color: var(--warm-white); line-height: 1.2;
  margin-bottom: 12px;
}
.legal-meta {
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 48px; font-weight: 300;
}
.legal-page h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem; font-weight: 600;
  color: var(--warm-white);
  margin: 40px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.legal-page h2:first-of-type { border-top: none; padding-top: 0; }
.legal-page p {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.8; font-weight: 300;
  margin-bottom: 16px;
}
.legal-page ul, .legal-page ol {
  margin: 0 0 16px 24px;
}
body.rtl .legal-page ul,
body.rtl .legal-page ol {
  margin: 0 24px 16px 0;
}
.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page li {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.8; font-weight: 300;
  margin-bottom: 6px;
}
.legal-page a {
  color: var(--teal-glow);
  text-decoration: none;
  transition: color 0.3s;
}
.legal-page a:hover { color: var(--gold); }

/* Cookie table */
.cookie-table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0 24px;
}
.cookie-table th {
  text-align: left; padding: 12px 16px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
body.rtl .cookie-table th { text-align: right; }
.cookie-table td {
  padding: 12px 16px; font-size: 0.9rem;
  color: var(--text-secondary); font-weight: 300;
  line-height: 1.6;
  border-bottom: 1px solid var(--surface);
}
.cookie-table tr:hover { background: var(--surface); }

/* Legal nav */
.legal-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.88rem; font-weight: 400;
  transition: color 0.3s;
}
.nav-back:hover { color: var(--gold); }

/* Legal footer */
.legal-footer {
  padding: 40px; border-top: 1px solid var(--border);
  background: var(--bg-secondary); text-align: center;
}
.legal-footer p {
  font-size: 0.78rem; color: var(--text-muted); font-weight: 300;
}
.legal-footer a { color: var(--gold); text-decoration: none; }
.legal-footer .footer-legal-links {
  display: flex; gap: 20px; justify-content: center; margin-top: 12px;
}
.legal-footer .footer-legal-links a {
  font-size: 0.78rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.3s;
}
.legal-footer .footer-legal-links a:hover { color: var(--text-secondary); }

@media (max-width: 768px) {
  .legal-nav { padding: 0 20px; }
  .legal-page { padding: 100px 20px 60px; }
  .legal-page h1 { font-size: 2rem; }
  .cookie-table { font-size: 0.85rem; }
  .cookie-table th, .cookie-table td { padding: 10px 12px; }
}
