/* ══════════════════════════════════════════════════════════════
   Red Tail Den LLC — Standalone pages (Support / Privacy / Terms)
   Design tokens lifted from redtailden-template.php so these pages
   read as part of the same site. Self-contained.
   ══════════════════════════════════════════════════════════════ */

:root {
  --ink:    #0B111A;
  --navy:   #111C27;
  --mid:    #1A2B3A;
  --fox:    #E8836A;
  --fox2:   #F0A080;
  --fox3:   #f37762;
  --muted:  #9DB5C5;
  --ghost:  #FFFFFF0D;
  --white:  #F5F0EB;
  --border: #FFFFFF1F;
  --border-hi: #FFFFFF3D;
  --ff-display: 'Bai Jamjuree', sans-serif;
  --ff-body:    'DM Sans', sans-serif;
  --ff-mono:    'DM Mono', monospace;
  --focus-ring: 0 0 0 3px #E8836A88;
  --transition: .25s ease;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h:   76px;
  --gutter:  clamp(22px, 5vw, 60px);
  --max-w:   1240px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--ink); color: var(--white);
  font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--fox); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 3px; }

.skip-link {
  position: absolute; top: -100%; left: 16px;
  padding: 12px 20px; background: var(--fox); color: var(--ink);
  font-weight: 700; font-size: 14px; z-index: 10000;
  border-radius: 4px; transition: top .2s;
}
.skip-link:focus { top: 16px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ─── NAV ─── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 1000; background: rgba(11,17,26,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: none; align-items: center; gap: 34px; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-links a {
  font-family: var(--ff-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); transition: color var(--transition);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fox); }
.nav-cta {
  font-family: var(--ff-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--fox); color: var(--fox);
  padding: 9px 20px; border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}
.nav-cta:hover { background: var(--fox); color: var(--ink); }

.nav-burger { display: flex; flex-direction: column; gap: 5px; padding: 10px; }
@media (min-width: 860px) { .nav-burger { display: none; } }
.burger-bar { display: block; width: 22px; height: 1.5px; background: var(--white); transition: transform .3s var(--ease), opacity .3s; }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: rgba(11,17,26,.98); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 20px var(--gutter) 30px; display: flex; flex-direction: column;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  font-family: var(--ff-mono); font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:hover { color: var(--fox); }

/* ─── HERO ─── */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(52px, 8vw, 96px));
  padding-bottom: clamp(36px, 5vw, 58px);
  padding-inline: var(--gutter);
  max-width: var(--max-w); margin-inline: auto;
  border-bottom: 1px solid var(--border);
}
.crumb { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); margin-bottom: 20px; }
.crumb a { transition: color var(--transition); }
.crumb a:hover { color: var(--fox); }
.crumb span[aria-hidden] { padding: 0 7px; opacity: .5; }
.page-eyebrow {
  display: flex; align-items: center; gap: 13px;
  font-family: var(--ff-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--fox); margin-bottom: 20px;
}
.page-eyebrow::before { content:''; width: 30px; height: 1px; background: var(--fox); flex-shrink: 0; }
.page-title {
  font-family: var(--ff-display);
  font-size: clamp(38px, 6.5vw, 78px);
  font-weight: 700; letter-spacing: -.035em;
  line-height: .98; text-transform: uppercase;
  margin-bottom: 22px;
}
.page-lead { font-size: clamp(16px, 1.9vw, 20px); color: var(--muted); line-height: 1.65; max-width: 64ch; }
.page-updated {
  margin-top: 26px; font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); opacity: .75;
}

/* ─── LAYOUT ─── */
.page-body {
  max-width: var(--max-w); margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(44px, 6vw, 80px);
  display: grid; grid-template-columns: 230px 1fr;
  gap: clamp(30px, 5vw, 72px); align-items: start;
}
@media (max-width: 900px) { .page-body { grid-template-columns: 1fr; gap: 30px; } }
.page-body > * { min-width: 0; }

