/* ============================================================
   AgentEase — shared styles for the legal pages (/privacy, /terms)
   Tokens and components lifted from index.html so the pages sit
   inside the same visual system. Edit here, not per page.
   ============================================================ */

:root {
  --indigo-deep:    #1A1B3A;
  --indigo-deeper:  #0F1028;
  --indigo-card:    #252644;
  --amber:          #FFB300;
  --amber-hover:    #FFC233;
  --cream:          #F7F2E8;
  --blue:           #00D9FF;
  --gray:           #8B8B8B;
  --hairline:       rgba(247, 242, 232, 0.08);
  --hairline-strong:rgba(247, 242, 232, 0.16);

  --glass-bg:       rgba(37, 38, 68, 0.24);
  --glass-border:   rgba(247, 242, 232, 0.14);
  --glass-blur:     blur(14px) saturate(135%);

  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --nav-h: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--indigo-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: var(--indigo-deep); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 4px;
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 80px; position: relative; z-index: 1; }
.beat-deep { background: rgba(15, 16, 40, 0.55); }

/* ============================================================
   ANIMATED AURORA BACKGROUND
   ============================================================ */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--indigo-deep); }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform; opacity: 0.78; }
.blob-amber  { width: 56vw; height: 56vw; top: -12%; left: -8%;
  background: radial-gradient(circle, rgba(255,179,0,0.6), transparent 68%);
  animation: drift-a 28s ease-in-out infinite; }
.blob-blue   { width: 50vw; height: 50vw; bottom: -18%; right: -10%;
  background: radial-gradient(circle, rgba(0,217,255,0.46), transparent 68%);
  animation: drift-b 34s ease-in-out infinite; }
.blob-violet { width: 46vw; height: 46vw; top: 26%; left: 42%;
  background: radial-gradient(circle, rgba(120,110,220,0.55), transparent 68%);
  animation: drift-c 40s ease-in-out infinite; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(15,16,40,0.34) 82%),
    rgba(26, 27, 58, 0.18);
}
@keyframes drift-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes drift-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7vw,-5vh) scale(1.08); } }
@keyframes drift-c { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw, 7vh) scale(1.15); } }

/* ============================================================
   GLASS + BUTTONS
   ============================================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(247, 242, 232, 0.07), 0 24px 60px -30px rgba(0,0,0,0.6);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  border-radius: 8px; cursor: pointer; border: none; text-align: center;
  transition: background 150ms ease, transform 150ms ease, border-color 150ms ease, box-shadow 200ms ease;
}
.btn-primary { background: var(--amber); color: var(--indigo-deep); padding: 16px 32px; }
.btn-primary:hover { background: var(--amber-hover); transform: scale(1.02); box-shadow: 0 10px 30px -8px rgba(255,179,0,0.5); }
.btn-secondary { background: rgba(247,242,232,0.02); color: var(--cream);
  border: 1.5px solid var(--cream); padding: 14.5px 32px; }
.btn-secondary:hover { background: rgba(247, 242, 232, 0.10); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  background: rgba(20, 21, 46, 0.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, background 250ms ease;
}
#nav.scrolled { border-bottom-color: var(--hairline); background: rgba(20, 21, 46, 0.72); }
#nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-logo { display: block; width: auto; height: 30px; }
.footer-brand .brand-logo { height: 34px; margin-bottom: 14px; }

.nav-links { display: flex; gap: 32px; margin: 0 auto; }
.nav-links a {
  font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--cream);
  opacity: 0.7; position: relative; padding: 4px 0; transition: opacity 180ms ease, color 180ms ease;
}
.nav-links a:hover, .nav-links a.current { opacity: 1; color: var(--amber); }

/* ============================================================
   LEGAL PAGE LAYOUT
   ============================================================ */
.legal-head { padding: calc(var(--nav-h) + 72px) 0 32px; }
.legal-head .eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber);
  display: block; margin-bottom: 14px;
}
.legal-head h1 { font-size: 56px; letter-spacing: -0.02em; margin-bottom: 14px; }
.legal-head .updated { color: var(--gray); font-size: 15px; }

.legal-wrap { padding-bottom: 96px; }
.legal-body {
  max-width: 760px; padding: 48px 56px; border-radius: 20px;
  font-size: 17px; line-height: 1.72;
}
.legal-body > p:first-child { font-size: 19px; line-height: 1.65; }
.legal-body h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.2;
  margin: 46px 0 16px; color: var(--cream);
}
.legal-body h2:first-of-type { margin-top: 38px; }
.legal-body p { margin-bottom: 18px; color: rgba(247, 242, 232, 0.9); }
.legal-body ul { margin: 0 0 18px 4px; padding-left: 22px; }
.legal-body li { margin-bottom: 11px; color: rgba(247, 242, 232, 0.9); }
.legal-body li::marker { color: var(--amber); }
.legal-body strong { color: var(--cream); font-weight: 600; }
.legal-body a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--amber-hover); }
.legal-body > :last-child { margin-bottom: 0; }

.legal-back { display: inline-block; margin-top: 32px; font-size: 15px; color: var(--gray); transition: color 150ms ease; }
.legal-back:hover { color: var(--amber); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { padding: 64px 0 0; position: relative; }
.footer-cols { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-tag { color: var(--gray); font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-weight: 500; font-size: 14px; color: var(--cream); transition: color 150ms ease; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--hairline); margin-top: 48px; padding: 24px 0; text-align: center; color: var(--gray); font-size: 13px; }
.footer-bottom .moh-mark { height: 24px; width: auto; vertical-align: middle; margin-right: 10px; opacity: 0.9; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) { .nav-links { display: none; } }
@media (max-width: 768px) {
  .wrap { padding: 0 24px; }
  .legal-head { padding: calc(var(--nav-h) + 44px) 0 24px; }
  .legal-head h1 { font-size: 38px; }
  .legal-body { padding: 32px 24px; border-radius: 16px; font-size: 16px; }
  .legal-body > p:first-child { font-size: 17px; }
  .legal-body h2 { font-size: 22px; margin: 36px 0 12px; }
  .footer-cols { flex-direction: column; gap: 32px; }
  .aurora .blob { filter: blur(80px); }
}

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