/*
 * Shared styling for the pilot's legal documents (/terms and /privacy).
 *
 * Lifted from privacy.html rather than reinvented, so the contract does not
 * look like it came from a different product than the page that sold it. That
 * file keeps its own inline copy: it belongs to the landing session and is
 * edited on its own schedule.
 */

:root {
  --navy: #1a1f4f;
  --navy-soft: #2a3170;
  --cyan: #2bbfd5;
  --text-muted: #5d6280;
  --text-faint: #8b90a8;
  --line: #e8e9f0;
  --bg: #ffffff;
  --bg-tint: #fafbfd;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--navy-soft); }

nav {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.brand img { display: block; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.back-link { font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; }
.back-link:hover { color: var(--navy); }

main { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
h1 em { font-style: italic; color: var(--cyan); }
.lead { font-size: 18px; color: var(--text-muted); margin-bottom: 16px; }
.version {
  display: inline-block;
  font-size: 13px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 44px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
}
h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
p { margin-bottom: 16px; }
ul, ol { margin: 0 0 16px 0; list-style: none; }
ul li, ol li { padding: 6px 0 6px 20px; position: relative; }
ul li::before { content: '·'; position: absolute; left: 4px; top: 6px; color: var(--cyan); font-weight: 700; }
ol { counter-reset: n; }
ol li::before {
  counter-increment: n;
  content: counter(n) '.';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 14px;
}
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.box {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0;
}
.box p:last-child { margin-bottom: 0; }
.callout { border-left: 3px solid var(--cyan); background: var(--bg-tint); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.updated { font-size: 13px; color: var(--text-faint); margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }

footer { background: #0f1438; color: rgba(255, 255, 255, 0.7); padding: 32px 24px; text-align: center; font-size: 13px; }
footer a { color: rgba(255, 255, 255, 0.9); }

@media (max-width: 560px) {
  main { padding: 44px 20px 72px; }
  table { font-size: 14px; }
  th, td { padding: 8px 8px; }
}
