/* Shared styles for /terms, /privacy, /refund legal pages */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --bg-dark: #0a0a0a;
  --accent: #dc2626;
  --accent-dark: #991b1b;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Top nav */
.nav { background: var(--bg-dark); border-bottom: 1px solid rgba(255,255,255,.05); padding: 16px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.nav .logo img { height: 44px; width: auto; display: block; }
.nav-cta { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: all .15s; cursor: pointer; border: none; font-family: inherit; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }

/* Page header */
.page-head { background: var(--bg-alt); padding: 56px 0 36px; border-bottom: 1px solid var(--border); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; margin-bottom: 14px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 10px; }
.page-head .updated { color: var(--muted); font-size: 14px; }

/* Body */
main { padding: 48px 0 80px; }
main h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; letter-spacing: -.3px; }
main h2:first-child { margin-top: 0; }
main h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
main p { margin-bottom: 14px; color: #1e293b; }
main ul, main ol { margin: 8px 0 18px 24px; }
main li { margin-bottom: 6px; }
main strong { font-weight: 700; }
main .placeholder { background: #fef3c7; padding: 2px 6px; border-radius: 4px; font-size: 14px; font-weight: 600; color: #92400e; }
main .note { background: var(--bg-alt); border-left: 4px solid var(--accent); padding: 14px 18px; margin: 18px 0; border-radius: 0 6px 6px 0; font-size: 14px; color: var(--muted); }

/* Table */
main table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
main th, main td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
main th { background: var(--bg-alt); font-weight: 700; }

/* Footer */
footer { background: var(--bg-dark); color: #cbd5e1; padding: 32px 0; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.foot-inner .logo img { height: 32px; width: auto; display: block; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: #cbd5e1; font-size: 14px; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
footer .copyright { color: #64748b; font-size: 13px; }

@media (max-width: 640px) {
  .nav-cta .btn-ghost { display: none; }
  main { padding: 32px 0 60px; }
  .page-head { padding: 36px 0 24px; }
}
