/* Styling for the static legal pages (/privacy, /terms, /refunds).
   These pages are plain HTML on purpose: the app uses HashRouter, and a URL
   fragment is never sent to the server, so /#/privacy is invisible to Google's
   OAuth verification and to every search engine. Keeping them static makes them
   fetchable at real URLs. Colours and type mirror the app's design tokens. */

:root {
  --primary: #107c41;
  --secondary: #1070b8;
  --text: #102018;
  --text-muted: #5c6b7a;
  --border: #e2e8f0;
  --background: #ffffff;
  --surface: #f7faf9;
}

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

body {
  font-family: "Signika", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}
.site-header .inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header img { height: 40px; width: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, background-color 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: 0.95; }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

/* Content */
main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3.5rem 1rem;
}
h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; }
.subtitle { margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.content { margin-top: 2rem; }
h2 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.75rem; }
p { font-size: 0.95rem; margin: 0 0 0.75rem; }
ul { margin: 0 0 0.75rem; padding-left: 1.5rem; list-style: disc; }
li { font-size: 0.95rem; margin-bottom: 0.5rem; }
strong { font-weight: 700; }
a { color: var(--secondary); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1rem;
}
.site-footer .links {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.site-footer a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--text); }
.copyright {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

@media (min-width: 768px) {
  main { padding: 5rem 1rem; }
  h1 { font-size: 2.25rem; }
}
