/*
  Shared styling for the long-form pages (Privacy, Terms).
  One stylesheet, so the two documents cannot drift apart visually the way
  two copies of the same CSS always eventually do.

  These pages DO scroll — they are legal documents, and cramming a privacy
  policy into one viewport would be a worse decision than scrolling. Only
  the landing page is fixed to one screen.
*/
@font-face{font-family:Vazirmatn;src:url(/fonts/Vazirmatn-Regular.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Vazirmatn;src:url(/fonts/Vazirmatn-Medium.woff2) format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:Vazirmatn;src:url(/fonts/Vazirmatn-SemiBold.woff2) format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:Vazirmatn;src:url(/fonts/Vazirmatn-Bold.woff2) format('woff2');font-weight:700;font-display:swap}

:root{
  --bg:#07080C;
  --gold:#E0A93F; --gold-t:#F0C878; --on-gold:#150F04;
  --fg:#FFFFFF; --fg-2:#97A1B3; --fg-3:#5A6478;
  --glass:rgba(255,255,255,.05);
  --line:rgba(255,255,255,.10);
  --fa:Vazirmatn,-apple-system,BlinkMacSystemFont,'Segoe UI',Tahoma,sans-serif;
  --en:-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  background:var(--bg); color:var(--fg-2);
  font-family:var(--fa); line-height:2.05;
  -webkit-font-smoothing:antialiased;
  padding:0 20px 90px;
}
html[lang=en]{direction:ltr}
html[lang=en] body{font-family:var(--en);line-height:1.68}

/* atmosphere — quieter than the landing page; this is a reading surface */
.bg{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.bg i{position:absolute;display:block;border-radius:50%;filter:blur(90px);
  width:80vmax;height:80vmax;top:-46vmax;inset-inline-start:-30vmax;
  background:radial-gradient(circle,rgba(43,86,168,.30),transparent 66%)}
.bg u{position:absolute;inset:0;opacity:.022;
  background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'>\
<g fill='none' stroke='%23E0A93F' stroke-width='1'>\
<path d='M110 0 L220 110 L110 220 L0 110 Z'/>\
<path d='M110 38 L182 110 L110 182 L38 110 Z'/>\
<path d='M0 0 L72 72 M220 0 L148 72 M0 220 L72 148 M220 220 L148 148'/>\
</g></svg>")}

main{position:relative;z-index:1;max-width:720px;margin:0 auto;padding-top:76px}

/* language toggle — identical to the landing page's, deliberately */
.lang{
  position:fixed; z-index:5;
  top:16px; inset-inline-end:clamp(14px,3vw,26px);
  display:flex; gap:2px; padding:3px;
  background:rgba(13,16,23,.86); backdrop-filter:blur(10px);
  border:1px solid var(--line); border-radius:999px;
}
.lang button{
  font:inherit; font-size:12.5px; font-weight:600; letter-spacing:.2px;
  color:var(--fg-2); background:none; border:0; cursor:pointer;
  padding:6px 13px; border-radius:999px; line-height:1;
  transition:color .18s, background .18s;
}
.lang button[aria-pressed=true]{background:var(--gold);color:var(--on-gold)}
.lang button:not([aria-pressed=true]):hover{color:var(--fg)}

.back{
  display:inline-flex; align-items:center; gap:7px;
  color:var(--fg-2); text-decoration:none; font-size:14px;
  margin-bottom:30px; transition:color .18s;
  border-bottom:0;                 /* the generic link underline is noise here */
}
.back::before{content:'←';font-size:15px}
html[dir=rtl] .back::before{content:'→'}
.back:hover{color:var(--gold-t)}

h1{color:var(--fg);font-size:clamp(26px,6vw,35px);font-weight:700;
   line-height:1.45;margin-bottom:5px}
html[lang=en] h1{line-height:1.2}
.upd{color:var(--fg-3);font-size:13.5px;margin-bottom:34px}

h2{color:var(--gold-t);font-size:18.5px;font-weight:700;
   margin:36px 0 11px;line-height:1.6}
html[lang=en] h2{line-height:1.35}

p,li{font-size:15.5px}
ul{padding-inline-start:22px;margin:11px 0}
li{margin-bottom:8px}
b{color:var(--fg);font-weight:600}
a{color:var(--gold-t);text-decoration:none;border-bottom:1px solid rgba(240,200,120,.28)}
a:hover{border-bottom-color:var(--gold-t)}

.box{
  background:var(--glass); border:1px solid var(--line);
  border-radius:16px; padding:19px 22px; margin:24px 0;
  font-size:15px;
}

/* Tables get horizontal scroll rather than squeezing three columns into
   360px, which turns every cell into a two-word column. */
table{
  width:100%; border-collapse:collapse; margin:18px 0; font-size:14.5px;
  display:block; overflow-x:auto; white-space:nowrap;
}
th,td{
  text-align:start; padding:11px 14px;
  border-bottom:1px solid var(--line);
}
th{color:var(--fg);font-weight:600;font-size:14px}
td:last-child{white-space:normal;min-width:190px}

footer{
  border-top:1px solid var(--line); margin-top:52px; padding-top:24px;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:12px; font-size:13px; color:var(--fg-3);
}
footer a{color:var(--fg-2);border-bottom:0}
footer a:hover{color:var(--gold-t)}
footer .dot{width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.42}
footer .co{opacity:.75}

[hidden]{display:none !important}
