/* ─────────────────────────────────────────
   Verses — Legal pages (terms, privacy, refund, faq)
   Standalone: light only, blue accent
───────────────────────────────────────── */

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

:root {
  --bg:           #fafafa;
  --bg-nav:       rgba(250, 250, 250, 0.90);
  --fg:           #0f172a;
  --fg-muted:     #4b5563;
  --fg-dim:       #9ca3af;
  --border:       #e5e7eb;
  --border-hover: #9ca3af;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --speed:        0.18s;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

a { text-decoration: none; color: inherit; }

/* ── Skip link ── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 100;
  transition: top 0.1s;
}
.skip-link:focus { top: 16px; }

/* ── Nav ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-logo-mark {
  width: 22px;
  height: 22px;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  transition: opacity var(--speed);
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; }

/* ── Page layout ── */

.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 32px 100px;
}

/* ── Header ── */

.legal-header {
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 48px;
}

.legal-eyebrow {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.legal-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 520px;
}

/* ── Body sections ── */

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-section h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.legal-section p,
.legal-section li,
.legal-section dd {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

.legal-section strong {
  color: var(--fg);
  font-weight: 600;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section ul li::before {
  content: '—';
  margin-right: 10px;
  color: var(--fg-dim);
}

.legal-link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed);
}
.legal-link:hover { border-color: var(--accent); }

/* ── Table ── */

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
}

.legal-table th {
  font-weight: 600;
  color: var(--fg);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-table td:first-child,
.legal-table th:first-child { width: 36%; }

/* ── FAQ ── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.faq-item dt {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

.faq-item dd {
  margin: 0;
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* ── Footer ── */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px 56px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-muted);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-sep { color: var(--fg-dim); }

.footer-link {
  font-size: 0.9rem;
  color: var(--fg-muted);
  border-bottom: 1px solid transparent;
  transition: color var(--speed), border-color var(--speed);
}
.footer-link:hover { color: var(--fg); border-color: var(--fg-dim); }
.footer-link[aria-current="page"] { color: var(--accent); border-color: var(--accent); }

.footer-note {
  font-size: 0.84rem;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}

/* ── Focus ── */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .nav { padding: 14px 20px; }
  .legal-page { padding: 48px 20px 72px; }
  .legal-header { margin-bottom: 40px; padding-bottom: 36px; }
  .legal-table td:last-child,
  .legal-table th:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
