/* ============================================================
   atlvibe — content pages (support / privacy / terms)
   Extends styles.css (same "Atlanta, after dark" system).
   Long-form document layout + legal/FAQ typography.
   ============================================================ */

.doc,
.doc__head {
  width: min(100% - 3rem, 52rem);
  margin-inline: auto;
}

/* ---------- back link ---------- */
.backlink {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  padding: 0.4rem 0.85rem; border-radius: var(--pill);
  border: 1px solid var(--line); background: rgba(27,20,24,0.4);
  backdrop-filter: blur(8px);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              transform 0.25s var(--ease);
}
.backlink:hover { color: var(--cream); border-color: rgba(255,138,91,0.45);
  transform: translateX(-2px); }

/* ---------- document header ---------- */
.doc__head {
  padding-top: clamp(2rem, 6vh, 4rem);
  padding-bottom: clamp(1rem, 3vh, 2rem);
}
.doc__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.02;
  letter-spacing: -0.035em; margin-top: 1.2rem;
  font-optical-sizing: auto;
}
.doc__title .grad { font-style: italic; }
.doc__lead {
  margin-top: 1rem; max-width: 46ch;
  font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--muted);
  text-wrap: balance;
}
.doc__updated {
  margin-top: 1.1rem; font-size: 0.85rem; color: var(--faint);
  display: inline-flex; align-items: center; gap: 0.5rem;
}

/* ---------- long-form prose ---------- */
.prose {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  font-size: 1.03rem; line-height: 1.72; color: #ece0d8;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--cream);
  font-size: 1.5rem; margin-top: 2.2em; margin-bottom: -0.1em;
  scroll-margin-top: 1.5rem;
}
.prose h3 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.01em;
  color: var(--cream); font-size: 1.18rem; margin-top: 1.6em;
}
.prose h2:first-child, .prose h3:first-child, .prose p:first-child { margin-top: 0; }
.prose a {
  color: var(--peach); text-decoration: underline;
  text-decoration-color: rgba(255,138,91,0.4); text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.prose a:hover { text-decoration-color: var(--peach); }
.prose strong { color: var(--cream); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-top: 0.45em; }
.prose li::marker { color: var(--peach); }
.prose hr {
  border: 0; height: 1px; margin: 2.2em 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.prose small { color: var(--faint); font-size: 0.85rem; }

/* ---------- contact card (support) ---------- */
.contact {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.contact__card {
  position: relative; overflow: hidden;
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(36,26,31,0.55), rgba(27,20,24,0.4));
  border: 1px solid var(--line);
}
.contact__label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold);
}
.contact__value {
  font-family: var(--display); font-weight: 600; font-size: 1.35rem;
  letter-spacing: -0.02em; margin-top: 0.5rem; overflow-wrap: anywhere;
}
.contact__value a { color: var(--cream); }
.contact__value a:hover { color: var(--peach); }
.contact__sub { margin-top: 0.5rem; color: var(--muted); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq {
  margin-top: clamp(1.8rem, 5vh, 3rem);
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0;
}
.faq__item > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0.2rem;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: -0.01em; color: var(--cream);
  transition: color 0.2s var(--ease);
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary:hover { color: var(--peach); }
.faq__item > summary::after {
  content: "+"; flex: none;
  font-family: var(--sans); font-weight: 400; font-size: 1.5rem;
  color: var(--peach); line-height: 1;
  transition: transform 0.25s var(--ease);
}
.faq__item[open] > summary::after { transform: rotate(45deg); }
.faq__answer {
  padding: 0 0.2rem 1.2rem; color: var(--muted); line-height: 1.7;
}
.faq__answer > * + * { margin-top: 0.8em; }
.faq__answer a { color: var(--peach); text-underline-offset: 3px; }

/* ---------- reveal (mirror styles.css so pages animate in) ---------- */
.reveal { opacity: 0; transform: translateY(16px);
  animation: revealUp 0.7s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .faq__item[open] > summary::after { transform: none; }
}
