/* Shared styles for privacy.html and terms.html. Tokens match the homepage. */
:root {
  --bg: #05070c;
  --panel: rgba(120,160,230,0.045);
  --border: rgba(140,170,220,0.14);
  --border-strong: rgba(140,170,220,0.26);
  --text: #eef1f6;
  --text-2: rgba(238,241,246,0.72);
  --text-3: rgba(238,241,246,0.55);
  --blue: #3d97f7;
  --gold: #f0b23a;
  --gold-soft: rgba(240,178,58,0.16);
  --gold-line: rgba(240,178,58,0.34);
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --gutter: 2.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
  overflow-x: clip;
  background:
    radial-gradient(ellipse 70% 40% at 75% 0%, rgba(15,79,168,0.26) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold-soft); color: var(--gold); }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--border);
}
.nav__logo { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav__logo img { width: 38px; height: auto; display: block; }
.nav__name { font-family: var(--font-serif); font-size: 1.1875rem; letter-spacing: -0.01em; }
.nav__back { font-size: 0.875rem; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.nav__back:hover { color: var(--text); }

.doc { max-width: calc(70ch + 2 * var(--gutter)); margin: 0 auto; padding: 4.5rem var(--gutter) 6rem; }
.label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); margin-bottom: 1rem; }
.label::before { content: '// '; color: var(--text-3); }
h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.updated { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); margin-top: 1.25rem; }
.lede { color: var(--text-2); font-weight: 300; font-size: 1.1875rem; line-height: 1.65; margin-top: 1.75rem; }

.short {
  margin: 2.75rem 0 1rem;
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(240,178,58,0.1) 0%, transparent 65%),
    rgba(9,13,22,0.9);
}
.short h2 { margin: 0 0 0.75rem; font-size: 1.625rem; }
.short ul { margin: 0; }

h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 4vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 3.25rem 0 1rem;
  text-wrap: balance;
}
h3 { font-size: 1.0625rem; font-weight: 500; margin: 1.75rem 0 0.5rem; }
p { color: var(--text-2); font-weight: 300; margin-bottom: 1rem; }
p strong, li strong { color: var(--text); font-weight: 500; }
ul { color: var(--text-2); font-weight: 300; padding-left: 1.25rem; margin-bottom: 1rem; }
li { margin-bottom: 0.45rem; }
li::marker { color: var(--gold); }

.rows { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; border-top: 1px solid var(--border); }
.rows li {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding: 0.9rem 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.rows b { color: var(--text); font-weight: 500; }

.contact {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--panel);
}
.contact p { margin-bottom: 0.25rem; overflow-wrap: anywhere; }

.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer ul { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; font-weight: 400; }
.footer li { margin: 0; }

@media (max-width: 720px) {
  :root { --gutter: 1.25rem; }
  body { font-size: 1rem; }
  .doc { padding: 3rem var(--gutter) 4rem; }
  .nav__name { font-size: 1.0625rem; }
  .nav__logo img { width: 32px; }
  .short { padding: 1.25rem 1.25rem 1rem; }
  .rows li { grid-template-columns: minmax(0, 1fr); }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .nav__back span { display: none; }
}

/* Remove with the banner once Stephen approves the pages */
