/* /var/www/admin/public/css/legal-pages.css */

:root {
  --text: #1C3644;
  --footer: #173845;
  --green: #26C281;
  --bg: #ffffff;
  --muted: rgba(28, 54, 68, 0.75);
  --border: rgba(28, 54, 68, 0.12);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

.legal-body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans Arabic", "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.legal-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.legal-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.legal-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(38, 194, 129, 0.12);
  border: 1px solid rgba(38, 194, 129, 0.35);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.legal-lang-toggle .sep { opacity: 0.7; font-weight: 600; }
.legal-lang-toggle .active { color: var(--green); }

.legal-main { flex: 1 0 auto; }

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 18px 40px;
}

.legal-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.legal-meta { font-size: 12px; color: var(--muted); }

.legal-meta .k {
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text);
  opacity: 0.85;
}

.legal-title {
  text-align: center;
  margin: 14px 0 18px;
  font-size: 28px;
  line-height: 1.2;
}

.legal-toc { margin: 10px 0 24px; padding: 0; }

.legal-toc ol {
  margin: 0;
  padding-inline-start: 18px;
  font-size: 13px;
  color: var(--muted);
}

.legal-toc a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted rgba(28, 54, 68, 0.35);
}

.legal-toc a:hover { border-bottom-style: solid; }

.legal-content { font-size: 14.5px; line-height: 1.85; }

.legal-content h2,
.legal-content h3 { margin: 22px 0 10px; line-height: 1.35; }

.legal-content h2 { font-size: 18px; }
.legal-content h3 { font-size: 16px; }

.legal-content p { margin: 0 0 12px; }

.legal-content ul,
.legal-content ol {
  margin: 8px 0 14px;
  padding-inline-start: 22px;
}

.legal-content li { margin: 6px 0; }
.legal-content a { color: var(--text); }

.legal-footer {
  background: var(--footer);
  color: #e8f1f4;
  flex-shrink: 0;
}

.legal-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 18px;
}

.legal-footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.legal-footer-links a {
  color: #e8f1f4;
  text-decoration: none;
  opacity: 0.95;
}

.legal-footer-links a:hover { text-decoration: underline; }

.legal-footer-copy {
  text-align: center;
  opacity: 0.9;
  font-size: 13px;
}

html[dir="rtl"] .legal-meta-row { flex-direction: row-reverse; }

html[dir="rtl"] .legal-toc ol {
  padding-inline-start: 0;
  padding-inline-end: 18px;
}

.legal-footer-links {
  justify-content: center;
}

html[dir="rtl"] .legal-footer-links {
  flex-direction: row-reverse;
}
