:root{
  --bg:#0b1220;
  --card:#0f1a2d;
  --card2:#0d1627;
  --text:#e8eefc;
  --muted:#a7b2cc;
  --border:rgba(255,255,255,.08);
  --accent:#3b82f6;
  --accent2:#22c55e;
  --danger:#ef4444;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --r:18px;
  --pad:18px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*{box-sizing:border-box}
body{margin:0;background:radial-gradient(1200px 500px at 20% 0%, rgba(59,130,246,.18), transparent),
                 radial-gradient(900px 400px at 90% 10%, rgba(34,197,94,.12), transparent),
                 var(--bg); color:var(--text);}
a{color:inherit;text-decoration:none}
strong{font-weight:700}
.hidden{display:none !important}

.topbar{
  position:sticky; top:0; z-index:5;
  background:rgba(11,18,32,.7);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
  padding:14px 18px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{display:flex;align-items:center;gap:12px}
.logo{
  width:40px;height:40px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;
  background:linear-gradient(135deg, rgba(59,130,246,.9), rgba(34,197,94,.7));
  box-shadow: var(--shadow);
}
.name{font-weight:800; letter-spacing:.4px}
.tag{font-size:.9rem; color:var(--muted)}

.container{max-width:1100px;margin:0 auto;padding:18px}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:var(--r);
  box-shadow: var(--shadow);
  padding:var(--pad);
}
.hero h1{margin:0 0 10px;font-size:1.8rem}
.muted{color:var(--muted)}
.hero-pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.pill{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 12px;border:1px solid var(--border);
  border-radius:999px;background:rgba(255,255,255,.02);
}
.dot{width:10px;height:10px;border-radius:999px;background:var(--accent2); box-shadow:0 0 0 6px rgba(34,197,94,.15)}

.grid2{grid-template-columns: 1fr 1fr; gap:14px; margin-top:14px}
@media (max-width: 880px){ .grid2{grid-template-columns:1fr} }

h2{margin:0 0 10px}
h3{margin:0 0 10px; font-size:1.05rem}

.panel{
  background:rgba(0,0,0,.16);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
}
.gap{gap:14px}

label{display:block; font-size:.9rem; color:var(--muted); margin-bottom:10px}
input,select{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255, 255, 255);
  color:#000000;
  outline:none;
}
input:focus,select:focus{border-color:rgba(59,130,246,.55); box-shadow:0 0 0 4px rgba(59,130,246,.15)}
.hint{margin-top:10px; font-size:.85rem; color:var(--muted)}

.btn{
  appearance:none;border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:11px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:650;
}
.btn:hover{border-color:rgba(255,255,255,.16)}
.btn.primary{background:rgba(59,130,246,.9); border-color:rgba(59,130,246,.9)}
.btn.primary:hover{filter:brightness(1.05)}
.btn.ghost{background:transparent}
.row{display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap}

.filters{
  display:grid;
  grid-template-columns: 1.4fr 1fr .9fr auto;
  gap:10px;
  align-items:center;
}
@media (max-width: 880px){
  .filters{grid-template-columns:1fr; }
}

.jobs{display:flex; flex-direction:column; gap:10px; margin-top:12px}
.job{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
}
.job:hover{border-color:rgba(255,255,255,.16)}
.job .top{display:flex;gap:10px; align-items:flex-start; justify-content:space-between}
.job .title{font-weight:800}
.badge{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  font-size:.8rem;
  color:var(--muted);
  white-space:nowrap;
}
.job .meta{color:var(--muted); margin-top:6px; font-size:.9rem}
.job .snip{margin-top:10px; color:rgba(232,238,252,.9); font-size:.92rem; line-height:1.35}
.footnote{margin-top:10px; font-size:.88rem}

.footer{padding:22px 4px; text-align:center; font-size:.9rem}

