/* Shared layout for the content pages (privacy, terms, contact):
   the homepage-style header with menu, the footer, and readable long text.
   Loaded after auth.css. */
nav { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
nav a { color: inherit; text-decoration: none; }
nav a:hover, nav a.active { color: var(--text); }
.actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.btn {
  font: inherit; font-size: 14px; font-weight: 500; text-decoration: none;
  padding: 8px 14px; border-radius: 10px; border: 0; cursor: pointer;
}
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--chip); }
.btn-light { background: var(--text); color: var(--on-text); }

main.page { display: block; min-height: 0; max-width: 760px; margin: 0 auto; padding: 56px 16px 80px; }
.page-head { text-align: center; margin-bottom: 36px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  background: var(--chip); border: 1px solid var(--box-border);
  margin-bottom: 20px; color: var(--muted);
}
.badge b { color: var(--text); font-weight: 600; }
.page-head h1 { font-size: clamp(34px, 5.5vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 12px; text-wrap: balance; }
.page-head p { font-size: clamp(15px, 2vw, 18px); color: var(--muted); line-height: 1.5; }

/* Long-form legal text */
.prose {
  background: var(--box); border: 1px solid var(--box-border); border-radius: 24px;
  padding: 40px; box-shadow: 0 20px 60px var(--shadow);
  font-size: 15px; line-height: 1.7; color: var(--muted);
}
.prose h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); margin: 32px 0 10px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { margin-bottom: 12px; }
.prose ul { margin: 0 0 12px 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); }
.prose .toc { list-style: none; margin: 0 0 8px; padding: 0 0 24px; border-bottom: 1px solid var(--box-border); columns: 2; column-gap: 24px; font-size: 14px; }
.prose .toc li { margin-bottom: 6px; break-inside: avoid; }
.prose .toc a { color: var(--muted); text-decoration: none; }
.prose .toc a:hover { color: var(--text); }
.updated { font-size: 13px; color: var(--faint); text-align: center; margin-top: 20px; }
/* Text the owner still has to fill in */
.ph { background: var(--chip); border: 1px dashed var(--strong-border); border-radius: 6px; padding: 0 5px; color: var(--text); white-space: nowrap; }

footer {
  position: relative; z-index: 2; max-width: 1280px; margin: 0 auto;
  padding: 20px 24px 28px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px solid var(--box-border);
}
footer .foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: inherit; text-decoration: none; }
footer a:hover, footer a.active { color: var(--text); }

@media (max-width: 720px) {
  nav, .btn-ghost { display: none; }
  main.page { padding-top: 32px; }
  .prose { padding: 26px 20px; border-radius: 20px; }
  .prose .toc { columns: 1; }
  footer { flex-direction: column; text-align: center; padding: 20px 16px 24px; }
}
