/* Shared styling for the standalone legal pages (Rotion App brand). */
:root {
  --bg: #0a1622;
  --bg-2: #0e1c2b;
  --border: #1d3145;
  --text: #e8eef5;
  --text-dim: #93a4b8;
  --text-mute: #647588;
  --accent: #2563eb;
  --accent-2: #00e5a0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  line-height: 1.8;
  font-size: 15px;
}
a { color: var(--accent-2); }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px 80px; }

header.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 48px);
  background: rgba(10, 22, 34, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; }
.langs { display: flex; gap: 6px; }
.langs button {
  min-width: 44px; height: 34px; border-radius: 8px; cursor: pointer;
  border: 1px solid #294056; background: #14273a; color: var(--text);
  font-weight: 700; font-size: 13px; font-family: inherit;
}
.langs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 900; margin: 40px 0 6px; }
h2 { font-size: 19px; font-weight: 800; margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid var(--border); }
h2:first-of-type { border-top: none; padding-top: 0; }
p, li { color: var(--text-dim); }
li { margin-bottom: 6px; }
strong { color: var(--text); }
.updated { color: var(--text-mute); font-size: 13px; margin: 0 0 8px; }
.lead { color: var(--text); font-size: 16px; }
.box {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; margin: 20px 0;
}
footer.bot {
  border-top: 1px solid var(--border); padding: 24px 20px; text-align: center;
  color: var(--text-mute); font-size: 13px;
}
footer.bot a { margin: 0 8px; }

/* Language sections: both visible without JS; the toggle hides one. */
[data-lang='ar'] { direction: rtl; text-align: right; }
[data-lang='en'] { direction: ltr; text-align: left; }
.hidden { display: none; }
