/* Zynexis — legal pages
   Font: Outfit (400 / 500 / 600 / 700 / 800 only — never Thin/Light/ExtraLight)
   Palette: void #0A0912, panel #14121F, line #262138,
            violet #8B5CF6, violet-bright #B794FF, ink #F4F2FA, ink-dim #9C97B3
*/

:root{
  --void: #08050C;
  --panel: #120E1C;
  --panel-2: #171225;
  --line: #262038;
  --violet: #8B5CF6;
  --violet-bright: #B794FF;
  --violet-dim: #4C3B84;
  --ink: #FFFFFF;
  --ink-dim: #E7E4F2;
  --white: #FFFFFF;
  --radius: 14px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 900px 500px at 12% -8%, rgba(139,92,246,0.09), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(139,92,246,0.06), transparent 55%);
  background-repeat: no-repeat;
}

a{ color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 2px; }
a:hover{ text-decoration-color: var(--violet-bright); color: var(--violet-bright); }

:focus-visible{
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Top bar ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(10,9,18,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand-mark{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.brand-mark img{
  width: 40px;
  height: 40px;
  display: block;
}

.topnav{
  display: flex;
  gap: 28px;
  font-weight: 500;
  font-size: 0.92rem;
}

.topnav a{ color: var(--ink-dim); text-decoration: none; }
.topnav a.active{ color: var(--white); }
.topnav a:hover{ color: var(--white); text-decoration: none; }

/* ---------- Layout ---------- */
.doc-shell{
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 6vw 120px;
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 64px;
}

.doc-header{
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 18px;
}
.eyebrow::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px 2px rgba(139,92,246,0.8);
}

h1.doc-title{
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--white);
}

.doc-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--ink-dim);
  font-size: 0.92rem;
  font-weight: 500;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.doc-meta strong{ color: var(--ink); font-weight: 600; }

/* ---------- TOC sidebar ---------- */
.toc{
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 0.88rem;
}

.toc-label{
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 14px;
}

.toc ol{
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.toc li{ position: relative; }

.toc a{
  display: block;
  color: var(--ink-dim);
  opacity: 0.62;
  padding: 7px 0 7px 18px;
  font-weight: 500;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color .15s ease, opacity .15s ease, border-color .15s ease;
  text-decoration: none;
}
.toc a:hover{ color: var(--white); opacity: 1; text-decoration: none; }
.toc a.active{
  color: var(--white);
  opacity: 1;
  font-weight: 600;
  border-left-color: var(--violet);
}

/* ---------- Article ---------- */
.doc-body{ min-width: 0; }

.doc-body section{
  padding-top: 44px;
  scroll-margin-top: 100px;
}
.doc-body section:first-child{ padding-top: 40px; }

.doc-body h2{
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.34rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px;
}

.doc-body h2 .num{
  font-weight: 600;
  color: var(--violet-bright);
  font-size: 1rem;
}

.doc-body h3{
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin: 26px 0 10px;
}

.doc-body p{
  color: var(--ink-dim);
  margin: 0 0 14px;
  font-size: 0.98rem;
}

.doc-body ul{
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

.doc-body ul li{
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  color: var(--ink-dim);
  font-size: 0.98rem;
}
.doc-body ul li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--violet);
  transform: rotate(45deg);
}

.doc-body strong{ color: var(--ink); font-weight: 600; }

.callout{
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: var(--panel);
  border-left: 3px solid var(--violet);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 18px 0 22px;
  font-size: 0.94rem;
  color: var(--ink-dim);
}
.callout strong{ color: var(--white); }
.callout .icon-svg{
  flex: none;
  margin-top: 2px;
  color: var(--violet-bright);
}

.callout.warn{ border-left-color: #E4B65A; }
.callout.warn .icon-svg{ color: #E4B65A; }
.callout.critical{ border-left-color: #E06B6B; }
.callout.critical .icon-svg{ color: #E06B6B; }

.icon-svg{ display: inline-block; line-height: 0; }
.icon-svg svg{ width: 18px; height: 18px; display: block; }

table.data-table{
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 0.92rem;
}
table.data-table th, table.data-table td{
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}
table.data-table th{
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.check-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 12px;
  margin: 10px 0 8px;
}
.check-item{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.check-item .mark{
  flex: none;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: rgba(139,92,246,0.16);
  border: 1px solid rgba(139,92,246,0.4);
  color: var(--violet-bright);
  display: grid; place-items: center;
  margin-top: 1px;
}
.check-item .mark svg{ width: 10px; height: 10px; }

/* cross-link card between the two docs */
.cross-link{
  margin-top: 56px;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cross-link .txt{ color: var(--ink-dim); font-size: 0.94rem; }
.cross-link .txt strong{ display:block; color: var(--white); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--violet);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.btn:hover{ background: var(--violet-bright); text-decoration: none; color: var(--void); }

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid var(--line);
  padding: 34px 6vw 46px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ink-dim);
  font-size: 0.85rem;
}
footer a{ color: var(--ink-dim); }
footer a:hover{ color: var(--violet-bright); }

/* ---------- Landing page ---------- */
.hero{
  max-width: 900px;
  margin: 0 auto;
  padding: 110px 6vw 60px;
  text-align: center;
}
.hero h1{
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 22px 0 16px;
}
.hero p{
  color: var(--ink-dim);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-cards{
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 90px;
}
.hero-card{
  flex: 1 1 260px;
  max-width: 320px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.hero-card:hover{
  border-color: var(--violet-dim);
  transform: translateY(-2px);
  text-decoration: none;
}
.hero-card .icon{
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(139,92,246,0.14);
  border: 1px solid rgba(139,92,246,0.3);
  color: var(--violet-bright);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.hero-card .icon svg{ width: 19px; height: 19px; }
.hero-card h3{ margin: 0 0 6px; color: var(--white); font-size: 1.06rem; font-weight: 700; }
.hero-card p{ margin: 0; color: var(--ink-dim); font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px){
  .doc-shell{ grid-template-columns: 1fr; padding-top: 44px; }
  .toc{ position: static; margin-bottom: 8px; }
  .topnav{ gap: 18px; }
}
@media (max-width: 520px){
  .topbar{ padding: 16px 5vw; }
  .doc-shell{ padding-left: 5vw; padding-right: 5vw; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hero-card{ transition: none; }
}
