/* Shared styles for the GloveBox AI marketing site's legal pages
   (privacy/terms/refund/cookies/delete-account.html). landing.html is fully
   self-contained (inline styles) and does NOT use this file - but the two
   must stay visually consistent by hand. This palette/type system is copied
   from landing.html's inline <style> (teal accent + Sora/Plus Jakarta Sans,
   adapted from the app's own in-review design-exploration file) - if you
   change one, change the other. */

:root {
  --bg: #111615;
  --bg-deep: #0b0e0d;
  --card: #1b201f;
  --card-hi: #212726;
  --border: #2e3534;
  --border-strong: #3c4544;
  --text: #edf2f1;
  --text-muted: #8fa09c;
  --white: #ffffff;
  --accent: #2fd6c0;
  --accent-dim: rgba(47, 214, 192, 0.16);
  --on-accent: #0b1413;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-head: 'Sora', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

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

a {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.2s var(--ease);
  font-weight: 700;
  font-size: 14px;
}
.skip-link:focus {
  top: 16px;
}

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Floating pill header, matching landing.html */
header.site {
  position: sticky;
  top: 14px;
  z-index: 10;
  padding: 0 16px;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(17, 22, 21, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(143, 160, 156, 0.16);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  max-width: 1080px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--text);
  text-decoration: none;
}

.brand svg,
.brand img {
  display: block;
  border-radius: 8px;
}

nav.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

nav.site-nav a:hover {
  color: var(--text);
}

main {
  position: relative;
  z-index: 2;
}

/* Legal document pages. */
.legal-doc {
  padding: 48px 0 96px;
}

.legal-doc .wrap {
  max-width: 760px;
}

.legal-doc h1 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.legal-doc .updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 40px;
}

.legal-doc h2 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 8px;
  color: var(--text);
}

.legal-doc p,
.legal-doc li {
  color: var(--text-muted);
  font-size: 15px;
}

.legal-doc ul {
  padding-left: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

/* Footer, matching landing.html */
footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

footer.site .legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

footer.site a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s var(--ease);
}

footer.site a:hover {
  color: var(--text);
}

footer.site .copyright {
  color: var(--text-muted);
  font-size: 13px;
}

footer.site .contact {
  color: var(--text-muted);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
