/*
 * Shared styles for the static legal pages (app privacy policies).
 * Plain CSS on purpose: these pages must render without the React bundle.
 * Colors and fonts mirror the portfolio theme in src/main.css.
 */
:root {
  --bg: #fafaf8;
  --text: #1e1b18;
  --muted: #57534e;
  --border: #e7e5e4;
  --surface: #ffffff;
  --accent: #c45e3a;
  --accent-hover: #a34a2c;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161311;
    --text: #f5f5f4;
    --muted: #a8a29e;
    --border: #2e2925;
    --surface: #1f1b18;
    /* Lighter accent keeps >= 4.5:1 contrast on the dark background. */
    --accent: #e58b66;
    --accent-hover: #f0a585;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.page {
  max-width: 72ch;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
}

.updated {
  color: var(--muted);
  font-style: italic;
  margin-top: 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}

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

thead th {
  font-weight: 600;
}

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

code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.9em;
}

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