/* Shared style for /uaenews/legal/* pages. Matches the landing page (dark canvas, Indigo gradient). */
@font-face { font-family: "Jakarta"; src: url(/uaenews/assets/PlusJakartaSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(/uaenews/assets/PlusJakartaSans-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(/uaenews/assets/PlusJakartaSans-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Dubai"; src: url(/uaenews/assets/Dubai-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Dubai"; src: url(/uaenews/assets/Dubai-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root { --canvas: #07080F; --canvas-2: #0B0D17; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14); --ink: #F3F4F8; --ink-2: #B4B9CB; --ink-3: #747A92; --grad: linear-gradient(135deg, #6366F1, #A855F7); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink-2); font: 400 16.5px/1.75 "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #A5B4FC; text-underline-offset: 3px; }
a:hover { color: #C7D2FE; }
:focus-visible { outline: 2px solid #A855F7; outline-offset: 3px; border-radius: 4px; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(7,8,15,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { font-weight: 800; }
.top nav { margin-inline-start: auto; display: flex; gap: 20px; font-size: 14px; font-weight: 700; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a[aria-current] { color: var(--ink); }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: #4F46E5; filter: blur(110px); opacity: .35; top: -300px; right: -120px; }
.hero-in { position: relative; max-width: 1120px; margin: 0 auto; padding: 64px 20px 48px; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: #A5B4FC; text-transform: uppercase; }
h1 { color: var(--ink); font-size: clamp(38px, 6vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 12px 0 14px; }
.meta { font-size: 14px; color: var(--ink-3); }

.layout { max-width: 1120px; margin: 0 auto; padding: 40px 20px 80px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 13.5px; max-height: calc(100vh - 110px); overflow: auto; }
.toc p { font-weight: 800; color: var(--ink); margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: t; }
.toc a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--ink-3); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); background: rgba(255,255,255,.04); }

article { max-width: 760px; }
article h2 { color: var(--ink); font-size: 22px; letter-spacing: -.02em; line-height: 1.3; margin: 44px 0 10px; scroll-margin-top: 84px; }
article h3 { color: var(--ink); font-size: 17px; margin: 24px 0 6px; }
article p, article li { margin: 0 0 12px; }
article ul, article ol { padding-inline-start: 22px; margin: 0 0 14px; }
article strong { color: var(--ink); }
.caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: .01em; color: var(--ink); }

.keys { border-radius: 20px; padding: 24px 26px; background: linear-gradient(160deg, rgba(99,102,241,.16), rgba(168,85,247,.08)), var(--canvas-2); border: 1px solid rgba(165,180,252,.25); margin-bottom: 12px; }
.keys h2 { margin-top: 0; font-size: 18px; }
.keys ul { margin: 0; padding-inline-start: 20px; }
.keys li { margin-bottom: 6px; }

.table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 18px; display: block; overflow-x: auto; }
.table th, .table td { text-align: start; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.table th { color: var(--ink); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.table td:first-child { color: var(--ink); font-weight: 700; white-space: nowrap; }

.ar { direction: rtl; font-family: "Dubai", "Geeza Pro", system-ui, sans-serif; border-radius: 20px; padding: 24px 26px; background: var(--canvas-2); border: 1px solid var(--line); margin-top: 48px; font-size: 17px; line-height: 1.9; }
.ar h2 { margin-top: 0; font-family: inherit; letter-spacing: 0; }
.ar ul { padding-inline-start: 22px; }

footer { border-top: 1px solid var(--line); }
.foot { max-width: 1120px; margin: 0 auto; padding: 28px 20px 40px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--ink-3); }
.foot a { color: var(--ink-2); text-decoration: none; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
  .top nav { gap: 14px; }
  .hero-in { padding: 44px 20px 36px; }
}
@media print {
  body { background: #fff; color: #222; }
  .top, .toc, .hero::before { display: none; }
  .layout { display: block; }
  h1, article h2, article h3, article strong, .caps { color: #000; }
}

/* Light theme (default, like the app). Dark when the visitor picked it on the home page. */
:root[data-theme="light"] { color-scheme: light; --canvas: #F5F6FA; --canvas-2: #FFFFFF; --line: rgba(14,18,34,.08); --line-2: rgba(14,18,34,.14); --ink: #0E1222; --ink-2: #3F4558; --ink-3: #6E7489; }
[data-theme="light"] a { color: #4F46E5; }
[data-theme="light"] a:hover { color: #3730A3; }
[data-theme="light"] .kicker { color: #4F46E5; }
[data-theme="light"] .top { background: rgba(245,246,250,.85); }
[data-theme="light"] .hero::before { opacity: .14; }
[data-theme="light"] .toc a:hover { background: rgba(14,18,34,.04); }
[data-theme="light"] .keys { background: linear-gradient(160deg, rgba(99,102,241,.08), rgba(168,85,247,.04)), #fff; border-color: rgba(99,102,241,.22); }
[data-theme="light"] .ar { background: #fff; }
