/* ==================================
   Bitwell Crypto • Privacy Policy CSS
   Kraken-like (light, premium)
   Primary: #7b42f6
   ================================== */

:root{
  --bg: #ffffff;
  --text: #0b0f1a;
  --muted: #5b6475;

  --primary: #7b42f6;
  --primary-2: #6a34f3;

  --border: rgba(10, 20, 40, .10);
  --border-strong: rgba(10, 20, 40, .14);

  --shadow: 0 22px 70px rgba(20, 20, 60, .10);
  --shadow-2: 0 14px 34px rgba(15, 20, 45, .10);

  --ring: rgba(123, 66, 246, .35);

  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, .10);

  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --container: 1160px;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a{ color: var(--primary); text-decoration: none; }
a:hover{ text-decoration: underline; }
:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Background ornaments */
.bg-ornaments{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.orb{
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: .85;
}
.orb-1{
  width: 520px; height: 520px;
  left: -160px; top: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(123,66,246,.22), transparent 60%);
}
.orb-2{
  width: 560px; height: 560px;
  right: -220px; top: 40px;
  background: radial-gradient(circle at 30% 30%, rgba(123,66,246,.18), transparent 60%);
}
.grid{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(123,66,246,.10), transparent 60%),
    radial-gradient(900px 540px at 90% 5%, rgba(123,66,246,.08), transparent 55%),
    linear-gradient(rgba(10,20,40,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,20,40,.05) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  mask-image: radial-gradient(700px 420px at 30% 10%, rgba(0,0,0,.55), transparent 70%);
  opacity: .55;
}

/* Layout */
.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}
.page{ padding-bottom: 70px; }
.no-scroll{ overflow: hidden; }

/* HERO */
.hero{ padding: 34px 0 18px; }
.hero-inner{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}

.badge{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}
.badge-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 7px rgba(123,66,246,.14);
}

.hero-left{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 26px;
}

h1{
  margin: 14px 0 8px;
  letter-spacing: -0.035em;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}
.lead{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  max-width: 65ch;
}