.page-toc { position: sticky; top: calc(var(--nav-h) + 28px); }
@media (max-width: 900px) {
  .page-toc { position: static; border: 1px solid var(--border); border-radius: 5px; padding: 18px 22px; background: var(--ghost); }
}
.page-toc-label {
  font-family: var(--ff-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px solid var(--border);
}
.page-toc ol { display: flex; flex-direction: column; gap: 1px; }
.page-toc a { display: block; padding: 7px 0; font-size: 13.5px; color: var(--muted); line-height: 1.4; transition: color var(--transition); }
.page-toc a:hover { color: var(--fox); }

/* ─── SECTIONS ─── */
.doc-section {
  display: grid; grid-template-columns: 46px 1fr; gap: 22px;
  padding: 30px 0; border-bottom: 1px solid var(--border);
  align-items: start; scroll-margin-top: calc(var(--nav-h) + 22px);
}
.doc-section:first-child { padding-top: 0; }
.doc-section:last-child { border-bottom: none; }
.doc-section > * { min-width: 0; }
@media (max-width: 600px) { .doc-section { grid-template-columns: 34px 1fr; gap: 14px; padding: 24px 0; } }
.doc-num { font-family: var(--ff-mono); font-size: 12px; font-weight: 500; color: var(--fox); letter-spacing: .12em; padding-top: 5px; }
.doc-h {
  font-family: var(--ff-display); font-size: 15px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 15px;
}
.doc-section > div > p { font-size: 15.5px; line-height: 1.8; color: var(--muted); }
.doc-section > div > p + p { margin-top: 13px; }
.doc-section > div > p strong { color: var(--white); font-weight: 500; }
.doc-section a:not(.route-card):not(.cta-btn) { color: var(--fox); text-decoration: underline; text-underline-offset: 3px; }
.doc-section a:not(.route-card):not(.cta-btn):hover { color: var(--fox2); }
.doc-h3 { font-size: 14px; font-weight: 500; color: var(--white); margin: 22px 0 9px; letter-spacing: .01em; }

.doc-list { display: flex; flex-direction: column; gap: 9px; margin: 13px 0 0; }
.doc-list li { font-size: 14.5px; color: var(--muted); line-height: 1.7; padding-left: 17px; position: relative; }
.doc-list li::before { content: '—'; position: absolute; left: 0; color: var(--fox); font-size: 11px; top: 5px; }
.doc-list li strong { color: var(--white); font-weight: 500; }

/* ─── CALLOUT ─── */
.callout { border: 1px solid #E8836A55; background: #E8836A0F; border-radius: 5px; padding: 20px 24px; margin: 20px 0 0; }
.callout-title { font-family: var(--ff-mono); font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--fox); margin-bottom: 9px; }
.callout p { font-size: 14.5px; line-height: 1.7; color: var(--white); opacity: .9; }
.callout.is-warn { border-color: #F0A08055; background: #F0A0800F; }
.callout.is-warn .callout-title { color: var(--fox2); }

/* ─── TABLE ─── */
.policy-table-wrap { overflow-x: auto; margin: 20px 0 0; -webkit-overflow-scrolling: touch; }
.policy-table { width: 100%; border-collapse: collapse; min-width: 540px; }
.policy-table caption { text-align: left; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); opacity: .7; padding-bottom: 11px; }
.policy-table th, .policy-table td { text-align: left; padding: 15px 18px 15px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.policy-table th { font-family: var(--ff-mono); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--border-hi); }
.policy-table td { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.policy-table td:first-child { color: var(--white); font-weight: 500; width: 30%; padding-right: 26px; }

@media (max-width: 720px) {
  .policy-table-wrap { overflow-x: visible; }
  .policy-table { min-width: 0; display: block; }
  .policy-table thead { display: none; }
  .policy-table tbody, .policy-table tr, .policy-table td { display: block; width: 100%; }
  .policy-table tr { padding: 18px 0; border-bottom: 1px solid var(--border); }
  .policy-table tr:last-child { border-bottom: none; }
  .policy-table td { border: none; padding: 0; }
  .policy-table td:first-child {
    width: 100%; padding-right: 0; margin-bottom: 7px;
    font-family: var(--ff-mono); font-size: 10px; font-weight: 500;
    letter-spacing: .16em; text-transform: uppercase; color: var(--fox);
  }
  .policy-table td:first-child span { display: block; margin-top: 4px; letter-spacing: .02em; text-transform: none; font-family: var(--ff-body); }
}

/* ─── VENTURE ROUTING CARDS ─── */
.route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 12px; margin: 22px 0 0; }
.route-card {
  display: flex; flex-direction: column; gap: 7px;
  border: 1px solid var(--border); border-radius: 5px;
  padding: 22px 22px 20px; background: var(--ghost);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.route-card:hover { border-color: var(--fox); background: #E8836A0F; transform: translateY(-2px); }
.route-tag { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--fox); }
.route-name { font-family: var(--ff-display); font-size: 19px; font-weight: 700; color: var(--white); letter-spacing: -.01em; }
.route-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.route-meta { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); opacity: .8; margin-top: 3px; word-break: break-word; }
.route-card:hover .route-name { color: var(--fox); }

/* ─── BUSINESS INFO ─── */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); margin: 20px 0 0; border-top: 1px solid var(--border); }
.biz-item { padding: 18px 22px 18px 0; border-bottom: 1px solid var(--border); }
.biz-label { font-family: var(--ff-mono); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.biz-value { font-size: 14.5px; color: var(--white); line-height: 1.6; font-style: normal; }
.biz-value a { color: var(--fox); }

/* ─── FAQ ─── */
.doc-faq { border-top: 1px solid var(--border); margin-top: 16px; }
.doc-faq-item { border-bottom: 1px solid var(--border); }
.doc-faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 18px; text-align: left; padding: 18px 0;
  font-size: 15px; color: var(--white); transition: color var(--transition);
}
.doc-faq-q:hover { color: var(--fox); }
.doc-faq-item.open .doc-faq-q { color: var(--fox); }
.doc-faq-icon { font-size: 21px; font-weight: 300; line-height: 1; flex-shrink: 0; transition: transform .3s var(--ease); }
.doc-faq-item.open .doc-faq-icon { transform: rotate(45deg); }
.doc-faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.doc-faq-a p { padding-bottom: 20px; font-size: 14.5px; line-height: 1.75; color: var(--muted); }

