/* ============================================================
   Epicurus Pro — Legal docs (Terms / Privacy)
   Rides the landing design system (landing.css loads first:
   tokens, buttons, footer). This file styles the doc shell only.
   ============================================================ */

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

/* draft notice — on-system violet, not amber */
.draft-banner {
  background: var(--accent-bg);
  border-bottom: 1px solid rgba(136, 61, 255, .22);
  color: var(--violet);
  text-align: center;
  padding: 10px 16px;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .03em;
}

/* sticky frosted topbar — same recipe as the integrations nav */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  background: rgba(248, 249, 252, .78);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.topbar-link { color: var(--ink-soft); font-size: .92rem; font-weight: 500; transition: color .2s; }
.topbar-link:hover { color: var(--ink); }

.shell { max-width: 860px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) 28px clamp(56px, 9vw, 100px); }

.doc-header { margin-bottom: 30px; }
.doc-header h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; line-height: 1.06;
  margin-bottom: 12px;
}
.doc-meta { color: var(--ink-soft); font-size: .92rem; }
.doc-meta strong { color: var(--ink); font-weight: 600; }
.doc-meta a { color: var(--violet); }
.doc-meta a:hover { text-decoration: underline; }

/* the document card */
.legal-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 44px);
}

.legal-body h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.22rem; letter-spacing: -.015em; color: var(--ink);
  margin: 2.1rem 0 .8rem;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem; color: var(--ink); margin: 1.3rem 0 .5rem;
}
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: .96rem; margin-bottom: .8rem; }
.legal-body ul, .legal-body ol { padding-left: 1.4rem; margin-bottom: .8rem; }
.legal-body li { margin-bottom: .45rem; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--violet); }
.legal-body a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .topbar { padding: 12px 20px; }
  .topbar .btn { padding: 9px 16px; font-size: .88rem; }
  .shell { padding-left: 20px; padding-right: 20px; }
}
/* narrow phones: the cross-doc link collides with the brand — the footer still links both docs */
@media (max-width: 520px) {
  .topbar-link { display: none; }
}
