/* Heyya legal pages (/privacy, /terms): the app's dark palette, readable at
   360 px, no inline styles or scripts (the CSP allows only 'self'). */
:root{
  --wall:#0b141a; --panel:#111b21; --panel-2:#182229; --hdr:#202c33; --line:rgba(134,150,160,.18);
  --txt:#e9edef; --dim:#8696a0; --acc:#00a884; --link:#53bdeb;
  --notice-bg:#342c17; --notice-txt:#f7d37c;
  color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--wall);-webkit-text-size-adjust:100%}
body{background:var(--wall);color:var(--txt);
  font-family:-apple-system,'Segoe UI',Roboto,Helvetica,sans-serif;font-size:16px;line-height:1.55}
a{color:var(--link);text-decoration:underline;overflow-wrap:anywhere}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px}

.lhdr{position:sticky;top:0;z-index:1;background:var(--hdr);padding:env(safe-area-inset-top) 0 0}
.lhdr .in{max-width:760px;margin:0 auto;min-height:56px;display:flex;align-items:center;gap:10px;padding:0 16px}
.lhdr img{width:36px;height:36px;flex-shrink:0}
.lhdr .brand{font-size:20px;line-height:24px;font-weight:600;color:var(--acc)}
.lhdr .back{margin-inline-start:auto;min-height:44px;display:inline-flex;align-items:center;
  color:var(--txt);font-size:14px;text-decoration:none;padding:0 4px}
.lhdr .back:hover{text-decoration:underline}

main{max-width:760px;margin:0 auto;padding:20px 16px 48px}
h1{font-size:26px;line-height:32px;font-weight:600;margin:4px 0 4px}
.ver{color:var(--dim);font-size:14px;margin-bottom:16px}
.draft{background:var(--notice-bg);color:var(--notice-txt);border-radius:12px;padding:12px 14px;
  margin:12px 0 20px;font-weight:600;font-size:15px;line-height:1.45}
h2{font-size:19px;line-height:26px;font-weight:600;margin:28px 0 8px;color:var(--txt)}
h3{font-size:16px;line-height:22px;font-weight:600;margin:18px 0 6px;color:var(--txt)}
p{margin:0 0 12px}
ul{margin:0 0 12px;padding-inline-start:22px}
li{margin:0 0 6px}
.dim{color:var(--dim)}
.box{background:var(--panel-2);border-radius:12px;padding:12px 14px;margin:8px 0 14px}
dl.ret{margin:0 0 12px;border-top:1px solid var(--line)}
dl.ret div{padding:10px 0;border-bottom:1px solid var(--line)}
dl.ret dt{font-weight:600}
dl.ret dd{color:var(--txt)}
code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;background:var(--hdr);
  padding:1px 5px;border-radius:5px;overflow-wrap:anywhere}
footer{max-width:760px;margin:0 auto;padding:0 16px 40px;color:var(--dim);font-size:14px}

/* ---- legal-compliance round (2026-10-02): /privacy /terms /refunds /contact ---- */
.hidden{display:none !important}
/* a legal.json value that is still a placeholder, e.g. [LEGAL NAME] */
.ph{background:var(--notice-bg);color:var(--notice-txt);border-radius:4px;padding:0 4px;
  font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.92em;overflow-wrap:anywhere}
/* a note for the owner's lawyer, shown while the page is a draft */
.op-note{color:var(--notice-txt);font-size:13px;font-family:ui-monospace,Menlo,Consolas,monospace}
.tablewrap{overflow-x:auto;margin:8px 0 12px;-webkit-overflow-scrolling:touch}
table.notice{width:100%;border-collapse:collapse;font-size:14px;line-height:1.45;min-width:480px}
table.notice th,table.notice td{text-align:start;vertical-align:top;padding:8px 8px;
  border-bottom:1px solid var(--line)}
table.notice th{color:var(--dim);font-weight:600;font-size:13px}
/* phones: each row of the short notice becomes a small card (no sideways scroll) */
@media (max-width:560px){
  table.notice{min-width:0}
  table.notice thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  table.notice tr{display:block;padding:8px 0;border-bottom:1px solid var(--line)}
  table.notice td{display:block;border:0;padding:1px 0}
  table.notice td:first-child{font-weight:600}
  table.notice td:nth-child(2)::before{content:"Why: ";color:var(--dim)}
  table.notice td:nth-child(3)::before{content:"Shared with: ";color:var(--dim)}
}
ul.links{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-wrap:wrap;gap:4px 18px}
ol.roman{list-style:none;padding-inline-start:6px;margin:0 0 12px}
.hindi{margin-top:28px;padding-top:4px;border-top:1px solid var(--line)}
.box p:last-child{margin-bottom:0}
.dim{color:var(--dim)}

/* the complaint form and status lookup (/contact, driven by /static/legal.js) */
.lform{display:flex;flex-direction:column;gap:4px;margin:8px 0 16px}
.lform label{font-size:14px;font-weight:600;margin-top:8px}
.lform input,.lform select,.lform textarea{width:100%;min-height:44px;background:var(--hdr);color:var(--txt);
  border:1px solid var(--line);border-radius:8px;padding:10px 12px;font:inherit;font-size:16px}
