/*
 * Shared styling for the static policy pages (privacy.html, terms.html).
 *
 * These pages live in public/ so Vite copies them into dist/ verbatim and
 * Firebase Hosting serves them without JavaScript and without sign-in. Keep
 * this file dependency-free for the same reason.
 */

:root {
  --policy-bg: #ffffff;
  --policy-fg: #24292f;
  --policy-muted: #57606a;
  --policy-rule: #d8dee4;
  --policy-accent: #197a7b;
  --policy-callout-bg: #f1f8f8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --policy-bg: #12161a;
    --policy-fg: #e6edf3;
    --policy-muted: #9198a1;
    --policy-rule: #30363d;
    --policy-accent: #4dd0d1;
    --policy-callout-bg: #16232a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--policy-bg);
  color: var(--policy-fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

main {
  max-width: 46rem;
  margin: 0 auto;
}

header.policy-header {
  border-bottom: 1px solid var(--policy-rule);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

header.policy-header .app-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--policy-accent);
  letter-spacing: 0.01em;
  margin: 0 0 0.35rem;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.6rem;
}

h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.4rem;
}

p,
li {
  color: var(--policy-fg);
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

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

.updated,
.muted {
  color: var(--policy-muted);
  font-size: 0.9rem;
}

/*
 * The Limited Use statement is the specific sentence an OAuth reviewer looks
 * for. It is set apart so it is impossible to miss on the rendered page.
 */
.limited-use {
  background: var(--policy-callout-bg);
  border-left: 4px solid var(--policy-accent);
  border-radius: 4px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  font-size: 1.02rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--policy-rule);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--policy-callout-bg);
}

.table-wrap {
  overflow-x: auto;
}

footer.policy-footer {
  border-top: 1px solid var(--policy-rule);
  margin-top: 3rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--policy-muted);
}
