/*
 * Styling for the static policy pages (privacy.html, terms.html).
 *
 * These pages do NOT use tailwind.css: that build is purged against the two
 * dashboards, so the utilities long-form prose needs (max-w-3xl, list-disc,
 * leading-relaxed) are not in it. Inline <style> is not an option either --
 * nginx serves `style-src 'self'` with no 'unsafe-inline', so an inline block
 * would be blocked outright. Hence a real stylesheet, matching the dashboards'
 * slate-900 dark theme by hand.
 */

:root {
  --bg: #0f172a;          /* slate-900, as the dashboards use */
  --surface: #1e293b;     /* slate-800 */
  --border: #334155;      /* slate-700 */
  --text: #f1f5f9;        /* slate-100 */
  --muted: #94a3b8;       /* slate-400 */
  --accent: #9e75ff;      /* brand-400 -- tracks the icon, see src/styles/input.css */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

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

header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

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

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
}

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

.muted {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Unmissable draft banner. These pages are written to satisfy the platform
 * submission forms and have NOT been reviewed by a lawyer -- the banner stays
 * until one has read them. */
.draft {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  color: #fbbf24;
}

.draft strong {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.draft p {
  margin: 0;
  color: #fde68a;
  font-size: 0.9375rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.card p:first-child {
  margin-top: 0;
}

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

dl {
  margin: 0;
}

dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

dd {
  margin: 0 0 0.25rem;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}

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

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
