:root {
  --teal: #00C896;
}

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

body {
  font-family: 'Roboto', sans-serif;
}

/* PAGE LOADER */
html.is-loading,
html.is-loading body {
  overflow: hidden;
  height: 100%;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060608;
  transition: opacity .5s ease, visibility .5s ease;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ecg {
  width: 380px;
  height: 100px;
}

.ecg-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ecg-track {
  fill: none;
  stroke: rgba(248, 246, 241, 0.1);
  stroke-width: 3;
  stroke-linejoin: round;
}

.ecg-pulse {
  fill: none;
  stroke: url(#ecgFade);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22 78;
  stroke-dashoffset: 0;
  animation: ecgSweep 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(0, 200, 150, 0.6));
}

@keyframes ecgSweep {
  to {
    stroke-dashoffset: -100;
  }
}

/* LEGAL CENTER */
.legal-hero-wrap {
  background: #EFF8F4;
  padding: 80px 3rem 100px;
}

.legal-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #095F5B;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(6, 6, 8, 0.1);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 2rem;
}

.legal-back i {
  font-size: calc(0.85rem + 5px);
  display: flex;
}

.legal-back:hover {
  border-color: #00C896;
}

.legal-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00C896;
  margin-bottom: 0.6rem;
}

.legal-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  color: #060608;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.legal-updated {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(6, 6, 8, 0.45);
  margin-bottom: 1.2rem;
}

.legal-intro {
  font-size: 1rem;
  color: rgba(6, 6, 8, 0.65);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.legal-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  color: #095F5B;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(6, 6, 8, 0.08);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color 0.2s;
}

.legal-nav a:hover {
  border-color: #00C896;
}

.legal-body {
  background: #fff;
  border: 1px solid rgba(6, 6, 8, 0.08);
  border-radius: 18px;
  padding: 2.5rem;
}

.legal-section {
  scroll-margin-top: 100px;
}

.legal-section + .legal-section {
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(6, 6, 8, 0.06);
}

.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #060608;
  margin-bottom: 0.6rem;
}

.legal-section p {
  font-size: 0.92rem;
  color: rgba(6, 6, 8, 0.68);
  line-height: 1.75;
}

.legal-section p a {
  color: #00C896;
  font-weight: 700;
  text-decoration: none;
}

.legal-section p a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .legal-hero-wrap {
    padding: 60px 1.5rem 80px;
  }

  .legal-body {
    padding: 1.5rem;
  }
}

/* FOOTER (matches join-team.css/founder.css) */
footer {
  background: #060608;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4.5rem 3rem 0;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 3.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #F8F6F1;
}

.footer-logo span {
  color: #00C896;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(248, 246, 241, 0.5);
  line-height: 1.7;
  margin-top: 0.9rem;
}

.footer-cols {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00C896;
  margin-bottom: 0.3rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: rgba(248, 246, 241, 0.5);
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #00C896;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(248, 246, 241, 0.25);
}

.footer-paypal-form {
  display: inline-block;
}

.footer-paypal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8F6F1;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #060608;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-paypal-btn img {
  height: 16px;
  width: auto;
  display: block;
}

.footer-paypal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12);
}

.footer-paypal-btn-pro {
  background: #00C896;
  color: #060608;
}

.footer-paypal-btn-pro:hover {
  background: #00b085;
  box-shadow: 0 8px 20px rgba(0, 200, 150, 0.25);
}

.footer-paypal-btn-pro.is-unlocked {
  background: rgba(0, 200, 150, 0.15);
  color: #00C896;
  cursor: default;
  box-shadow: none;
}

.footer-paypal-btn-pro.is-unlocked:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  footer {
    padding: 3.5rem 1.5rem 0;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-cols {
    justify-content: center;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}