/* ─── CTA ─── */
.cta-strip { border-top: 1px solid var(--border); background: var(--navy); padding: clamp(44px, 7vw, 76px) var(--gutter); text-align: center; }
.cta-strip-inner { max-width: 580px; margin-inline: auto; }
.cta-strip-title { font-family: var(--ff-display); font-size: clamp(24px, 3.6vw, 36px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 13px; text-transform: uppercase; }
.cta-strip p { font-size: 15px; color: var(--muted); margin-bottom: 26px; line-height: 1.65; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--fox); color: var(--ink);
  border: 1px solid var(--fox); border-radius: 100px;
  padding: 14px 32px; font-family: var(--ff-mono); font-size: 12px;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cta-btn:hover { background: transparent; color: var(--fox); transform: translateY(-1px); }

/* ─── FOOTER ─── */
.site-footer { border-top: 1px solid var(--border); padding-block: 34px; }
.footer-inner {
  max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.footer-copy { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); opacity: .8; line-height: 1.8; }
.footer-copy a { color: var(--fox); }
.footer-nav { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.footer-nav a { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color var(--transition); }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--fox); }
.footer-sep { color: var(--muted); opacity: .4; font-size: 11px; user-select: none; }
@media (max-width: 700px) { .footer-inner { flex-direction: column; text-align: center; } .footer-nav { justify-content: center; } }

/* ─── TOUCH / MOTION / PRINT ─── */
@media (pointer: coarse) {
  .nav-burger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .nav-mobile a, .footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .doc-faq-q { min-height: 48px; }
  .page-toc a { min-height: 36px; display: flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-nav, .nav-mobile, .page-toc, .cta-strip, .skip-link, .footer-nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-body { display: block; padding-block: 0; }
  .doc-section { break-inside: avoid; border-bottom: 1px solid #ccc; }
  .doc-section > div > p, .doc-list li, .policy-table td, .route-desc { color: #222; }
  .doc-h, .doc-num, .page-title, .biz-value, .route-name { color: #000; }
  .page-hero { padding-top: 0; }
  .doc-faq-a { max-height: none !important; }
  a { color: #000; text-decoration: underline; }
  .callout { border: 1px solid #999; background: #f6f6f6; }
  .callout p { color: #222; }
}
