/* Shared styling for tos.html / privacy.html / gdpr.html — matches
   the magenta/dark OnlyFunds brand from index.html. */

:root {
  --bg:          #161616;
  --bg-alt:      #161616;
  --bg-card:     #1f1f1f;
  --border:      rgba(76, 76, 76, .5);
  --border-soft: rgba(255, 255, 255, .08);
  --text:        #f7f7f7;
  --text-muted:  #969696;
  --accent:      #ad00b8;
  --accent-hi:   #d903fa;
  --accent-hov:  #dd00eb;
  --accent-act:  #f9ccff;
  --accent-soft: #dac2e6;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent-hi); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-act); }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3 {
  font-family: 'Fjalla One', arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 .55em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 2em; color: var(--accent-hi); }
p, li { color: #d6d6d6; font-weight: 300; }
strong { color: var(--text); font-weight: 600; }
.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ============== Header / Nav ============== */
.site-header {
  background: rgb(173, 0, 184);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, .15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: #ffffff;
  font-weight: 500;
  font-size: .87rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .18s ease, text-shadow .18s ease, transform .12s ease;
}
.nav-links a:not(.nav-cta):hover {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, .85);
  transform: translateY(-1px);
}
.nav-cta {
  background: hsl(207, 100%, 70%);
  color: #0a1830 !important;
  padding: 4px 9px;
  border-radius: 3px;
  font-weight: 700;
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.nav-cta:hover {
  background: hsl(207, 100%, 80%);
  color: #0a1830 !important;
  transform: translateY(-2px);
  box-shadow: 0 0 24px hsla(207, 100%, 70%, .85);
}
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============== Body ============== */
.legal {
  padding: 70px 0 90px;
}
.legal .draft-banner {
  display: inline-block;
  background: rgba(217, 3, 250, .12);
  color: var(--accent-hi);
  border: 1px solid rgba(217, 3, 250, .35);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.legal .back {
  margin-bottom: 24px;
  font-size: .9rem;
}
.legal .back a {
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.legal .back a:hover { color: var(--accent-hi); }
.legal .updated {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 36px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.legal section {
  margin-bottom: 18px;
}
.legal ul {
  padding-left: 22px;
  color: #d6d6d6;
}
.legal ul li {
  margin-bottom: 8px;
}

/* ============== Footer ============== */
footer {
  background: rgb(173, 0, 184);
  color: rgba(255, 255, 255, .9);
  padding: 24px 0;
  font-size: .9rem;
}
footer a { color: rgba(255, 255, 255, .9); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .82rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .9);
  text-align: center;
}
.footer-legal {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: rgba(255, 255, 255, .9);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: .08em;
  transition: color .18s ease, text-shadow .18s ease, transform .12s ease;
}
.footer-legal a:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, .8);
  transform: translateY(-1px);
}

/* ============== Back-to-top button ============== */
.back-to-top {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: hsl(207, 100%, 70%);
  color: #0a1830;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease,
              background .2s ease, box-shadow .2s ease;
  z-index: 200;
  line-height: 1;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: hsl(207, 100%, 80%);
  box-shadow: 0 0 20px hsla(207, 100%, 70%, .85);
}
