/* Shared styles for Cadence document pages (privacy, terms, support).
   Reuses the landing page's palette, type system, and self-hosted fonts. */

/* Fraunces — normal */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/fraunces-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Fraunces — italic */
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(fonts/fraunces-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Spline Sans */
@font-face { font-family: 'Spline Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/splinesans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #F4F1E8; --paper-deep: #ECE7D8; --card: #FBFAF5;
  --ink: #1F1B16; --ink-muted: #6B6358; --ink-faint: #9A9080;
  --accent: #283A7A; --accent-soft: #283A7A14;
  --hairline: #1F1B1622; --hairline-strong: #1F1B1640;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Spline Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

.doc-nav {
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  position: sticky;
  top: 0;
  z-index: 10;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.doc-nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.doc-brand .wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.doc-brand .wordmark .dot { color: var(--accent); }

.doc-back {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.doc-back:hover { color: var(--accent); }

main.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.doc-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.doc h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.doc h1 em { font-style: italic; color: var(--accent); }

.doc-updated {
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-bottom: 44px;
}

.doc-lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 44px;
}

.doc h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}

.doc p { font-size: 16px; color: var(--ink-muted); margin-bottom: 16px; }

.doc ul { list-style: none; margin: 0 0 16px; padding: 0; }

.doc li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.doc li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.doc strong { color: var(--ink); font-weight: 600; }

.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.doc-callout {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 32px 0;
}

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

footer.doc-footer {
  border-top: 1px solid var(--hairline);
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-footer-copy { font-size: 13px; color: var(--ink-faint); }

.doc-footer-links { display: flex; gap: 20px; list-style: none; }

.doc-footer-links a {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.doc-footer-links a:hover { color: var(--accent); }

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

@media (max-width: 520px) {
  main.doc { padding: 44px 22px 72px; }
}
