/* Shared stylesheet for the public pages under /legal/*.html.
   Uses the octoid.ai brand tokens from ../style.css. */
:root {
  --void: #0B1020;
  --surface: #0E1424;
  --surface-2: #121A2E;
  --stone: #E5E7EB;
  --muted: #9CA3AF;
  --dim: #6B7280;
  --cyan: #00D1FF;
  --violet: #7B61FF;
  --gradient-brand: linear-gradient(135deg, #00D1FF, #7B61FF);
  --hair: rgba(255, 255, 255, 0.07);
  --hair-strong: rgba(255, 255, 255, 0.12);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(123, 97, 255, 0.16), transparent 60%),
    radial-gradient(800px 420px at -10% 10%, rgba(0, 209, 255, 0.10), transparent 60%),
    var(--void);
  background-attachment: fixed;
  color: var(--stone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(0, 209, 255, 0.25); color: #fff; }

/* ---- top bar ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}

.top .brand { display: inline-flex; align-items: center; }
.top .brand img { height: 20px; width: auto; display: block; }

.top nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  transition: color .15s, border-color .15s;
}
.top nav a:hover { color: #fff; border-color: rgba(0, 209, 255, 0.5); }

/* ---- document card ---- */
main {
  max-width: 860px;
  margin: 2.5rem auto 0;
  padding: 3rem clamp(1.25rem, 5vw, 3.5rem) 3.5rem;
  background: linear-gradient(180deg, rgba(18, 26, 46, 0.85), rgba(14, 20, 36, 0.85));
  border: 1px solid var(--hair-strong);
  border-radius: 20px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2.75rem 0 0.9rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hair);
}

h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 0.65rem 0.18em 0;
  border-radius: 50%;
  background: var(--gradient-brand);
  vertical-align: middle;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 1.9rem 0 0.6rem;
}

p { margin: 0 0 1rem; color: #D6D9E0; }

strong { color: #fff; font-weight: 600; }

.meta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 209, 255, 0.35);
  transition: color .15s, border-color .15s;
}
a:hover { color: #fff; border-bottom-color: var(--violet); }

code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: #C9BFFF;
  background: rgba(123, 97, 255, 0.12);
  border: 1px solid rgba(123, 97, 255, 0.25);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  white-space: nowrap;
}

ul { padding-left: 0; margin: 0 0 1.25rem; list-style: none; }

li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  color: #D6D9E0;
}

li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--cyan);
  opacity: 0.8;
}

.callout {
  background: rgba(0, 209, 255, 0.06);
  border: 1px solid rgba(0, 209, 255, 0.22);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* ---- footer ---- */
footer {
  max-width: 860px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.9;
}
footer a { color: var(--muted); border-bottom-color: transparent; }
footer a:hover { color: #fff; border-bottom-color: transparent; }

@media (max-width: 600px) {
  main { margin-top: 1.25rem; border-radius: 14px; }
  .top { padding: 0.9rem 1rem; }
}

@media print {
  body { background: #fff; color: #111; }
  .top { position: static; background: none; border: 0; }
  main { background: none; border: 0; box-shadow: none; padding: 0; }
  h1 { -webkit-text-fill-color: #111; background: none; }
  h2, h3, strong, p, li { color: #111; }
  a { color: #111; border: 0; }
}
