/* ==========================================================================
   Shared styles for Serenity legal pages (terms, privacy, refund).
   Tokens come from design-tokens.css.
   ========================================================================== */

body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg-primary);
  background: var(--bg-page);
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-feature-settings: var(--otf-display);
  color: var(--fg-primary);
  line-height: 1.25;
}
h1 { font-size: 2rem; margin: 1.5rem 0 0.5rem; font-weight: 700; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 0.5rem; font-weight: 600; }
p, ul { margin: 0.75rem 0; }
ul { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }
a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-surface-deep); padding: 0.1em 0.35em; border-radius: var(--radius-sharp); }

.topnav {
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.topnav a {
  color: var(--fg-secondary);
  text-decoration: none;
  font-weight: 500;
}
.topnav a:hover { color: var(--fg-primary); }

.updated {
  color: var(--fg-tertiary);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--fg-secondary);
}
.footer p { margin: 0.4rem 0; }
.footer a { color: var(--fg-secondary); }
