/**
 * Aesthetix — legal pages (Privacy / Terms)
 * Standalone stylesheet that mirrors the OBSIDIAN / VOLT design system used by
 * the React landing page (see src/styles/tokens.css). Kept self-contained so the
 * legal docs render as plain static HTML — ideal for OAuth/app-store crawlers.
 */
:root {
  color-scheme: dark;

  --canvas: #0a0b0d;
  --surface-1: #121317;
  --surface-2: #191b20;
  --surface-3: #212429;

  --text-primary: #f5f4f0;
  --text-secondary: rgba(245, 244, 240, 0.64);
  --text-muted: rgba(245, 244, 240, 0.4);

  --border-1: rgba(255, 255, 255, 0.06);
  --border-2: rgba(255, 255, 255, 0.1);

  --volt: #c7f940;
  --volt-dim: rgba(199, 249, 64, 0.12);
  --volt-border: rgba(199, 249, 64, 0.3);
  --volt-glow: rgba(199, 249, 64, 0.55);
  --volt-ink: #0a0b0d;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "ss01";
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

::selection {
  background: var(--volt);
  color: var(--volt-ink);
}

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 6px;
}

a {
  color: var(--volt);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ navbar */
/* 1:1 replica of the landing page floating-pill Navbar (src/components/Navbar.tsx):
   transparent at the top, shrinks into a blurred surface pill once scrolled,
   with a hamburger dropdown on mobile. */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 16px 0;
  transition: padding 0.3s ease;
}

.navbar.is-scrolled {
  padding: 8px 0;
}

.navbar__inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.navbar__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: height 0.35s ease, background-color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.navbar.is-scrolled .navbar__pill {
  height: 56px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.045) 42%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(1.45);
  -webkit-backdrop-filter: blur(20px) saturate(1.45);
  box-shadow:
    0 8px 32px -8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.06);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.brand-lockup:hover {
  text-decoration: none;
  opacity: 0.85;
}

.brand-lockup svg {
  display: block;
  color: var(--text-primary);
}

.brand-lockup__word {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar__links li {
  margin: 0;
  padding: 0;
}

.navbar__links li::before {
  display: none;
}

.navbar__links a {
  display: inline-block;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.navbar__links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.navbar__links a.is-active {
  color: var(--volt);
}

.navbar__cta {
  display: none;
  height: 36px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--volt);
  color: var(--volt-ink) !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.navbar__cta:hover {
  background: #d4ff5a;
  text-decoration: none;
}

.navbar__cta:active {
  transform: scale(0.97);
}

.navbar__burger {
  display: grid;
  place-items: center;
  height: 40px;
  width: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.navbar__burger-lines {
  position: relative;
  display: block;
  height: 14px;
  width: 20px;
}

.navbar__burger-lines span {
  position: absolute;
  left: 0;
  height: 2px;
  width: 20px;
  background: currentColor;
  transition: top 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.navbar__burger-lines span:nth-child(1) {
  top: 0;
}

.navbar__burger-lines span:nth-child(2) {
  top: 6px;
}

.navbar__burger-lines span:nth-child(3) {
  top: 12px;
}

.navbar.is-open .navbar__burger-lines span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.navbar.is-open .navbar__burger-lines span:nth-child(2) {
  opacity: 0;
}

.navbar.is-open .navbar__burger-lines span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.navbar__mobile {
  display: none;
  margin-top: 8px;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid var(--border-2);
  background: rgba(25, 27, 32, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.navbar.is-open .navbar__mobile {
  display: block;
}

.navbar__mobile a {
  display: block;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.navbar__mobile a:hover {
  background: var(--surface-3);
  color: var(--text-primary);
  text-decoration: none;
}

.navbar__mobile a.is-active {
  color: var(--volt);
}

.navbar__mobile-cta {
  margin-top: 4px;
  background: var(--volt);
  color: var(--volt-ink) !important;
  font-weight: 700 !important;
  text-align: center;
}

@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }
  .navbar__cta {
    display: inline-flex;
  }
  .navbar__burger,
  .navbar__mobile {
    display: none !important;
  }
}

/* -------------------------------------------------------------------- main */

.volt-bloom {
  position: relative;
}

.volt-bloom::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 360px;
  pointer-events: none;
  background: radial-gradient(
    60% 80% at 50% 0%,
    rgba(199, 249, 64, 0.1) 0%,
    rgba(199, 249, 64, 0.035) 38%,
    transparent 72%
  );
}

.wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 112px 20px 96px;
}

.doc-header {
  border-bottom: 1px solid var(--border-1);
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--volt);
  margin: 0 0 14px;
}

h1 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 14px;
}

.meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.doc-nav {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.doc-nav a {
  color: var(--volt);
}

.notice {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-left: 3px solid var(--volt);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 40px;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.notice strong {
  color: var(--text-primary);
}

h2 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
  color: var(--text-primary);
  scroll-margin-top: 90px;
}

p {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

p strong,
li strong {
  color: var(--text-primary);
  font-weight: 600;
}

ul {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--volt);
  opacity: 0.85;
}

em {
  color: var(--text-primary);
  font-style: italic;
}

/* ------------------------------------------------------------------ footer */

.doc-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border-1);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-footer a {
  color: var(--text-secondary);
}

.doc-footer a:hover {
  color: var(--volt);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