.toast{
  position:fixed; left:50%; bottom:18px; transform:translateX(-50%);
  max-width:680px; width:calc(100% - 24px);
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(15,26,45,.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
}
.toast .msg{line-height:1.35}
.toast .x{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:1.1rem;padding:0 4px}
.toast.ok{border-color:rgba(34,197,94,.5)}
.toast.err{border-color:rgba(239,68,68,.55)}
.toast.warn{border-color:rgba(245,158,11,.55)}


/* Pagination */
.pager{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  padding:12px 0 4px;
}
.pager .btn[disabled]{
  opacity:0.5;
  cursor:not-allowed;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.pay-icon {
  display: flex;
  justify-content: center;
  gap: 15px;
  color: var(--text-light);
  width: 30%;
  height: 10%;
  background-color: #e8e9eb;
  border-radius: 25px;
  margin-top: 10px;
}



/* --- Legal / Policy pages --- */
.legal-shell{
  min-height:100vh;
  background: radial-gradient(1200px 700px at 20% 10%, rgba(59,130,246,.18), transparent 60%),
              radial-gradient(1000px 600px at 80% 20%, rgba(34,197,94,.14), transparent 55%),
              linear-gradient(180deg, var(--bg), #070c16 70%);
  padding: 22px 14px 60px;
}

.legal-topbar{
  max-width: 980px;
  margin: 0 auto 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.legal-brand{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--text);
  text-decoration:none;
}

.legal-brand img{
  width:34px;height:34px;border-radius:10px;
  box-shadow: var(--shadow);
}

.legal-brand .name{font-weight:800; letter-spacing:.3px;}
.legal-brand .sub{font-size:12px; color: var(--muted); margin-top:2px;}

.legal-back{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,.03);
  text-decoration:none;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  user-select:none;
}
.legal-back:hover{ background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.legal-back:active{ transform: translateY(1px); }

.legal-card{
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.legal-header{
  padding: 22px 22px 14px;
  background: radial-gradient(900px 420px at 10% 10%, rgba(59,130,246,.22), transparent 60%),
              linear-gradient(180deg, rgba(15,26,45,.9), rgba(13,22,39,.7));
  border-bottom: 1px solid var(--border);
}

.legal-header h1{ margin:0; font-size: 30px; letter-spacing:.2px; }
.legal-header .meta{ margin-top:8px; color: var(--muted); font-size: 13px; }
.legal-header .notice{
  margin-top:14px;
  padding: 12px 14px;
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.08);
  border-radius: 16px;
  color: var(--text);
}
.legal-header .notice strong{ color: #ffd2d2; }

.legal-body{ padding: 18px 22px 10px; }
.legal-body h2{
  margin: 22px 0 10px;
  font-size: 18px;
}
.legal-body h3{ margin: 18px 0 8px; font-size: 15px; color: var(--text); }
.legal-body p{ margin: 10px 0; color: rgba(232,238,252,.92); }
.legal-body ul, .legal-body ol{ margin: 10px 0 10px 22px; color: rgba(232,238,252,.92); }
.legal-body li{ margin: 6px 0; }
.legal-body code{
  background: rgba(255,255,255,.06);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
}
.legal-body a{ color: #93c5fd; text-decoration: none; }
.legal-body a:hover{ text-decoration: underline; }

.legal-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 820px){
  .legal-grid{ grid-template-columns: 1fr; }
  .legal-header h1{ font-size: 26px; }
}

.legal-callout{
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.legal-callout .t{ font-weight: 800; margin-bottom: 6px; }
.legal-callout .d{ color: var(--muted); font-size: 13px; line-height: 1.5; }

.legal-footer{
  padding: 16px 22px 20px;
  border-top: 1px solid var(--border);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  color: var(--muted);
  font-size: 13px;
  background: rgba(7,12,22,.35);
}
.legal-footer .links{
  display:flex; flex-wrap:wrap; gap:12px;
}
.legal-footer .links a{
  color: var(--muted);
  text-decoration:none;
}
.legal-footer .links a:hover{ color: var(--text); }
