/* The public site (fourstore.app): the landing page and the privacy policy. No scripts, no
   external requests. Colors match the app's theme (src/theme/colors.ts). */
:root {
  color-scheme: light dark;
  --primary: #0b7a55;
  --background: #ffffff;
  --surface: #f6f8f7;
  --border: #d3dbd7;
  --text: #111816;
  --text-muted: #55615c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3cc48f;
    --background: #0e1311;
    --surface: #161d1a;
    --border: #2c3833;
    --text: #eef3f0;
    --text-muted: #a3b0aa;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.brand {
  margin: 0 0 24px;
  font-weight: 700;
  font-size: 1.125rem;
}

.brand a {
  color: var(--primary);
  text-decoration: none;
}

h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.25;
}

h2 {
  margin: 40px 0 8px;
  font-size: 1.375rem;
  line-height: 1.3;
}

h3 {
  margin: 20px 0 4px;
  font-size: 1.0625rem;
}

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

ul,
ol {
  padding-left: 1.4em;
}

li {
  margin: 0 0 4px;
}

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

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

.summary {
  margin: 24px 0 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.summary h2 {
  margin-top: 0;
}

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

table {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
}

th,
td {
  padding: 8px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
}

/* On a phone, each table row becomes a card with its column names as labels. */
@media (max-width: 600px) {
  table,
  tbody,
  tr,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin: 0 0 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }

  td {
    border: 0;
    border-top: 1px solid var(--border);
  }

  td:first-child {
    border-top: 0;
    background: var(--surface);
  }

  td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
  }
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
}