.meta{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.meta-card{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.80);
}
.meta-label{
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.meta-value{
  margin-top: 6px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.hero-actions{
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn{
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 14px 28px rgba(123,66,246,.22);
}
.btn-primary:hover{ box-shadow: 0 20px 36px rgba(123,66,246,.28); text-decoration: none; }
.btn-ghost{
  background: rgba(255,255,255,.85);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover{
  background: rgba(10, 20, 40, .04);
  text-decoration: none;
}

/* Right side cards */
.hero-right{ display: grid; gap: 12px; }
.card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
  padding: 16px;
}
.card-title{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.checklist{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.checklist li{
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.check{
  width: 18px; height: 18px;
  border-radius: 8px;
  background: rgba(123,66,246,.14);
  position: relative;
}
.check::after{
  content: "";
  position: absolute;
  left: 6px; top: 4px;
  width: 6px; height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(40deg);
}
.summary-actions{
  margin-top: 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.mini-link{
  font-weight: 900;
  font-size: 13px;
}
.muted{
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.7;
}

/* Content layout */
.content{ padding: 10px 0 0; }
.layout{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

/* TOC */
.toc{
  position: sticky;
  top: 18px;
  align-self: start;
}
.toc-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-2);
  padding: 14px;
}
.toc-title{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 4px 6px 10px;
}
.toc-nav{
  display: grid;
  gap: 6px;
  padding: 4px;
}
.toc-nav a{
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
  border: 1px solid transparent;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.toc-nav a:hover{
  background: rgba(10, 20, 40, .04);
  text-decoration: none;
  color: var(--text);
}
.toc-nav a.active{
  background: linear-gradient(180deg, rgba(123,66,246,.16), rgba(123,66,246,.08));
  border-color: rgba(123,66,246,.20);
  color: var(--text);
}
.toc-footer{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
}
.pill{
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.85);
}

/* Article */
.article{
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  padding: 22px;
}
.section{
  padding: 14px 0;
  scroll-margin-top: 16px;
}
.section + .section{
  border-top: 1px solid rgba(10, 20, 40, .07);
}
h2{
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
h3{
  margin: 14px 0 6px;
  font-size: 15px;
  letter-spacing: -0.02em;
}
p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}
p + p{ margin-top: 10px; }

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}
.list li{ margin: 8px 0; }
.list strong{ color: var(--text); font-weight: 900; }

/* Callouts */
.callout{
  margin-top: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(123,66,246,.20);
  font-size: 14px;
  background: linear-gradient(180deg, rgba(123,66,246,.12), rgba(123,66,246,.06));
  padding: 14px;
}
.callout-title{
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.callout-text{
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.callout.warn{
  border-color: rgba(180,83,9,.25);
  background: linear-gradient(180deg, rgba(180,83,9,.12), rgba(180,83,9,.06));
}
.callout.warn .callout-title{ color: var(--warn); }

/* Table */
.table-wrap{
  margin-top: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
}
.table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th, .table td{
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(10,20,40,.08);
}
.table thead th{
  color: var(--text);
  font-weight: 900;
  background: rgba(123,66,246,.08);
}
.table tbody td{
  color: var(--muted);
}
.table tbody tr:hover td{ background: rgba(10,20,40,.03); }

/* Contact */
.contact-card{
  margin-top: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  overflow: hidden;
}
.contact-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(10,20,40,.08);
}
.contact-row:last-child{ border-bottom: 0; }
.contact-label{
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}
.contact-value{
  text-align: right;
  font-weight: 900;
  font-size: 13px;
}

.fineprint{
  margin-top: 12px;
  font-size: 12px;
  color: rgba(91,100,117,.95);
}

/* Footer */
.article-footer{
  margin-top: 10px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(10,20,40,.07);
}
.footer-left{
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}
.footer-brand{ color: var(--text); }
.footer-sep{ opacity: .5; }
.back-top{
  font-weight: 900;
  font-size: 12px;
}

/* Mobile floating TOC button */
.fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(123,66,246,.25);
  background: linear-gradient(180deg, rgba(123,66,246,1), rgba(106,52,243,1));
  box-shadow: 0 18px 32px rgba(123,66,246,.26);
  cursor: pointer;
  display: none;
  z-index: 70;
}
.fab:active{ transform: translateY(1px); }
.fab-icon{
  display: block;
  width: 18px; height: 12px;
  margin: 18px 10px;
  background:
    linear-gradient(#fff, #fff) 0 0/100% 2px,
    linear-gradient(#fff, #fff) 0 50%/100% 2px,
    linear-gradient(#fff, #fff) 0 100%/100% 2px;
  background-repeat: no-repeat;
  border-radius: 99px;
}

/* Drawer */
.drawer{
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}
.drawer.open{ display: block; }
.drawer-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, .45);
}
.drawer-panel{
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: #fff;
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
}
.drawer-header{
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
}
.drawer-title{
  font-weight: 900;
  letter-spacing: -0.02em;
}
.icon-btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.90);
  border-radius: 999px;
  height: 40px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-x{
  width: 14px; height: 14px;
  position: relative;
}
.icon-x::before, .icon-x::after{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}
.icon-x::before{ transform: rotate(45deg); }
.icon-x::after{ transform: rotate(-45deg); }

.drawer-nav{
  padding: 12px 10px;
  display: grid;
  gap: 6px;
  overflow: auto;
}
.drawer-nav a{
  padding: 12px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  border: 1px solid transparent;
}
.drawer-nav a:hover{
  background: rgba(10,20,40,.04);
  color: var(--text);
  text-decoration: none;
}
.drawer-nav a.active{
  background: linear-gradient(180deg, rgba(123,66,246,.16), rgba(123,66,246,.08));
  border-color: rgba(123,66,246,.20);
  color: var(--text);
}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .layout{ grid-template-columns: 1fr; }
  .toc{ display: none; }
  .fab{ display: inline-flex; }
  .meta{ grid-template-columns: 1fr; }
}

/* Print */
@media print{
  .bg-ornaments,
  .hero-actions,
  .hero-right,
  .toc,
  .fab,
  .drawer { display: none !important; }
  body{ background: #fff !important; }
  .hero-left, .article{
    box-shadow: none !important;
    background: #fff !important;
    border-color: rgba(0,0,0,.2) !important;
  }
  a{ color: #000 !important; text-decoration: underline; }
}
