/* aithao.com legal pages — privacy, terms, support.
   One dark scene like the homepage: graphite with a cold cast, lit from the
   top right. Loaded as a file because the site CSP refuses inline styles.
   Logical properties throughout so Arabic and Urdu mirror correctly. */
:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-2: #0a1019;
  --panel: rgba(18, 27, 40, 0.72);
  --panel-solid: #111a27;
  --line: rgba(189, 217, 241, 0.13);
  --line-strong: rgba(189, 217, 241, 0.24);
  --text: #f5f5f7;
  --text-2: #bec7d2;
  --muted: #8b98a9;
  --ice: #bdd9f1;
  --accent: #5cb8ff;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --gutter: clamp(18px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 var(--font);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55vw 45vh at 88% 0%, rgba(92, 184, 255, 0.14), transparent 70%),
    radial-gradient(45vw 55vh at 0% 100%, rgba(40, 90, 150, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
img { max-width: 100%; display: block; }
a { color: var(--ice); text-decoration-color: rgba(189, 217, 241, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--ice); color: #06101c; font-weight: 600; }
.skip:focus { top: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 40; padding-block: 14px; }
.top-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 15, 24, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 40px -18px rgba(0, 0, 0, 0.8);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; min-height: 40px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.doc-nav { display: flex; gap: 2px; margin-inline-start: auto; }
.doc-nav a { color: var(--text-2); text-decoration: none; font-size: 0.92rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.doc-nav a:hover { color: var(--text); background: rgba(189, 217, 241, 0.07); }
.doc-nav a[aria-current="page"] { color: var(--text); background: rgba(189, 217, 241, 0.12); }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-2); font-size: 0.9rem; white-space: nowrap;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-menu[open] summary { color: var(--text); border-color: var(--line-strong); }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none;
  width: min(250px, 80vw); max-height: 60vh; overflow-y: auto;
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: var(--panel-solid);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  column-count: 1;
}
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 0.92rem; }
.lang-menu li a:hover { background: rgba(189, 217, 241, 0.08); color: var(--text); }
.lang-menu li a[aria-current="true"] { color: var(--text); background: rgba(92, 184, 255, 0.16); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(28px, 7vh, 72px) clamp(24px, 5vh, 48px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ice); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.updated { margin: 16px 0 0; color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.lede { margin: 20px 0 0; max-width: 60ch; color: var(--text-2); font-size: 1.08rem; line-height: 1.65; }
.hero-art { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06); aspect-ratio: 1100 / 620; max-width: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border: 1px solid rgba(92, 184, 255, 0.3); border-radius: 16px; background: rgba(92, 184, 255, 0.07); color: var(--text-2); font-size: 0.93rem; max-width: 62ch; }
.notice svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

/* at a glance */
.glance { padding-block: 8px clamp(28px, 6vh, 56px); }
.glance h2 { margin: 0 0 16px; font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.glance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.glance-grid a { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s; }
.glance-grid a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.glance-grid .ic { grid-row: span 2; }
.glance-grid strong { font-size: 1rem; line-height: 1.35; color: var(--text); }
.glance-grid span.t { color: var(--text-2); font-size: 0.92rem; line-height: 1.5; }

/* icon chip, shared */
.ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(160deg, rgba(92, 184, 255, 0.22), rgba(92, 184, 255, 0.06)); border: 1px solid rgba(92, 184, 255, 0.28); color: var(--ice); flex: none; }
.ic svg { width: 21px; height: 21px; }

/* document */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: 8px 80px; border-top: 1px solid var(--line); padding-top: 40px; }
.toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
.toc details > summary { display: none; }
.toc p.toc-title { margin: 0 0 10px; color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 0.9rem; line-height: 1.35; }
.toc a:hover { background: rgba(189, 217, 241, 0.07); color: var(--text); }
.toc a svg { flex: none; width: 16px; height: 16px; color: var(--muted); }
.content { max-width: 74ch; min-width: 0; }
.content > p:first-child { margin-top: 0; }
.doc-section { padding-block: 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
.doc-section:first-child { padding-top: 0; }
.doc-section:last-child { border-bottom: 0; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 1.32rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; text-wrap: balance; }
.content p, .content li { color: var(--text-2); }
.content strong { color: var(--text); font-weight: 600; }
.content ul { padding-inline-start: 1.2em; margin: 12px 0; }
.content li { margin: 8px 0; }
.content li::marker { color: var(--accent); }
.content h3 { margin: 22px 0 6px; font-size: 1.05rem; color: var(--text); }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 0.92rem; min-width: 520px; }
.table-wrap th { text-align: start; padding: 12px 14px; color: var(--text); font-weight: 600; background: rgba(189, 217, 241, 0.06); border-bottom: 1px solid var(--line-strong); }
.table-wrap td { text-align: start; vertical-align: top; padding: 11px 14px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--text); }
.card { margin: 0 0 24px; padding: 20px 22px; border: 1px solid rgba(92, 184, 255, 0.28); border-radius: 18px; background: linear-gradient(160deg, rgba(92, 184, 255, 0.1), rgba(92, 184, 255, 0.03)); }
.card p { margin: 0; color: var(--text); }
.content dl { margin: 0; }
.content dt { margin-top: 18px; color: var(--text); font-weight: 600; }
.content dd { margin: 6px 0 0; color: var(--text-2); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-inline-start: auto; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; max-height: 260px; }
  .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .toc { position: static; max-height: none; }
  .toc details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 4px 8px; }
  .toc details > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 6px 8px; cursor: pointer; color: var(--text); font-weight: 600; list-style: none; }
  .toc details > summary::-webkit-details-marker { display: none; }
  .toc details > summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; }
  .toc details[open] > summary::after { content: "−"; }
  .toc p.toc-title { display: none; }
  .toc ol { padding-bottom: 8px; }
}
@media (max-width: 640px) {
  .top-bar { flex-wrap: wrap; border-radius: 22px; }
  .doc-nav { order: 3; width: 100%; margin-inline-start: 0; flex-wrap: wrap; justify-content: flex-start; }
  .doc-nav a { padding: 7px 10px; font-size: 0.88rem; }
  .lang-menu { margin-inline-start: auto; }
  .glance-grid { grid-template-columns: minmax(0, 1fr); }
  .foot nav { margin-inline-start: 0; }
}
