/* Maadaty legal/info pages — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  /* Two brand colors with distinct jobs, and a separate value for each ROLE.
     --brand-dark previously did double duty as both a fill carrying white text
     and as a text color on white; one value cannot clear AA for both. */
  --brand: #F76833;       /* action fill: 3.01:1 under white glyphs */
  --brand-gold: #FBBF24;  /* identity only — 1.67:1, never text */
  --brand-deep: #C2410C;  /* fill under white BODY text: 5.18:1 */
  --brand-ink: #B03A0B;   /* brand-colored TEXT on white: 6.08:1 */
  --ink: #242B38;
  --muted: #5B6472;
  --line: #E6E9EF;
  --bg: #F7F8FA;
  --card: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  direction: rtl;
}

.topbar {
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand) 55%, var(--ink) 100%);
  color: #fff;
  padding: 40px 20px 56px;
  text-align: center;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 26px; letter-spacing: .5px;
}
.brand .logo {
  width: 46px; height: 46px; border-radius: 12px; background: #fff; color: var(--brand-ink);
  display: grid; place-items: center; font-size: 26px; font-weight: 800;
}
.topbar h1 { margin: 22px 0 6px; font-size: 30px; font-weight: 800; }
.topbar p { margin: 0; font-weight: 400; }

.wrap { max-width: 820px; margin: -32px auto 60px; padding: 0 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px; box-shadow: 0 10px 30px rgba(23,21,15,.07);
}
.updated { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

h2 { font-size: 21px; font-weight: 700; margin: 30px 0 10px; color: var(--brand-ink); }
h2:first-of-type { margin-top: 6px; }
h3 { font-size: 17px; font-weight: 700; margin: 18px 0 6px; }
p, li { font-size: 16px; color: var(--ink); }
ul { padding-inline-start: 22px; }
li { margin: 6px 0; }
a { color: var(--brand-ink); }

.note {
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px;
  padding: 14px 16px; margin: 16px 0; color: #065f46;
}
.warn {
  background: #FEFCE8; border: 1px solid #FDE68A; border-radius: 12px;
  padding: 14px 16px; margin: 16px 0; color: #854D0E;
}
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding-inline-start: 44px; margin: 14px 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-deep); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 15px;
}
.btn {
  display: inline-block; background: var(--brand-deep); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; margin-top: 8px;
}
.footer { text-align: center; color: var(--muted); font-size: 14px; padding: 10px 0 40px; }
.footer a { margin: 0 8px; }
.contact { font-weight: 500; }
