/* Shared theme for single pages (terms, privacy, refund, about).
   Mirrors the look of index.php: same tokens, fonts, atmosphere and nav. */

:root {
  --bg: #ffffff;
  --ink: #12131a;
  --ink-muted: #6b6d78;
  --line: #ececf1;
  --violet: #5b4fe9;
  --cyan: #2fd1c6;
  --coral: #ff6f91;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .eyebrow {
  font-family: 'Space Grotesk', sans-serif;
}

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

/* ---------- Ambient atmosphere ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.blob.b1 {
  width: 480px; height: 480px;
  top: -140px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--violet), transparent 70%);
  opacity: .28;
  animation: drift1 24s ease-in-out infinite;
}

.blob.b2 {
  width: 420px; height: 420px;
  bottom: -150px; left: -110px;
  background: radial-gradient(circle at 60% 40%, var(--cyan), transparent 70%);
  opacity: .24;
  animation: drift2 28s ease-in-out infinite;
}

.blob.b3 {
  width: 300px; height: 300px;
  top: 42%; left: 58%;
  background: radial-gradient(circle at 50% 50%, var(--coral), transparent 70%);
  opacity: .14;
  animation: drift3 32s ease-in-out infinite;
}

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,30px) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-20px) scale(1.05); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-25px,25px); } }

/* ---------- Top nav (same as index.php) ---------- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.9rem 5%;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links { display: flex; gap: 2.2rem; }

.nav-link {
  font-size: 0.9rem; font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.3rem 0;
  position: relative;
  transition: color .25s ease;
}

.nav-link.active, .nav-link:hover { color: var(--ink); }

.nav-link.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -5px;
  height: 2px; border-radius: 2px;
  background: var(--violet);
}

@media (max-width: 700px) {
  .nav-links { display: none; }
}

/* ---------- Content ---------- */
main {
  position: relative;
  z-index: 1;
  padding: 10rem 6% 5rem;
}

.page-inner { max-width: 780px; margin: 0 auto; }

.eyebrow {
  font-size: 0.85rem; font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  display: block;
}

.page-inner h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.updated {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-bottom: 2.5rem;
}

.lede {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--ink-muted);
  margin-bottom: 1.2rem;
}

.prose p {
  color: var(--ink-muted);
  font-size: 1.02rem;
  margin-bottom: 1.2rem;
}

.prose strong { color: var(--ink); font-weight: 600; }

.prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 3rem;
  margin-bottom: 0.8rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--violet);
}

.prose ul {
  color: var(--ink-muted);
  padding-left: 1.4rem;
  margin-bottom: 1.5rem;
}

.prose li { margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 6% 3rem;
}

.site-footer .footer-inner {
  max-width: 780px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.footer-meta, .copyright { color: var(--ink-muted); font-size: 0.85rem; }

.legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 0.4rem; }

.legal-links a {
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-decoration: none;
}

.legal-links a:hover, .legal-links a.active { color: var(--ink); }

.footer-right { text-align: right; }

@media (max-width: 700px) {
  main { padding: 7rem 7% 4rem; }
  .site-footer { padding: 0 7% 3rem; }
  .footer-right { text-align: left; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
}
