/* ============================================================================
   Nora policy pages — same aesthetic as the homepage.
   Drives privacy.html, terms.html, support.html.
   ============================================================================ */
:root {
  --bg:           #08070D;
  --bg-deep:      #0A0814;
  --ink:          rgba(255, 255, 255, 0.92);
  --ink-soft:     rgba(255, 255, 255, 0.65);
  --ink-faint:    rgba(255, 255, 255, 0.45);
  --ink-quiet:    rgba(255, 255, 255, 0.32);

  --accent:       #9D8FF7;
  --accent-soft:  #C7BEFF;
  --accent-deep:  #7C6CF6;
  --on-brand:     #0A0A0F;

  --line:         rgba(255, 255, 255, 0.06);
  --line-strong:  rgba(255, 255, 255, 0.12);

  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================================
   BACKDROP — identical to the homepage (orbs, rings, stars, sparkles, bubbles)
   ============================================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(124, 108, 246, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

/* Three soft glow orbs, scattered. */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
}
.orb-a {
  top: -8%;
  left: -10%;
  width: clamp(280px, 36vw, 520px);
  height: clamp(280px, 36vw, 520px);
  background: radial-gradient(circle,
    rgba(157, 143, 247, 0.55) 0%,
    rgba(124, 108, 246, 0.22) 40%,
    rgba(10, 8, 20, 0) 75%);
  opacity: 0.65;
  animation: orb-breathe-a 9s ease-in-out infinite;
}
.orb-b {
  top: 58%;
  right: -6%;
  width: clamp(220px, 30vw, 460px);
  height: clamp(220px, 30vw, 460px);
  background: radial-gradient(circle,
    rgba(124, 108, 246, 0.45) 0%,
    rgba(199, 190, 255, 0.14) 55%,
    rgba(10, 8, 20, 0) 80%);
  opacity: 0.55;
  animation: orb-breathe-b 11s ease-in-out infinite;
}
.orb-c {
  bottom: -10%;
  left: 22%;
  width: clamp(200px, 26vw, 380px);
  height: clamp(200px, 26vw, 380px);
  background: radial-gradient(circle,
    rgba(199, 190, 255, 0.34) 0%,
    rgba(124, 108, 246, 0.16) 50%,
    rgba(10, 8, 20, 0) 80%);
  opacity: 0.5;
  animation: orb-breathe-c 13s ease-in-out infinite;
}
@keyframes orb-breathe-a {
  0%, 100% { transform: translate(0, 0)      scale(1);    opacity: 0.55; }
  50%      { transform: translate(2vw, 1vw)  scale(1.06); opacity: 0.75; }
}
@keyframes orb-breathe-b {
  0%, 100% { transform: translate(0, 0)       scale(1);    opacity: 0.45; }
  50%      { transform: translate(-2vw, -1vw) scale(0.95); opacity: 0.65; }
}
@keyframes orb-breathe-c {
  0%, 100% { transform: translate(0, 0)      scale(1);    opacity: 0.42; }
  50%      { transform: translate(1vw, -1vw) scale(1.08); opacity: 0.60; }
}

/* Outline rings — four, scattered. */
.ring { position: absolute; pointer-events: none; }
.ring circle { fill: none; }
.ring-a {
  top: 8%;
  left: 12%;
  width: clamp(120px, 14vw, 200px);
  height: clamp(120px, 14vw, 200px);
  opacity: 0.42;
  animation: ring-spin 38s linear infinite, ring-pulse 7s ease-in-out infinite;
}
.ring-a circle { stroke: url(#ringOuter); stroke-width: 1.2; }
.ring-b {
  top: 86%;
  right: 8%;
  width: clamp(90px, 11vw, 160px);
  height: clamp(90px, 11vw, 160px);
  opacity: 0.36;
  animation: ring-spin-rev 46s linear infinite, ring-pulse 9s ease-in-out infinite;
}
.ring-b circle { stroke: url(#ringInner); stroke-width: 1; }
.ring-c {
  top: 62%;
  left: 6%;
  width: clamp(60px, 7vw, 110px);
  height: clamp(60px, 7vw, 110px);
  opacity: 0.32;
  animation: ring-spin 54s linear infinite, ring-pulse 11s ease-in-out infinite;
}
.ring-c circle { stroke: url(#ringOuter); stroke-width: 0.9; }
.ring-d {
  top: 18%;
  right: 18%;
  width: clamp(54px, 6vw, 96px);
  height: clamp(54px, 6vw, 96px);
  opacity: 0.30;
  animation: ring-spin-rev 60s linear infinite, ring-pulse 8.5s ease-in-out infinite;
}
.ring-d circle { stroke: url(#ringInner); stroke-width: 0.9; }
@keyframes ring-spin     { to { transform: rotate(360deg); } }
@keyframes ring-spin-rev { to { transform: rotate(-360deg); } }
@keyframes ring-pulse {
  0%, 100% { opacity: 0.30; }
  50%      { opacity: 0.58; }
}

/* Sparkles, stars, bubbles — populated by /policy.js */
.starfield, .sparklefield, .bubblefield {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.star {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.star.tone-white  { background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.40) 60%, transparent 100%); box-shadow: 0 0 8px rgba(255,255,255,0.45); }
.star.tone-violet { background: radial-gradient(circle, rgba(199,190,255,0.95) 0%, rgba(199,190,255,0.40) 60%, transparent 100%); box-shadow: 0 0 10px rgba(199,190,255,0.55); }
.star.tone-deep   { background: radial-gradient(circle, rgba(124,108,246,0.95) 0%, rgba(124,108,246,0.40) 60%, transparent 100%); box-shadow: 0 0 10px rgba(124,108,246,0.55); }
@keyframes star-twinkle {
  0%, 100% { opacity: 0.18; transform: translate(-50%, -50%) scale(0.85); }
  50%      { opacity: 0.85; transform: translate(-50%, -50%) scale(1.18); }
}

.sparkle {
  position: absolute;
  transform: translate(-50%, -50%);
  color: rgba(199, 190, 255, 0.9);
  filter: drop-shadow(0 0 6px rgba(199, 190, 255, 0.55));
}
.sparkle svg { display: block; width: 100%; height: 100%; }
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0.2;  transform: translate(-50%, -50%) rotate(0deg)   scale(0.7); }
  50%      { opacity: 0.95; transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
}

.bubble {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 38% 32%,
      rgba(255, 255, 255, 0.30) 0%,
      rgba(199, 190, 255, 0.20) 35%,
      rgba(124, 108, 246, 0.10) 70%,
      rgba(10, 8, 20, 0) 100%);
  border: 1px solid rgba(199, 190, 255, 0.10);
  box-shadow:
    inset 0 1px 8px rgba(255, 255, 255, 0.10),
    0 0 22px rgba(124, 108, 246, 0.18);
  filter: blur(0.4px);
}
@keyframes bubble-drift {
  0%   { transform: translate(-50%, -50%)                                                scale(1);    opacity: 0.22; }
  50%  { transform: translate(calc(-50% + var(--dx, 12px)), calc(-50% + var(--dy, -16px))) scale(1.06); opacity: 0.42; }
  100% { transform: translate(-50%, -50%)                                                scale(1);    opacity: 0.22; }
}

/* ============================================================================
   LAYOUT — content above the backdrop
   ============================================================================ */
.topbar, main, footer { position: relative; z-index: 2; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding:
    calc(env(safe-area-inset-top, 0px) + 16px)
    calc(env(safe-area-inset-right, 0px) + 28px)
    14px
    calc(env(safe-area-inset-left, 0px) + 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(8, 7, 13, 0.78) 0%, rgba(8, 7, 13, 0.55) 70%, rgba(8, 7, 13, 0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.brand .dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: 0 0 12px rgba(199, 190, 255, 0.8);
}
.topbar nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.topbar nav a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
  padding: 8px 4px;
}
.topbar nav a:hover { color: var(--ink); }
.topbar nav a.current { color: var(--ink); }
.topbar nav .sep {
  display: inline-block;
  width: 1px; height: 12px;
  background: var(--line-strong);
  opacity: 0.6;
}

/* ============================================================================
   POLICY CONTENT
   ============================================================================ */
main.policy {
  max-width: 760px;
  margin: 0 auto;
  padding:
    clamp(24px, 5vw, 56px)
    clamp(22px, 6vw, 40px)
    clamp(48px, 8vw, 80px);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  transition: color 0.2s, transform 0.2s;
}
.back:hover { color: var(--accent-soft); transform: translateX(-3px); }

.doc-head {
  margin: 0 0 36px;
}
.doc-head .kicker {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.doc-head h1 {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(54px, 8vw, 96px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 0 22px;
  color: var(--ink);
}
.doc-head h1 .soft { font-weight: 300; color: var(--accent-soft); }
.doc-head .lede {
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 0 14px;
}
.doc-head .meta {
  font-size: 12.5px;
  color: var(--ink-quiet);
  letter-spacing: 0.04em;
  margin: 0;
}

/* Soft note */
.note {
  margin: 28px 0 40px;
  padding: 22px 24px;
  background: rgba(20, 18, 32, 0.45);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-soft);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.note p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.note p strong { color: var(--ink); font-weight: 500; }

main.policy section { margin: 36px 0; }
main.policy h2 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--ink);
}
main.policy p, main.policy li {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 400;
}
main.policy p { margin: 0 0 14px; }
main.policy p strong, main.policy li strong {
  color: var(--ink);
  font-weight: 500;
}
main.policy ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 14px;
}
main.policy li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
main.policy li::before {
  content: "";
  position: absolute;
  left: 6px; top: 13px;
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  opacity: 0.7;
}
main.policy a {
  color: var(--accent-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(199,190,255,0.35);
  transition: color 0.2s, border-color 0.2s;
}
main.policy a:hover { color: #FFFFFF; border-color: var(--accent-soft); }

/* ============================================================================
   SUPPORT — quiet email card + FAQ
   ============================================================================ */
.email-card {
  display: block;
  margin: 32px 0;
  padding: 32px 28px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(157, 143, 247, 0.16), transparent 60%),
    rgba(20, 18, 32, 0.45);
  border: 1px solid rgba(199, 190, 255, 0.22);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.40);
  text-decoration: none;
  color: inherit;
}
.email-card > * + * { margin-top: 0; }
.email-card .lbl { display: inline-flex; }
.email-card > div { margin-top: 4px; }
.email-card .lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.email-card .lbl .pulse {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(199, 190, 255, 0.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.email-card .email {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  border: 0;
  word-break: break-word;
}
.email-card .email:hover { color: var(--accent-soft); border: 0; }
.email-card .sla {
  margin: 12px 0 18px;
  color: var(--ink-faint);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.email-card .cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-brand);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  box-shadow: 0 8px 18px rgba(124, 108, 246, 0.45);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.email-card .cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 22px rgba(124, 108, 246, 0.55);
  color: var(--on-brand);
}

.faq {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 200;
  color: var(--ink-faint);
  line-height: 1;
  transition: transform 0.3s, color 0.2s;
  font-variant-numeric: tabular-nums;
}
.faq-item[open] summary { color: var(--accent-soft); }
.faq-item[open] summary::after {
  content: "−";
  color: var(--accent-soft);
}
.faq-item summary:hover { color: var(--accent-soft); }
.faq-body {
  padding: 0 0 18px;
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 8px;
}
.quick-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(20, 18, 32, 0.45);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.quick-links a small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 3px;
  letter-spacing: 0;
}
.quick-links a:hover {
  background: rgba(20, 18, 32, 0.7);
  border-color: rgba(199, 190, 255, 0.30);
  transform: translateY(-1px);
}
.quick-links .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(157, 143, 247, 0.12);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
footer {
  padding:
    20px
    calc(env(safe-area-inset-right, 0px) + 28px)
    calc(env(safe-area-inset-bottom, 0px) + 24px)
    calc(env(safe-area-inset-left, 0px) + 28px);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 28px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-faint);
}
.footer-inner a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-inner a:hover { color: var(--accent-soft); }
.footer-inner .heart { color: var(--accent-soft); }
.footer-inner .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 560px) {
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  }
  .brand { font-size: 12.5px; letter-spacing: 0.28em; }
  .topbar nav { gap: 12px; }
  .topbar nav a { font-size: 12.5px; }
  main.policy { padding: 24px 20px 56px; }
  .doc-head { margin-bottom: 28px; }
  .doc-head h1 { font-size: clamp(44px, 12vw, 64px); }
  .quick-links { grid-template-columns: 1fr; }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    font-size: 12.5px;
  }
  .footer-inner .links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s !important;
  }
  .orb, .ring, .star, .sparkle, .bubble {
    opacity: 1 !important;
    transform: none !important;
  }
}
