/**
 * legal.css — shared stylesheet for standalone legal HTML pages
 * (privacy-policy.html, terms-of-service.html).
 *
 * These pages are served as static HTML (not through the React SPA) so App
 * Store / Play Store / Paddle review teams can curl them without executing
 * JavaScript. This stylesheet mirrors the web app's LIGHT-mode palette from
 * web/src/index.css so the pages look on-brand without needing the Tailwind
 * runtime or any build step.
 *
 * Light-mode only by design — legal review agents don't care about dark
 * mode, and pinning to light maximises legibility on arbitrary devices.
 *
 * If you update the brand palette in web/src/index.css, mirror the values
 * here as well.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  /* Synced with web/src/index.css LIGHT-mode tokens (warm beige brand) */
  --bg-base: #E3D7C5;
  --bg-card: #EBE1D3;
  --border-subtle: #D5C9B8;
  --border-base: #CABFAF;
  --text-main: #1C1917;
  --text-muted: #44403C;
  --text-dim: #6B6560;
  --brand-main: #B8860B;     /* dark goldenrod — readable on the beige background */
  --brand-dark: #92690B;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  color-scheme: light;
}

body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "kern", "ss01", "calt";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.011em;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-base);
  padding: 48px 24px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

/* ─── Typography ────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: "Playfair Display", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-feature-settings: "kern", "ss01", "liga";
  font-optical-sizing: auto;
  line-height: 1.15;
  color: var(--text-main);
}

h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 6px;
  /* Gold gradient text — mirrors the .gold-text utility from the main app */
  background: linear-gradient(135deg, #92690B 0%, #B8860B 25%, #8B6914 50%, #B8860B 75%, #92690B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.028em;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--text-main);
}

p, li {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

strong {
  color: var(--text-main);
  font-weight: 600;
}

ul {
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
}

.date {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 28px;
  font-style: italic;
}

a {
  color: var(--brand-main);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--brand-main);
}

/* ─── Tables (used in privacy-policy.html) ─────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

tr:last-child th,
tr:last-child td {
  border-bottom: none;
}

th {
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
}

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

/* ─── Contact block ────────────────────────────────────────────────────── */

.contact {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  margin-top: 32px;
}

.contact p {
  margin-bottom: 6px;
}

.contact p:last-child {
  margin-bottom: 0;
}

/* ─── Small screens ────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  body { padding: 32px 18px; }
  h1 { font-size: 30px; }
  h2 { font-size: 19px; }
  h3 { font-size: 15px; }
  table { font-size: 13px; }
  th, td { padding: 10px 12px; }
}
