/* Brightword's Privacy, Terms and Support pages. One file, no build. Colors match the home page
   (site/lander.css): stone white and near-black ink in light mode, blue-black in dark, gold links. */

:root {
  color-scheme: light dark;
  --page: #f6f5f1;
  --card: #ffffff;
  --ink: #1b1c1e;
  --muted: #585a5e;
  --link: #855a1c;
  --rule: #e2e1dc;
  --accent: #cc944a;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111316;
    --card: #1f2226;
    --ink: #f1efea;
    --muted: #a9acb1;
    --link: #d9a35e;
    --rule: #2c3036;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--card);
  color: var(--ink);
}
.skip:focus { left: 1rem; top: 1rem; }

header, main, footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font: 600 1.25rem/1.2 var(--serif);
  color: var(--ink);
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); text-decoration: underline; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

main { padding-top: 2rem; padding-bottom: 3rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}
h1 { font-size: 2rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.375rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.125rem; margin: 1.5rem 0 0.25rem; }

p, ul, ol { margin: 0 0 1rem; }
li { margin: 0.25rem 0; }
li::marker { color: var(--accent); }

a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible, .skip:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

.meta { color: var(--muted); margin-bottom: 1.5rem; }

.summary {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.summary > :last-child { margin-bottom: 0; }

.path { font-weight: 600; }

footer {
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}
footer p { margin: 0.25rem 0; }
footer a { color: var(--muted); }

/* The home page: one quiet column, centered. */
.home main {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.home h1 { font-size: 2.5rem; }
.home .lead { color: var(--muted); font-size: 1.1875rem; margin-bottom: 2rem; }
.home ul.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 0;
  list-style: none;
}
.home nav a { color: var(--link); text-decoration: underline; }
.home .mark { width: 72px; height: 72px; margin: 0 auto 1.25rem; }

@media (max-width: 30rem) {
  h1 { font-size: 1.75rem; }
  .home h1 { font-size: 2.125rem; }
}
