/* Souped Legal Pages — souped.app marketing style */

:root {
  --bg-root: #080025;
  --bg-mid: #14142E;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --fg-default: #FFF8F0;
  --fg-body: rgba(255, 255, 255, 0.6);
  --fg-muted: rgba(255, 255, 255, 0.45);
  --fg-subtle: rgba(255, 255, 255, 0.25);
  --accent: #FF6B35;
  --accent-hover: #E03328;
  --accent-muted: rgba(255, 107, 53, 0.15);
  --accent-border: rgba(255, 107, 53, 0.25);
  --violet: #7B68EE;
  --violet-muted: rgba(123, 104, 238, 0.15);
  --amber: #FFBB33;
  --border: rgba(255, 255, 255, 0.08);
  --border-muted: rgba(255, 255, 255, 0.06);
  --success: #4ADE80;
  --danger: #DC2626;
  --warning: #FBBF24;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-root);
  color: var(--fg-default);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  font-size: 15px;
  text-wrap: pretty;
}

p, li, td {
  widows: 3;
  orphans: 3;
  text-wrap: pretty;
}

h1, h2, h3 {
  text-wrap: balance;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 5% 75%, rgba(60, 20, 220, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 25% 30%, rgba(255, 187, 51, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 80% 70% at 60% 20%, rgba(255, 100, 20, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 95% 50%, rgba(180, 20, 0, 0.15) 0%, transparent 50%);
}

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-radius: 0;
  background: rgba(8, 0, 37, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--fg-default);
}

.logo svg { height: 20px; width: auto; }

.header-nav {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 4px 6px;
  gap: 2px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.header-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.header-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 96px;
  width: 100%;
  flex: 1;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.page-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--fg-default);
  margin-bottom: 12px;
}

.page-meta {
  color: var(--fg-muted);
  font-size: 0.8rem;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.page-intro {
  color: var(--fg-body);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-intro a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.page-intro a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.page-intro strong { color: var(--fg-default); }

.toc {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 56px;
}

.toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.toc li { counter-increment: toc; }

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--fg-subtle);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  margin-right: 8px;
}

.toc a {
  color: var(--fg-body);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.toc a:hover { color: var(--accent); }

.section {
  margin-bottom: 56px;
}

.section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  padding-top: 8px;
  scroll-margin-top: 88px;
}

.section h2 .section-num {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  margin-right: 10px;
}

.section h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 14px;
  color: var(--fg-default);
}

.section p {
  color: var(--fg-body);
  margin-bottom: 16px;
  line-height: 1.75;
}

.section strong {
  color: var(--fg-default);
  font-weight: 600;
}

.section a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.section a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.section ul, .section ol {
  color: var(--fg-body);
  margin-bottom: 16px;
  padding-left: 20px;
}

.section li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.section li strong {
  color: var(--fg-default);
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: rgba(255, 255, 255, 0.03);
}

th {
  text-align: left;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-muted);
  color: var(--fg-body);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }

td strong {
  color: var(--fg-default);
  font-weight: 500;
}

td a {
  color: var(--accent);
  text-decoration: none;
}

td a:hover { text-decoration: underline; }

.callout {
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 24px;
}

.callout p {
  color: var(--fg-default);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.callout strong { color: var(--accent); }

.callout-warning {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
}

.callout-warning strong { color: var(--amber); }

.info-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.not-list {
  list-style: none;
  padding-left: 0;
}

.not-list li {
  padding-left: 28px;
  position: relative;
}

.not-list li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.75rem;
  top: 3px;
}

.caps-block {
  text-transform: uppercase;
  font-size: 0.8rem;
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: var(--fg-body);
}

.caps-block strong {
  color: var(--fg-default);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  color: var(--fg-muted);
  font-size: 0.8rem;
}

.footer-inner a {
  color: var(--fg-body);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-inner a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  header { top: 0; left: 0; right: 0; }
  .page-title { font-size: 2rem; }
  .toc ol { grid-template-columns: 1fr; }
  main { padding: 88px 16px 64px; }
  .header-nav a { font-size: 0.7rem; padding: 5px 10px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .toc { padding: 20px 24px; }
  td, th { padding: 10px 14px; }
}
