/* ============================================================
   Dragon Notes — shared subpage theme (Privacy, Terms, Support)
   Matches the homepage design system (Cabinet Grotesk, cream bg,
   obsidian accents). Self-contained; does not depend on style.css.
   ============================================================ */

@font-face { font-family:"Cabinet Grotesk"; src:url("/site-fonts/CabinetGrotesk-Light.otf") format("opentype"); font-weight:300; font-display:swap; }
@font-face { font-family:"Cabinet Grotesk"; src:url("/site-fonts/CabinetGrotesk-Regular.otf") format("opentype"); font-weight:400; font-display:swap; }
@font-face { font-family:"Cabinet Grotesk"; src:url("/site-fonts/CabinetGrotesk-Medium.otf") format("opentype"); font-weight:500; font-display:swap; }
@font-face { font-family:"Cabinet Grotesk"; src:url("/site-fonts/CabinetGrotesk-Bold.otf") format("opentype"); font-weight:700; font-display:swap; }

:root {
  --bg: #F2EDE8;
  --card: #FFFFFF;
  --card-border: #E8E0D6;

  --text: #2a1a22;
  --text-2: #75645c;
  --text-3: #a89890;

  --obs-1: #4A4540;
  --obs-2: #33302B;
  --obs-3: #1F1D1A;

  --bone-1: #E8E3D9;

  --primary: #4A4540;

  --sans: "Cabinet Grotesk", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
::selection { background: rgba(74,69,64,0.18); color: var(--obs-3); }
a { color: var(--primary); text-decoration: none; border-bottom: 1px solid rgba(74,69,64,0.25); transition: border-color .15s ease, color .15s ease; }
a:hover { border-bottom-color: var(--primary); }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .container { padding: 0 22px; } }

/* ---------- Buttons (only used in nav CTA) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .2s ease, opacity .2s ease, transform .2s ease, border-color .2s ease;
}
.btn--obs { color: #fff; background: var(--obs-2); border: none; }
.btn--obs:hover { background: var(--obs-3); transform: translateY(-1px); }
.btn { border-bottom: none; }
.btn:hover { border-bottom: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,237,232,0.78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid rgba(74,69,64,0.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.014em; color: var(--text);
  border-bottom: none;
}
.brand:hover { border-bottom: none; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 14px; color: var(--text); font-weight: 500; }
.nav__links a {
  color: var(--text); opacity: 0.75; border-bottom: none;
}
.nav__links a:hover { opacity: 1; border-bottom: none; }
@media (max-width: 760px) { .nav__links a:not(.btn) { display: none; } }

/* ---------- Article (legal/support) ---------- */
.article {
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px);
}
.article__inner {
  max-width: 760px;
  margin: 0 auto;
}
.article__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}
.article h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.034em;
  color: var(--text);
  margin: 0 0 18px;
  text-wrap: balance;
}
.article .last-updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 0 0 36px;
}
.article p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 18px;
}
.article h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--text);
  margin: 56px 0 16px;
  scroll-margin-top: 96px;
}
.article h2:first-of-type { margin-top: 40px; }
.article h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 32px 0 12px;
}
.article ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.article ul ul {
  margin: 10px 0 0 0;
  padding-left: 4px;
  gap: 8px;
}
.article li {
  position: relative;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}
.article li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.article ul ul li { font-size: 16px; color: var(--text-2); }
.article ul ul li::before { background: var(--text-3); }
.article strong { font-weight: 600; color: var(--text); }
.article em { font-style: italic; }
.article a { color: var(--primary); border-bottom: 1px solid rgba(74,69,64,0.3); }
.article a:hover { border-bottom-color: var(--primary); }

/* Lead paragraph after the title */
.article__lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 28px;
}

/* Contact / highlight callout (used by support page) */
.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 32px;
  margin: 28px 0;
  box-shadow: 0 18px 48px rgba(31,29,26,0.04);
}
.contact-card h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 10px;
  font-weight: 500;
}
.contact-card p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text); }
.contact-card p + p { margin-top: 10px; }

/* Back-to-home link */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  border-bottom: none;
  margin-bottom: 24px;
}
.back-home:hover { border-bottom: none; opacity: 0.7; }
.back-home::before { content: "‹"; }

/* ---------- Footer ---------- */
footer { padding: 36px 0 48px; border-top: 1px solid var(--card-border); color: var(--text-2); font-size: 12.5px; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .brand { font-size: 14px; color: var(--text); }
footer .links { display: flex; gap: 22px; }
footer a { color: var(--text-2); border-bottom: none; }
footer a:hover { color: var(--text); border-bottom: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* ---------- Pill nav (matches homepage header) ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding: 26px 0; background: transparent; height: auto; }
.nav .container { max-width: 1480px; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 23px; letter-spacing: -0.018em; color: var(--text); flex: none; }
.nav__pill {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(150%) blur(18px); -webkit-backdrop-filter: saturate(150%) blur(18px);
  border: 1px solid var(--card-border); border-radius: 999px;
  box-shadow: 0 10px 34px rgba(74,69,64,0.10), inset 0 1px 0 rgba(255,255,255,0.65);
}
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 14px 26px; border-radius: 999px;
  font-size: 16.5px; font-weight: 500; color: var(--text); white-space: nowrap;
  border-bottom: none; transition: background .18s ease;
}
.nav__link:hover { background: rgba(74,69,64,0.06); border-bottom: none; }
.nav__cta { flex: none; }
.nav__cta.btn { padding: 15px 30px; font-size: 16.5px; }
@media (max-width: 880px) { .nav__pill { display: none; } }
