/* MazeShift — content pages (How it works, Privacy, Terms). */

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 120, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(180, 107, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 70%, rgba(34, 230, 255, 0.1), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: 0.35;
  background-image:
    linear-gradient(rgba(34, 230, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 230, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--safe-t)) calc(16px + var(--safe-r)) 10px calc(16px + var(--safe-l));
  background: rgba(5, 7, 15, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand .wordmark { font-size: 20px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }

.wrap { width: min(880px, 100%); margin: 0 auto; padding: 0 calc(18px + var(--safe-r)) 40px calc(18px + var(--safe-l)); }

.hero { text-align: center; padding: 56px 0 28px; }
.hero img { margin: 0 auto 18px; width: 96px; height: 96px; filter: drop-shadow(0 0 28px rgba(34,230,255,.5)); }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 7vw, 52px); letter-spacing: 0.06em; line-height: 1.1; margin: 0; }
.hero .lead { font-size: clamp(18px, 3.4vw, 22px); color: #cfe6f7; max-width: 640px; margin: 14px auto 0; }
.hero .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 24px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #cfeeff; text-decoration: none; font-weight: 600; font-size: 15px; }
.toc a:hover { border-color: rgba(34,230,255,.5); color: #fff; }

section { padding: 26px 0; scroll-margin-top: 80px; }
h2 { font-family: var(--font-display); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; font-size: clamp(20px, 4vw, 26px); margin: 0 0 14px; color: #fff; }
h2 .num { color: var(--cyan); margin-right: 8px; }
h3 { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; margin: 22px 0 8px; color: #cfeeff; }
p, li { color: #d2e3f1; }
.muted { color: var(--muted); }
strong { color: #fff; }

.card {
  padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 28, 58, 0.7), rgba(8, 14, 30, 0.7));
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.9);
}

.story { display: grid; gap: 14px; }
.chapter { position: relative; padding: 20px 22px 18px 64px; }
.chapter .ch-num {
  position: absolute; left: 18px; top: 20px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 14px;
  background: rgba(34,230,255,.12); color: var(--cyan); border: 1px solid rgba(34,230,255,.4);
}
.chapter h3 { margin: 4px 0 6px; }
.chapter p { margin: 0; }
.quote { font-style: italic; color: #bfe9ff; border-left: 3px solid var(--cyan); padding: 4px 0 4px 14px; margin: 16px 0 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 62px; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 14px;
  background: linear-gradient(135deg, var(--cyan), #7b5cff); color: #031018;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.entity { display: flex; gap: 14px; align-items: flex-start; }
.entity .dot { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); }
.entity .dot i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c), 0 0 4px #fff inset; }
.entity .dot i.gem { border-radius: 2px; transform: rotate(45deg) scale(.85); }
.entity b { display: block; color: #fff; font-size: 17px; }
.entity p { margin: 2px 0 0; font-size: 15px; }
.c1 { --c: #ffffff; } .c2 { --c: var(--gold); } .c3 { --c: var(--cyan); } .c4 { --c: var(--violet); } .c5 { --c: var(--red); } .c6 { --c: var(--orange); }
.c7 { --c: var(--ice); } .c8 { --c: var(--green); } .c9 { --c: #d08bff; }

table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
th { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; }

details { border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); padding: 0 16px; margin-bottom: 8px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: #fff; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--cyan); font-family: var(--font-display); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 14px; }

.legal h2 { font-size: 18px; margin-top: 26px; }
.legal p, .legal li { font-size: 17px; }
.legal .updated { color: var(--muted); }

.cta-band { text-align: center; padding: 34px 20px; margin-top: 18px; }
.cta-band h2 { margin-bottom: 8px; }

.page-footer { border-top: 1px solid rgba(255,255,255,.06); margin-top: 20px; }

@media (max-width: 560px) {
  .hero { padding-top: 36px; }
  .chapter { padding-left: 20px; padding-top: 62px; }
  .chapter .ch-num { top: 18px; }
  .brand .wordmark { font-size: 17px; }
  .topbar .btn-sm { padding: 8px 14px; }
}
