/* WaslaCo Legal — Stylesheet
   Brand: green #2F842F, dark green #0d3d1a, gold #FCA905
   Fonts: DM Sans (EN), IBM Plex Sans Arabic (AR)
*/

:root {
  --green: #2F842F;
  --green-dark: #0d3d1a;
  --green-light: #edf6ed;
  --gold: #FCA905;
  --gold-light: #fff8e6;
  --white: #ffffff;
  --off-white: #f8faf9;
  --text-dark: #0d1f17;
  --text-mid: #3d5a47;
  --text-muted: #7a9585;
  --border: #d6e4d6;
  --border-soft: #eaf1ea;
  --font-en: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.ltr { font-family: var(--font-en); direction: ltr; text-align: left; }
body.rtl { font-family: var(--font-ar); direction: rtl; text-align: right; }

a { color: var(--green); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--green-dark); }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 5vw;
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.01em;
}
.logo span { color: var(--gold); }

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.print-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-mid);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.print-btn:hover { background: var(--green-light); border-color: var(--green); color: var(--green); }

.lang-btn {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
}
body.ltr .lang-btn { font-family: var(--font-ar); }
body.rtl .lang-btn { font-family: var(--font-en); }
.lang-btn:hover { background: var(--green); color: var(--white); }

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 5vw;
}

.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb a { color: var(--text-mid); font-weight: 500; }
.breadcrumb a:hover { color: var(--green); }

.breadcrumb .sep {
  color: var(--text-muted);
  opacity: 0.5;
}
body.ltr .breadcrumb .sep::before { content: '›'; }
body.rtl .breadcrumb .sep::before { content: '‹'; }

.breadcrumb span:not(.sep) { color: var(--text-dark); font-weight: 600; }

/* ── PAGE TITLE ── */
.page-title-section {
  background: var(--white);
  padding: 48px 5vw 32px;
  border-bottom: 1px solid var(--border-soft);
}

.page-title {
  max-width: 1100px;
  margin: 0 auto;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.page-meta {
  max-width: 1100px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.page-meta .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
  opacity: 0.5;
}

.title-divider {
  max-width: 1100px;
  margin: 24px auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--gold) 100%);
  width: 64px;
  border-radius: 2px;
}

/* ── CONTENT ── */
.content-wrap {
  flex: 1;
  padding: 40px 5vw 64px;
}

.content-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px clamp(24px, 5vw, 64px);
  box-shadow: 0 1px 3px rgba(13, 31, 23, 0.04);
}

.content-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
  scroll-margin-top: 80px;
}

.content-card h2:first-child { margin-top: 0; }

.content-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  margin: 24px 0 10px;
}

.content-card p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.content-card p strong {
  color: var(--text-dark);
  font-weight: 700;
}

.content-card a {
  color: var(--green);
  font-weight: 500;
  border-bottom: 1px dotted var(--green);
}
.content-card a:hover { color: var(--gold); border-color: var(--gold); }

/* ── DOC LIST (legal index) ── */
.doc-list {
  display: grid;
  gap: 16px;
  margin: 32px 0;
}

.doc-item {
  display: block;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  transition: all 0.2s;
  border-bottom: 1px solid var(--border) !important;
}

.doc-item:hover {
  background: var(--green-light);
  border-color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 132, 47, 0.08);
}

.doc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.doc-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 8px;
  font-weight: 400;
}

.doc-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── RELATED BOX ── */
.related-box {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--green-light);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.related-box h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.related-box a {
  display: inline-block;
  margin-inline-end: 16px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  border-bottom: none;
}
.related-box a:hover { color: var(--green-dark); text-decoration: underline; }

/* ── FOOTER ── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 5vw;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--gold); }

.site-footer p {
  font-size: 12px;
  opacity: 0.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .site-header { height: 56px; }
  .logo { font-size: 18px; }
  .print-btn { width: 34px; height: 34px; }
  .lang-btn { padding: 6px 12px; font-size: 12px; }
  .page-title-section { padding: 32px 5vw 24px; }
  .content-wrap { padding: 24px 4vw 48px; }
  .content-card { padding: 28px 20px; border-radius: 10px; }
  .content-card h2 { font-size: 18px; }
  .content-card p { font-size: 14px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── PRINT ── */
@media print {
  .site-header, .breadcrumb-bar, .site-footer, .header-actions, .print-btn, .lang-btn { display: none !important; }
  body { background: white; }
  .content-card { border: none; box-shadow: none; padding: 0; }
  .page-title-section { padding: 0 0 16px; border: none; }
  .title-divider { display: none; }
  .content-card h2 { color: #000; border-color: #ccc; }
  .content-card p { color: #222; }
  a { color: #000 !important; border: none !important; text-decoration: none !important; }
}
