/* Snoozify legal pages — shared stylesheet.
   Matches the app's night-sky + warm-glow palette so the web pages feel
   like an extension of the product, not a generic legal dump. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0B1026;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(94, 92, 230, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 133, 64, 0.10), transparent 60%);
  background-attachment: fixed;
  color: #E5E5F0;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 16, 38, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #5E5CE6 0%, #FF8540 100%);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(94, 92, 230, 0.4);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #FFE08A;
  border-radius: 50%;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(255, 224, 138, 0.8);
}
.site-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.site-nav a {
  color: rgba(229, 229, 240, 0.65);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover,
.site-nav a.active {
  color: #FFFFFF;
}

/* ===== Main content area ===== */
main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  width: 100%;
}

/* ===== Landing page hero ===== */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FFFFFF 0%, #C6C2EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.hero .subtitle {
  font-size: 17px;
  color: rgba(229, 229, 240, 0.65);
  font-weight: 500;
  margin-bottom: 8px;
}
.hero .tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(94, 92, 230, 0.15);
  border: 1px solid rgba(94, 92, 230, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #B5B2F0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 16px;
}

/* ===== Doc cards on landing ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  display: block;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(94, 92, 230, 0.5);
  transform: translateY(-2px);
}
.card .card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(94, 92, 230, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #8B86FF;
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.card p {
  font-size: 14px;
  color: rgba(229, 229, 240, 0.55);
  line-height: 1.5;
}
.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #8B86FF;
}

/* ===== Document page title + meta ===== */
.doc-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.doc-header h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 10px;
}
.doc-header .last-updated {
  font-size: 14px;
  color: rgba(229, 229, 240, 0.5);
}
.doc-header .last-updated strong {
  color: rgba(229, 229, 240, 0.75);
  font-weight: 600;
}

/* ===== Body typography ===== */
.doc-body { font-size: 15.5px; }
.doc-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 48px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.doc-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(229, 229, 240, 0.85);
  margin-top: 24px;
  margin-bottom: 8px;
}
.doc-body p { margin-bottom: 14px; color: rgba(229, 229, 240, 0.85); }
.doc-body ul { padding-left: 20px; margin-bottom: 14px; }
.doc-body li { margin-bottom: 8px; color: rgba(229, 229, 240, 0.85); }
.doc-body a {
  color: #8B86FF;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 134, 255, 0.3);
  transition: border-color 0.15s ease;
}
.doc-body a:hover { border-bottom-color: #8B86FF; }
.doc-body strong { color: #FFFFFF; font-weight: 600; }

/* TL;DR callout box */
.tldr {
  background: linear-gradient(135deg, rgba(94, 92, 230, 0.12), rgba(255, 133, 64, 0.08));
  border: 1px solid rgba(94, 92, 230, 0.2);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 32px 0 40px;
}
.tldr h2 {
  margin-top: 0 !important;
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #B5B2F0 !important;
  margin-bottom: 14px !important;
}
.tldr ul { padding-left: 18px; margin-bottom: 0; }
.tldr li { font-size: 14.5px; color: rgba(229, 229, 240, 0.9); }

/* Legal-style ALL CAPS blocks (disclaimers etc) */
.doc-body p:has(+ p) strong:only-child,
.legal-caps {
  font-size: 13.5px;
  color: rgba(229, 229, 240, 0.7);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(229, 229, 240, 0.4);
}
.site-footer a {
  color: rgba(229, 229, 240, 0.6);
  text-decoration: none;
  margin: 0 8px;
}
.site-footer a:hover { color: rgba(229, 229, 240, 0.9); }
.site-footer .dot { margin: 0 4px; opacity: 0.4; }

/* Mobile tweaks */
@media (max-width: 540px) {
  .site-header .wrap { padding: 14px 18px; }
  .site-nav { gap: 16px; }
  main { padding: 40px 18px 60px; }
  .hero h1 { font-size: 36px; }
  .doc-header h1 { font-size: 28px; }
  .doc-body h2 { font-size: 19px; }
}
