/* ============================================================
   Fortis Collective — shared styles for legal / content pages
   Used by: privacy-policy.html, terms-of-service.html
   Matches the design system in index.html
============================================================ */

:root {
  --black: #08080A;
  --dark: #0E0E11;
  --darker: #050506;

  --gold: #C9A96E;
  --gold-light: #E8D3A6;
  --gold-deep: #A8834A;
  --gold-hover: #D4AF37;
  --gold-soft: rgba(201, 169, 110, 0.12);

  --grad-gold: linear-gradient(135deg, #E8D3A6 0%, #C9A96E 45%, #A8834A 100%);

  --white: #FFFFFF;
  --cream: #F8F5F0;
  --gray: #6B6B6B;
  --gray-light: #9A9A9A;
  --text: #26262A;

  --border: rgba(0,0,0,0.07);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--black);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

a { color: var(--gold-deep); text-decoration: none; transition: color 0.22s var(--ease); }
a:hover { color: var(--gold-hover); }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--gold); color: var(--black); }

html::-webkit-scrollbar { width: 11px; }
html::-webkit-scrollbar-track { background: #0e0e11; }
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  border-radius: 99px;
  border: 3px solid #0e0e11;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 3000;
  background: var(--gold); color: var(--black);
  padding: 0.8rem 1.4rem; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--grad-gold);
  z-index: 1200;
  box-shadow: 0 0 12px rgba(201,169,110,.7);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8,8,10,0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(201,169,110,0.10);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(6,6,8,0.94);
  border-bottom-color: rgba(201,169,110,0.24);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}
.nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  transition: height 0.4s var(--ease);
}
.nav.scrolled .nav-inner { height: 66px; }

.logo-nav img {
  height: 88px; width: auto;
  transition: height 0.4s var(--ease), filter 0.4s var(--ease);
}
.nav.scrolled .logo-nav img { height: 70px; }
.logo-nav:hover img { filter: drop-shadow(0 0 16px rgba(201,169,110,0.45)); }

.nav-links { display: flex; align-items: center; gap: 0.3rem; }
.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.74);
  font-weight: 500; font-size: 0.9rem;
  padding: 0.55rem 0.9rem; border-radius: 99px;
}
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 1.5px; background: var(--grad-gold);
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 44%; }

.nav-cta {
  margin-left: 0.6rem;
  background: var(--grad-gold); color: #17130B !important;
  padding: 0.62rem 1.25rem; font-size: 0.85rem; font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(201,169,110,.24);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201,169,110,.34); }

/* ---------- page hero ---------- */
.page-hero {
  background: var(--dark); color: #fff;
  padding: calc(var(--nav-h) + 4.5rem) 1.5rem 4.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.5), transparent);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 50% 20%, rgba(201,169,110,0.13), transparent 70%),
    linear-gradient(rgba(201,169,110,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,0.045) 1px, transparent 1px);
  background-size: auto, 68px 68px, 68px 68px;
  mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 20%, transparent 100%);
}
.page-hero > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 99px;
  background: rgba(201,169,110,0.09);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(201,169,110,.6); }
  70%  { box-shadow: 0 0 0 7px rgba(201,169,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,169,110,0); }
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 0.85rem;
}
.page-hero p { color: rgba(255,255,255,0.66); font-size: 1.06rem; }

/* ---------- content ---------- */
.content { max-width: 820px; margin: 0 auto; padding: 4rem 1.5rem 5rem; }

.last-updated {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--gray); font-size: 0.86rem; font-weight: 500;
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem; border-radius: 99px;
  margin-bottom: 2.25rem;
}
.last-updated::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

.content > p { margin-bottom: 1.1rem; }

.content h2 {
  font-size: 1.75rem;
  margin: 3rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  position: relative;
}
.content h2::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 44px; height: 2px; background: var(--grad-gold);
}
.content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 2.25rem; }
.content h2:first-of-type::before { display: none; }

.content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem; font-weight: 600;
  margin: 1.9rem 0 0.6rem;
  letter-spacing: 0;
}

.content p, .content li { color: var(--text); }
.content ul { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.content li {
  margin-bottom: 0.6rem; padding-left: 1.5rem; position: relative;
}
.content li::before {
  content: ''; position: absolute; left: 0; top: 0.72em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); opacity: 0.7;
}
.content strong { color: var(--black); font-weight: 600; }

.content a { text-decoration: underline; text-underline-offset: 3px; }

/* callout used for the closing contact block */
.content .contact-block {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 1rem;
}

/* ---------- footer ---------- */
footer {
  background: var(--darker); color: rgba(255,255,255,0.58);
  padding: 3.5rem 1.5rem 2.25rem; text-align: center; font-size: 0.9rem;
  position: relative;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.35), transparent);
}
.footer-logo img { height: 62px; margin: 0 auto 1.5rem; }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
footer nav a { color: rgba(255,255,255,0.7); position: relative; }
footer nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.32s var(--ease);
}
footer nav a:hover { color: var(--gold); }
footer nav a:hover::after { width: 100%; }
.footer-copy {
  margin-top: 1.75rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--black); color: var(--gold);
  border: 1px solid rgba(201,169,110,0.35);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.85);
  transition: all 0.42s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--grad-gold); color: #17130B; border-color: transparent; transform: translateY(-4px); }
.to-top svg { width: 19px; height: 19px; }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  :root { --nav-h: 70px; }
  .logo-nav img, .nav.scrolled .logo-nav img { height: 62px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .page-hero { padding: calc(var(--nav-h) + 3rem) 1.25rem 3.25rem; }
  .content { padding: 3rem 1.25rem 4rem; }
  .content h2 { font-size: 1.5rem; }
  .to-top { right: 1rem; bottom: 1rem; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
