/* Public CoreFit pages (about, privacy, terms, support, delete-account).
   Plain HTML so search engines and store reviewers read them without JavaScript.
   Colours match the app's src/constants/theme.ts. */
:root {
  --text: #101814;
  --text-secondary: #5b6862;
  --background: #f3f6f4;
  --surface: #ffffff;
  --border: #d9e2dc;
  --primary: #3ddc5c;
  --on-primary: #06200d;
  --accent: #15803d;
  color-scheme: light;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f5f3;
    --text-secondary: #9ba49f;
    --background: #0d1110;
    --surface: #171c1a;
    --border: #2a3330;
    --accent: #4be36a;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #0b0b0f;
}

header.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 15px;
}

header.site nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

header.site nav a:hover,
header.site nav a[aria-current='page'] {
  color: var(--text);
}

main.wrap {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 32px 0 8px;
}

h3 {
  font-size: 17px;
  margin: 0 0 4px;
}

p,
ul {
  margin: 0 0 12px;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 4px;
}

.lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
}

.muted {
  color: var(--text-secondary);
}

.small {
  font-size: 14px;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.price {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

.price small {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 8px 0 0;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 20px 0 32px;
  font-size: 14px;
  color: var(--text-secondary);
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 8px;
}

footer.site p {
  margin: 0;
}

.actions + p {
  margin-top: 12px;
}
