/* SubFlow legal pages */
:root {
  --bg: #070a10;
  --ink: #f2f5fa;
  --muted: #a8b3c5;
  --dim: #6d7a8f;
  --line: rgba(242, 245, 250, 0.1);
  --accent: #ff5a36;
  --mint: #3de0b0;
  --card: #101722;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Syne", "Segoe UI", sans-serif;
  --max: 820px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: #ffb59f; text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1.75rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand img { width: 28px; height: 28px; border-radius: 22%; }
.back {
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
  padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
}
.back:hover { color: #fff; text-decoration: none; border-color: rgba(255,255,255,0.25); }
.docs-nav {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.75rem;
}
.docs-nav a {
  font-size: 0.8rem; font-weight: 650; color: var(--muted);
  padding: 0.4rem 0.75rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none;
}
.docs-nav a:hover, .docs-nav a.active {
  color: #fff; background: rgba(255,90,54,0.12);
  border-color: rgba(255,90,54,0.35); text-decoration: none;
}
h1 {
  font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.5rem; line-height: 1.15;
}
.meta { color: var(--dim); font-size: 0.86rem; margin-bottom: 1.75rem; }
.notice {
  background: rgba(61,224,176,0.08); border: 1px solid rgba(61,224,176,0.25);
  border-radius: 14px; padding: 0.9rem 1rem; margin-bottom: 1.5rem;
  color: var(--muted); font-size: 0.9rem;
}
.notice strong { color: var(--ink); }
h2 {
  font-family: var(--display); font-size: 1.15rem; font-weight: 750;
  letter-spacing: -0.02em; margin: 1.6rem 0 0.65rem;
}
p, li { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.55rem; }
ul, ol { padding-left: 1.2rem; margin-bottom: 0.75rem; }
li { margin-bottom: 0.35rem; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 1rem 1.1rem; margin: 0.85rem 0 1rem;
}
.card p:last-child { margin-bottom: 0; }
table {
  width: 100%; border-collapse: collapse; margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
}
th, td {
  border: 1px solid var(--line); padding: 0.55rem 0.7rem;
  text-align: left; color: var(--muted);
}
th { color: var(--ink); background: rgba(255,255,255,0.03); font-weight: 700; }
.foot {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  color: var(--dim); font-size: 0.82rem;
}
.hub-grid {
  display: grid; gap: 0.75rem; margin-top: 1.25rem;
}
.hub-card {
  display: block; padding: 1.1rem 1.15rem; border-radius: 16px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.hub-card:hover {
  border-color: rgba(255,90,54,0.4); transform: translateY(-2px); text-decoration: none; color: #fff;
}
.hub-card span { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 0.35rem; font-weight: 500; }
.hub-card strong { font-family: var(--display); font-size: 1.05rem; }
.buy-grid {
  display: grid; gap: 0.85rem; margin: 1rem 0 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.buy-card {
  padding: 1.15rem; border-radius: 16px; border: 1px solid var(--line); background: var(--card);
}
.buy-card h3 { font-family: var(--display); font-size: 1.05rem; margin-bottom: 0.35rem; }
.buy-price { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.2rem 0 0.45rem; }
.buy-desc { color: var(--muted); font-size: 0.86rem; margin-bottom: 0.9rem; line-height: 1.45; }
.buy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 0.7rem 1rem; border-radius: 999px;
  background: var(--accent); color: #fff !important; font-weight: 700; font-size: 0.92rem;
  text-decoration: none !important; border: 0; cursor: pointer; font-family: inherit;
}
.buy-btn:hover { filter: brightness(1.08); color: #fff !important; }
.codeword { opacity: 0.55; font-weight: 600; letter-spacing: 0.02em; }
@media (max-width: 640px) {
  .wrap { padding: 1rem 1rem 2.5rem; }
}
