:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
[dir="rtl"] body { font-family: 'Segoe UI', Tahoma, 'Cairo', 'Noto Sans Arabic', sans-serif; }
.container { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo { font-weight: 700; color: var(--primary); text-decoration: none; font-size: 1.05rem; display: flex; align-items: center; gap: .4rem; }
.lang-switch { display: flex; gap: .25rem; flex-wrap: wrap; }
.lang-switch a {
  padding: .25rem .55rem; border-radius: 4px; font-size: .78rem; font-weight: 600;
  text-decoration: none; color: var(--muted); border: 1px solid var(--border); transition: all .15s;
}
.lang-switch a:hover, .lang-switch a.active { background: var(--primary); color: white; border-color: var(--primary); }
.breadcrumb { font-size: .82rem; color: var(--muted); padding: .65rem 0; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { margin: 0 .3rem; }
.legal-content {
  background: var(--surface);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.legal-content h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin-bottom: .5rem; }
.legal-content .updated { font-size: .82rem; color: var(--muted); margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.1rem; margin: 1.75rem 0 .5rem; color: var(--primary-dark); }
.legal-content h3 { font-size: .95rem; margin: 1.25rem 0 .35rem; }
.legal-content p { color: var(--muted); margin-bottom: .85rem; font-size: .93rem; }
.legal-content ul { color: var(--muted); font-size: .93rem; padding-left: 1.4rem; margin-bottom: .85rem; }
.legal-content ul li { margin-bottom: .35rem; }
[dir="rtl"] .legal-content ul { padding-left: 0; padding-right: 1.4rem; }
.placeholder {
  background: #fef9c3; border: 1px dashed #d97706;
  border-radius: 4px; padding: .15rem .4rem;
  font-style: italic; color: #92400e; font-size: .88rem;
}
footer { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .83rem; border-top: 1px solid var(--border); margin-top: 2rem; }
footer a { color: var(--primary); text-decoration: none; margin: 0 .5rem; }
