/* ============================================================================
   Wibs Digital : legal pages (privacy policy, terms of service)
   Same palette, type and header as the FAQ page, with a narrower measure for
   long reading. Every text/background pair meets WCAG AA.
   ========================================================================= */
:root{
  --bg:#0a0d12;
  --surface:#111419;
  --line:rgba(255,255,255,.09);
  --line-2:rgba(255,255,255,.16);
  --text:#ececee;
  --text-2:#a5a5ad;
  --text-3:#85858f;
  --accent:#10B981;
  --accent-2:#86EFAC;
  --display:"Halant",Georgia,"Times New Roman",serif;
  --font:Inter,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color-scheme:dark;
}
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
[hidden]{ display:none !important; }
html{ scroll-behavior:smooth; scroll-padding-top:84px; }
body{
  background:var(--bg); color:var(--text); font-family:var(--font);
  font-size:16px; line-height:1.7;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }
.wrap{ max-width:920px; margin:0 auto; padding:0 clamp(20px,5vw,40px); }

/* ---------- header ---------- */
header.top{
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:20;
  background:rgba(10,13,18,.86);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
}
header.top .wrap{ display:flex; align-items:center; justify-content:space-between; gap:16px; height:64px; }
.brand{ display:inline-flex; align-items:center; }
.brand img{ height:22px; width:auto; }
.back{ font-size:14px; color:var(--text-2); transition:color .16s ease; }
.back:hover{ color:#fff; }

/* ---------- hero ---------- */
.hero{ padding:clamp(44px,8vh,80px) 0 clamp(26px,5vh,40px); }
.eyebrow{ font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-2); }
h1{
  margin-top:10px;
  font-family:var(--display); font-weight:500; font-size:clamp(34px,5.4vw,52px);
  line-height:1.1; letter-spacing:-.02em;
}
.lede{ margin-top:16px; font-size:clamp(15.5px,1.9vw,18px); color:var(--text-2); max-width:62ch; }
.meta{ margin-top:14px; font-size:13.5px; color:var(--text-3); }

/* ---------- layout: contents beside the text on wide screens ---------- */
.legal{
  display:grid; grid-template-columns:minmax(0,1fr); gap:28px;
  padding-bottom:clamp(48px,9vh,88px);
  border-top:1px solid var(--line); padding-top:32px;
}
@media (min-width:900px){
  .legal{ grid-template-columns:220px minmax(0,1fr); gap:48px; }
  .toc{ position:sticky; top:88px; align-self:start; max-height:calc(100vh - 110px); overflow:auto; }
}
.toc h2{ font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); font-weight:500; }
.toc ol{ margin-top:10px; list-style:none; counter-reset:toc; display:flex; flex-direction:column; gap:2px; }
.toc li{ counter-increment:toc; }
.toc a{
  display:flex; gap:8px; padding:5px 0;
  font-size:14px; line-height:1.45; color:var(--text-2);
  transition:color .16s ease;
}
.toc a::before{ content:counter(toc) "."; color:var(--text-3); min-width:20px; }
.toc a:hover{ color:#fff; }

/* ---------- prose ---------- */
.prose{ max-width:68ch; min-width:0; }
.prose section + section{ margin-top:38px; padding-top:32px; border-top:1px solid var(--line); }
.prose h2{
  font-family:var(--display); font-weight:500; font-size:clamp(24px,3vw,30px);
  line-height:1.2; letter-spacing:-.01em;
}
.prose h3{ margin-top:22px; font-size:16.5px; font-weight:600; letter-spacing:-.01em; }
.prose p, .prose ul, .prose ol, .prose .table{ margin-top:12px; }
.prose p, .prose li{ color:#c9c9cf; }
.prose ul, .prose ol{ padding-left:20px; }
.prose li + li{ margin-top:6px; }
.prose strong{ color:var(--text); font-weight:600; }
.prose a{ color:var(--accent-2); text-decoration:underline; text-underline-offset:2px; }
.prose a:hover{ color:#fff; }

.note{
  margin-top:16px; padding:14px 16px;
  border-radius:12px; border:1px solid var(--line-2); background:var(--surface);
  font-size:14.5px; color:var(--text-2);
}

/* Tables scroll inside their own box on a phone instead of widening the page. */
.table{ overflow-x:auto; border:1px solid var(--line-2); border-radius:12px; }
.table table{ width:100%; min-width:520px; border-collapse:collapse; font-size:14.5px; }
.table th, .table td{ padding:11px 14px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); }
.table tr:last-child td{ border-bottom:0; }
.table th{ font-size:12.5px; letter-spacing:.05em; text-transform:uppercase; color:var(--text-3); font-weight:500; background:var(--surface); }
.table td{ color:#c9c9cf; }
.table td strong{ color:var(--text); }

.btn{
  display:inline-flex; align-items:center; min-height:44px; padding:0 18px; margin-top:14px;
  border-radius:12px; border:1px solid var(--line-2); background:var(--surface);
  font:inherit; font-size:14.5px; font-weight:600; color:var(--text); cursor:pointer;
  transition:border-color .16s ease;
}
.btn:hover{ border-color:var(--accent); }

/* ---------- footer ---------- */
footer.bottom{ border-top:1px solid var(--line); padding:26px 0 44px; }
footer.bottom p{ font-size:13.5px; color:var(--text-3); }
footer.bottom p + p{ margin-top:8px; }
footer.bottom a, footer.bottom .consent-link{ color:var(--text-2); text-decoration:underline; text-underline-offset:2px; }
footer.bottom a:hover, footer.bottom .consent-link:hover{ color:#fff; }
