/* Shared styles for the legal pages (privacy.html, terms.html, return-policy.html).
   Matches the site's dark + gold look. */
:root{ --gold:#e3b23c; --text:#f4efe6; --muted:#a99f8f; --line:#2c2925; --bg:#0c0b0a; --card:#161412; }
*{ box-sizing:border-box; }
html{ background:var(--bg); color:var(--text); }
body{ margin:0; font-family:'Poppins',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif; line-height:1.7; font-size:15px; }
html[dir="rtl"] body{ font-family:'Noto Naskh Arabic','Poppins',system-ui,sans-serif; font-size:16px; }
.legal-wrap{ max-width:820px; margin:0 auto; padding:20px 18px 60px; padding-bottom:calc(60px + env(safe-area-inset-bottom,0px)); }
.legal-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.legal-top a.back{ color:var(--gold); text-decoration:none; font-weight:600; font-size:14px; }
.lang-switch{ display:flex; gap:6px; }
.lang-switch button{
  font:inherit; font-size:13px; font-weight:600; cursor:pointer; color:var(--gold); background:transparent;
  border:1px solid rgba(227,178,60,.55); border-radius:999px; padding:5px 14px;
}
.lang-switch button[aria-pressed="true"]{ background:var(--gold); color:#1a1408; }
h1{ font-size:26px; line-height:1.25; margin:6px 0 4px; color:var(--gold); }
.updated{ color:var(--muted); font-size:13px; margin:0 0 22px; }
h2{ font-size:18px; margin:30px 0 8px; color:var(--gold); }
p, li{ margin:0 0 10px; }
ul, ol{ margin:0 0 12px; padding-inline-start:22px; }
a{ color:var(--gold); overflow-wrap:anywhere; }
.note{ background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin:14px 0; }
table{ width:100%; border-collapse:collapse; margin:10px 0 16px; font-size:14px; }
th, td{ border:1px solid var(--line); padding:8px 10px; text-align:start; vertical-align:top; }
th{ background:var(--card); color:var(--gold); }
.table-scroll{ overflow-x:auto; }
.legal-foot{ margin-top:36px; padding-top:16px; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:8px 18px; font-size:13px; }
/* show only the chosen language */
html[data-lang="en"] [lang="ar"]:not(html){ display:none; }
html[data-lang="ar"] [lang="en"]:not(html){ display:none; }
