:root {
  --bg-main: #0A0A0F;
  --bg-soft: #11111A;
  --bg-card: rgba(20, 20, 30, 0.55);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(255, 255, 255, 0.18);
  --accent-blue: #00C6FF;
  --accent-purple: #7B61FF;
  --accent-pink: #FF4D9D;
  --accent-orange: #FF7A59;
  --text-white: #FFFFFF;
  --text-muted: #A0A0B0;
  --text-dim: #6B6B7B;
  --gradient-main: linear-gradient(135deg, #00C6FF 0%, #7B61FF 50%, #FF7A59 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient bg */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.ambient::before, .ambient::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.25;
}
.ambient::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  top: -150px; left: -100px;
}
.ambient::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-blue), transparent 70%);
  top: 40%; right: -150px;
}

body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5; mix-blend-mode: overlay;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(7, 7, 12, 0.72);
  border-bottom: 1px solid var(--border-card);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: 1240px; margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { height: 96px; width: auto; }
.nav-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--border-card);
  transition: all 0.2s ease;
}
.nav-back:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-card-hover);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  color: var(--text-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-switch:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-card-hover);
}

/* Page */
.page {
  position: relative;
  z-index: 2;
  padding: 80px 0 120px;
}
.page-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-orange);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-title .grad {
  background: var(--gradient-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-card);
}

.page article h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 56px 0 14px;
  color: var(--text-white);
}
.page article h2:first-child { margin-top: 0; }
.page article h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--text-white);
}
.page article p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 16px;
}
.page article ul {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
}
.page article ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 8px;
}
.page article ul li::before {
  content: '◇';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-size: 12px;
  top: 4px;
}
.page article strong { color: var(--text-white); font-weight: 600; }
.page article a { color: var(--accent-blue); text-decoration: none; }
.page article a:hover { text-decoration: underline; }

/* ===== Info card (header company info) ===== */
.info-card {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 56px;
}
.info-card .info-key,
.info-card .info-val {
  padding: 14px 20px;
  border-top: 1px solid var(--border-card);
  font-size: 14px;
  line-height: 1.5;
}
.info-card .info-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border-card);
}
.info-card .info-val {
  color: var(--text-white);
  font-weight: 500;
}
.info-card > :nth-child(1),
.info-card > :nth-child(2) {
  border-top: none;
}
.info-card .info-val a { color: var(--accent-blue); }

/* ===== Subsection ===== */
.page article h3.sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin: 36px 0 14px;
  font-weight: 500;
}

/* ===== Data table ===== */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0 24px;
  font-size: 14px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
}
.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border-card);
  line-height: 1.5;
}
.data-table thead th {
  background: rgba(255,255,255,0.03);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  border-top: none;
}
.data-table tbody tr:first-child td { border-top: 1px solid var(--border-card); }
.data-table td {
  color: var(--text-muted);
}
.data-table td.label {
  color: var(--text-white);
  font-weight: 500;
  white-space: nowrap;
}
.data-table td.label-wrap {
  color: var(--text-white);
  font-weight: 500;
}
.data-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

/* Highlighted note callout */
.note {
  margin: 24px 0;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.06), rgba(123, 97, 255, 0.06));
  border: 1px solid rgba(123, 97, 255, 0.25);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.note strong { color: white; }
.note.warn {
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.08), rgba(255, 77, 157, 0.05));
  border-color: rgba(255, 122, 89, 0.3);
}

/* Section marker */
.page article .section-marker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 56px 0 18px;
}
.page article .section-marker:first-of-type { margin-top: 0; }
.page article .section-marker .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent-orange);
  letter-spacing: 0.05em;
  font-weight: 500;
}
.page article .section-marker h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

/* Last-updated TOC chip */
.toc-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-card);
}
.toc-chip {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}
.toc-chip:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-card-hover);
  color: white;
}

/* Container wider for legal doc */
.legal-wide .container { max-width: 1080px; }

@media (max-width: 720px) {
  .info-card { grid-template-columns: 1fr; }
  .info-card .info-key {
    border-right: none;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 4px;
  }
  .info-card .info-val { padding-top: 4px; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .data-table td.label { white-space: normal; }
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-card);
  position: relative;
  z-index: 2;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}
.footer-inner a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-inner a:hover { color: white; }
.footer-links { display: flex; gap: 24px; }
.footer-links a.footer-b2b {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-top: -6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  color: var(--text-white);
  font-weight: 600;
  transition: all 0.25s ease;
}
.footer-links a.footer-b2b:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-purple);
  color: white;
  box-shadow: 0 6px 24px rgba(123, 97, 255, 0.25);
}

@media (max-width: 600px) {
  .nav-brand img { height: 64px; }
  .nav-back span { display: none; }
  .nav-back { padding: 10px 14px; }
  .page { padding: 48px 0 80px; }
}
