/* Mirrors the app's tokens so the policy pages don't feel like a different
   product. Values are the resolved hex of the same oklch source colours used
   in src/theme/colors.ts. */
:root {
  --bg: #faf8f5;
  --surface: #fefcf7;
  --border: #e9e4dc;
  --text: #201511;
  --body: #4a3f39;
  --muted: #7c6f66;
  --accent: #d14239;
  --coral: #fc6a5d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.bar {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mark {
  height: 30px;
  width: auto;
  flex: none;
}

.hero .mark {
  height: 72px;
  margin-bottom: 6px;
}

.wordmark {
  font-family: 'Archivo Black', Inter, sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}

nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

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

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 22px 72px;
}

h1 {
  font-family: 'Archivo Black', Inter, sans-serif;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}

h2 {
  font-size: 19px;
  margin: 34px 0 10px;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
}

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

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

.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.legal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px 26px 26px;
}

.cat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.cat-table th,
.cat-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--body);
}

.cat-table th:last-child,
.cat-table td:last-child {
  text-align: center;
  white-space: nowrap;
}

/* Termly's free tier requires this credit line to remain. */
.attribution {
  color: var(--muted);
  font-size: 13px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Marks where the generated policy text has to be pasted in. Deliberately
   loud — shipping the placeholder to the App Store would fail review, and a
   subtle note is easy to miss. */
.placeholder {
  border: 2px dashed var(--coral);
  border-radius: 14px;
  background: #fff4f2;
  padding: 18px 20px;
  margin: 18px 0;
}

.placeholder strong {
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px 22px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--muted);
}

.hero {
  text-align: center;
  padding: 56px 0 28px;
}

.hero .tagline {
  font-size: 19px;
  color: var(--body);
  max-width: 30ch;
  margin: 12px auto 0;
}

.links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.links a {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 100px;
  padding: 11px 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16110f;
    --surface: #1f1917;
    --border: #332b28;
    --text: #f6f1ec;
    --body: #cdc2ba;
    --muted: #9a8d84;
  }
  .placeholder {
    background: #2a1d1b;
  }
}
