/* ═══════════════════════════════════════════════════
   RVIN LEGAL / POLICY PAGES — shared stylesheet
   Matches rvin.ai v8 brand system
   ═══════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --bg-alt: #fafaf8;
  --bg-deep: #09090d;
  --bg-deep-2: #0f0f15;
  --ink: #0a0a0c;
  --ink-soft: #3a3a42;
  --ink-muted: #8a8a92;
  --ink-whisper: #b8b8bf;
  --hairline: rgba(10,10,12,0.08);
  --hairline-strong: rgba(10,10,12,0.14);
  --rova-blue: #2f67b2;
  --rova-blue-deep: #1e4b8c;
  --rova-blue-soft: #5b8fd4;
  --rova-blue-bg: #e8f0fa;
  --rova-blue-glow: rgba(47,103,178,0.22);
  --rvin-purple: #8b5cf6;
  --rvin-purple-soft: #b39bff;
  --rvin-purple-deep: #6d45d4;
  --rvin-purple-bg: #f3efff;
  --success: #16a34a;
  --warn: #f59e0b;
  --danger: #dc2626;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --shadow-btn: 0 1px 2px rgba(10,10,12,0.06), 0 2px 4px rgba(10,10,12,0.04);
  --shadow-btn-hover: 0 4px 12px rgba(10,10,12,0.12), 0 8px 24px rgba(47,103,178,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.55;
}
::selection { background: var(--rova-blue); color: #fff; }
a { color: var(--rova-blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--rova-blue-deep); }

/* ═══════════ BRACKETED WORDMARK ═══════════ */
.rvin-mark {
  display: inline-flex;
  align-items: stretch;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1;
  gap: 0.14em;
  height: 1em;
}
.rvin-mark .bracket {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 0.18em;
  border-color: currentColor;
  border-style: solid;
  border-width: 0;
}
.rvin-mark .bracket::before,
.rvin-mark .bracket::after {
  content: '';
  display: block;
  height: 0.075em;
  background: currentColor;
}
.rvin-mark .bracket.left { border-left-width: 0.075em; }
.rvin-mark .bracket.right { border-right-width: 0.075em; }
.rvin-mark .word { display: inline-block; padding: 0 0.04em; }

/* ═══════════ NAV ═══════════ */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.75);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--hairline);
}
nav.site-nav .rvin-mark { font-size: 20px; }
.nav-back {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-back:hover { background: rgba(10,10,12,0.05); color: var(--ink); }
.nav-back .arr { font-size: 14px; font-weight: 400; transition: transform 0.2s; }
.nav-back:hover .arr { transform: translateX(-2px); }
.nav-cta { display: flex; gap: 6px; align-items: center; }
.nav-btn {
  padding: 9px 14px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: all 0.15s;
}
.nav-btn:hover { background: rgba(10,10,12,0.05); color: var(--ink); }
.nav-btn.primary {
  background: var(--ink); color: #fff;
  padding: 10px 18px;
  box-shadow: var(--shadow-btn);
}
.nav-btn.primary:hover { background: var(--rova-blue-deep); box-shadow: var(--shadow-btn-hover); color: #fff; }

.nav-phone {
  display: none;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}
.nav-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.15s;
}
.nav-phone-link:hover { color: var(--rova-blue-deep); background: rgba(47,103,178,0.06); }
.nav-phone-link svg { color: var(--rova-blue); flex-shrink: 0; }
.nav-phone-divider { color: var(--ink-muted); font-size: 14px; }
.nav-phone-toll .nav-phone-num { opacity: 0.7; }
@media (min-width: 1080px) {
  .nav-phone { display: inline-flex; }
}

/* ═══════════ PAGE HEADER ═══════════ */
.page-header {
  padding: 140px 20px 56px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 80px; right: -10%;
  width: 500px; height: 400px;
  background: radial-gradient(ellipse, var(--rova-blue-glow) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.5;
  z-index: -1;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rova-blue-bg);
  color: var(--rova-blue-deep);
  padding: 6px 12px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-eyebrow.purple {
  background: var(--rvin-purple-bg);
  color: var(--rvin-purple-deep);
}
.page-title {
  font-family: var(--sans);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
}
.page-title em {
  font-style: normal;
  color: var(--rova-blue);
}
.page-lede {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 16px;
}
.page-meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  margin-top: 32px;
}

/* ═══════════ MAIN CONTENT ═══════════ */
.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.doc h2 {
  font-family: var(--sans);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 56px;
  margin-bottom: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.doc h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.doc h2 .num {
  font-family: var(--mono);
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--rova-blue);
  min-width: 2.4em;
}
.doc h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 10px;
}
.doc p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.doc p strong, .doc li strong { color: var(--ink); font-weight: 700; }
.doc ul, .doc ol {
  margin-bottom: 16px;
  padding-left: 0;
  list-style: none;
}
.doc li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding: 6px 0 6px 22px;
  position: relative;
}
.doc ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  background: var(--rova-blue);
  border-radius: 50%;
}
.doc ol {
  counter-reset: ol-counter;
}
.doc ol > li {
  counter-increment: ol-counter;
}
.doc ol > li::before {
  content: counter(ol-counter) ".";
  position: absolute;
  left: 0;
  top: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--rova-blue);
}

/* Emphasis / callout blocks inside doc */
.doc-callout {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--bg-alt);
  border-left: 3px solid var(--rova-blue);
  border-radius: 0 10px 10px 0;
}
.doc-callout.purple {
  border-left-color: var(--rvin-purple);
}
.doc-callout p { margin-bottom: 8px; color: var(--ink); }
.doc-callout p:last-child { margin-bottom: 0; }
.doc-callout strong { color: var(--ink); }

/* Contact info block at bottom of legal pages */
.doc-contact {
  margin-top: 56px;
  padding: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.doc-contact h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0;
  margin-bottom: 14px;
}
.doc-contact .contact-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.doc-contact .contact-line {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.doc-contact .contact-line a {
  color: var(--rova-blue);
  font-weight: 500;
}

/* ═══════════ FOOTER ═══════════ */
footer.site-footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.7);
  padding: 56px 20px 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-top { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { font-size: 24px; }
.footer-brand .rvin-mark { color: #fff; }
.footer-tagline {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  line-height: 1.5;
  font-weight: 500;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-links a { color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 4px;
}
.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  transition: color 0.15s;
  color: rgba(255,255,255,0.85);
}
.footer-contact-item:hover { color: #fff; }
.footer-contact-label {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.footer-contact-val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 720px) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "top links"
      "bottom bottom";
    gap: 24px 40px;
  }
  .footer-top { grid-area: top; }
  .footer-links { grid-area: links; justify-content: flex-end; align-self: start; padding-top: 0; }
  .footer-bottom { grid-area: bottom; padding-top: 16px; }
}
@media (max-width: 480px) {
  .footer-bottom { font-size: 9.5px !important; letter-spacing: 0.06em !important; }
  .footer-contact { gap: 14px 20px; }
}

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