.lform textarea{min-height:120px;resize:vertical}
.lform input[readonly]{color:var(--dim)}
.lform .hint{font-size:13px;color:var(--dim);margin:0}
.ferr{color:#f15c6d;font-size:14px;min-height:20px;margin:6px 0 0}
.ferr:empty{min-height:0}
.lbtn{min-height:46px;border:0;border-radius:24px;background:var(--acc);color:#0b141a;font-weight:700;
  font-size:15px;padding:0 22px;margin-top:10px;align-self:flex-start;cursor:pointer}
.lbtn.ghost{background:var(--hdr);color:var(--txt)}
.lbtn[disabled]{opacity:.5}
.lbtns{display:flex;flex-wrap:wrap;gap:8px}
/* honeypot: invisible for people, still in the form for bots. Clipped to
   nothing inside the page (not parked at a negative offset), so a 360 px
   phone has no element sticking out sideways. */
.hp{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
  white-space:nowrap;opacity:0;pointer-events:none}
.hp *{max-width:1px}
.ack{background:var(--panel-2);border-radius:12px;padding:14px 16px;margin:8px 0 18px}
.ack h3:first-child{margin-top:0}
.ticketno{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:22px;font-weight:700;
  letter-spacing:.5px;color:var(--acc);overflow-wrap:anywhere;margin:4px 0 10px}
pre.copy{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:15px;background:var(--hdr);
  border-radius:8px;padding:10px 12px;margin:0 0 12px}
.lkres{background:var(--panel-2);border-radius:12px;padding:12px 16px;margin:8px 0 16px}
dl.kv div{display:flex;gap:10px;padding:4px 0;border-bottom:1px solid var(--line)}
dl.kv dt{min-width:100px;color:var(--dim)}
dl.kv dd{flex:1;overflow-wrap:anywhere}

/* ---- the moderation console (/admin, driven by /static/admin.js; English only) ---- */
.lhdr .admtag{font-size:13px;color:var(--dim);border:1px solid var(--line);border-radius:999px;padding:1px 8px}
main.adm{max-width:960px}
.adm h4{font-size:14px;line-height:20px;font-weight:600;margin:12px 0 4px;color:var(--dim)}
.admh1{margin-bottom:0}
.admwho{margin:0 0 10px;font-size:14px}
.admtabs{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 16px;border-bottom:1px solid var(--line);padding-bottom:8px}
.admtab{min-height:44px;padding:0 16px;border:0;border-radius:22px;background:var(--hdr);color:var(--txt);
  font:inherit;font-size:15px;cursor:pointer}
.admtab.on{background:var(--acc);color:#0b141a;font-weight:700}
.admcounts{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 10px;font-size:14px;color:var(--dim)}
.admcount b{color:var(--txt);font-size:16px}
.admcount.bad b{color:#f15c6d}
.admcount.warn b{color:var(--notice-txt)}
.admfilters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;margin:0 0 10px}
.admfilters label{display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--dim);min-width:140px;flex:1 1 140px}
.admfilters select,.admrow input{min-height:44px;background:var(--hdr);color:var(--txt);border:1px solid var(--line);
  border-radius:8px;padding:0 10px;font:inherit;font-size:16px;width:100%}
.admfilters .lbtn{margin-top:0}
/* min-height: the queue region stays on the page (and visible to tests)
   while it is empty; #qEmpty then says why */
.admlist{display:flex;flex-direction:column;gap:8px;margin:8px 0 16px;min-height:1px}
.admrowbtn{display:flex;flex-direction:column;gap:4px;width:100%;text-align:start;background:var(--panel-2);
  color:var(--txt);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font:inherit;cursor:pointer;min-height:44px}
.admrowbtn:hover{border-color:var(--acc)}
.admrowtop{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.admrowbot{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;font-size:13px}
.admticket{font-family:ui-monospace,Menlo,Consolas,monospace;font-weight:700;font-size:15px;overflow-wrap:anywhere}
.admcat{font-size:15px;line-height:20px}
.admchips{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 0 10px}
.admchip{display:inline-flex;align-items:center;min-height:22px;padding:0 9px;border-radius:999px;font-size:12.5px;
  font-weight:700;background:var(--hdr);color:var(--txt);white-space:nowrap}
.admchip.pri-p2h{background:#5c1f27;color:#ffb3bc}
.admchip.pri-p3h{background:#5a3412;color:#ffc58a}
.admchip.pri-p36h{background:var(--notice-bg);color:var(--notice-txt)}
.admchip.pri-p7d{background:var(--hdr);color:var(--dim)}
.admchip.st-open{background:var(--notice-bg);color:var(--notice-txt)}
.admchip.st-in_progress{background:rgba(83,189,235,.18);color:var(--link)}
.admchip.st-resolved,.admchip.st-closed{background:rgba(0,168,132,.18);color:#3ad4a9}
.admdue{font-weight:600;font-size:13.5px;color:var(--txt)}
.admdue.soon{color:var(--notice-txt)}
.admdue.overdue{color:#ff8a96}
.admdue.none{color:var(--dim);font-weight:400}
.admcard{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 14px 16px;margin:12px 0 18px}
.admcard h2,.admcard h3{margin-top:4px}
.admcheck{display:flex !important;align-items:center;gap:10px;font-weight:400 !important;min-height:44px}
.admcheck input{width:20px !important;min-height:20px !important;height:20px;accent-color:var(--acc)}
.admrow{display:flex;gap:8px;align-items:stretch}
.admrow .lbtn{margin-top:0;flex-shrink:0}
.admevidence{background:var(--panel-2);border-radius:12px;padding:10px 12px;margin:4px 0 14px}
.admmsg{display:flex;flex-direction:column;gap:1px;padding:6px 0;border-bottom:1px solid var(--line);font-size:14px}
.admmsgtext{white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext}
.admtd{background:var(--panel-2);border-radius:12px;padding:10px 12px}
.admtd .lbtns .lbtn{margin-top:6px}
