/* =========================================================
   LEGAL PAGES
   Privacy Policy & Terms and Conditions
   ========================================================= */

/* =========================================================
   LEGAL HERO
   ========================================================= */

.legal-hero {
  position: relative;
  padding: 90px 0;
  background: var(--ns-blue);
  color: var(--ns-white);
  overflow: hidden;
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(47, 57, 118, 0.22),
    rgba(47, 57, 118, 0)
  );
  pointer-events: none;
}

.legal-hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.legal-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--ns-red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 800px;
  margin: 0 0 22px;
  color: var(--ns-white);
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.8;
}

/* =========================================================
   LEGAL INTRO
   ========================================================= */

.legal-intro {
  padding: 90px 0;
  background: var(--ns-white);
}

.legal-intro-content {
  max-width: 900px;
  text-align: center;
}

.legal-intro h2 {
  margin: 0 0 24px;
  color: var(--ns-blue);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.legal-intro p {
  max-width: 780px;
  margin: 0 auto 18px;
  color: #555b69;
  font-size: 1.02rem;
  line-height: 1.8;
}

.legal-intro .legal-updated {
  margin-top: 28px;
  color: #767b87;
  font-size: 0.88rem;
  font-weight: 600;
}

/* =========================================================
   LEGAL CONTENT SECTION
   ========================================================= */

.legal-section {
  padding: 100px 0;
  background: var(--ns-light);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.legal-card {
  position: relative;
  height: 100%;
  padding: 38px;
  background: var(--ns-white);
  border: 1px solid #e3e5ea;
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(20, 30, 70, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.legal-card:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 57, 118, 0.28);
  box-shadow: 0 20px 45px rgba(20, 30, 70, 0.11);
}

.legal-card-number {
  display: block;
  margin-bottom: 20px;
  color: var(--ns-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.legal-card h2,
.legal-card h3 {
  margin: 0 0 18px;
  color: var(--ns-blue);
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.3;
}

.legal-card p {
  margin: 0 0 16px;
  color: #5c616d;
  font-size: 0.97rem;
  line-height: 1.75;
}

.legal-card a {
  color: var(--ns-blue);
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.legal-card a:hover {
  color: var(--ns-red);
  text-decoration: underline;
}

.legal-card a:focus-visible,
.legal-text-link:focus-visible,
.footer-legal a:focus-visible {
  outline: 3px solid rgba(182, 44, 50, 0.3);
  outline-offset: 4px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.legal-card li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 24px;
  color: #5c616d;
  font-size: 0.97rem;
  line-height: 1.65;
}

.legal-card li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--ns-red);
  border-radius: 50%;
}

.legal-card li:last-child {
  margin-bottom: 0;
}

.legal-text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--ns-blue);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-text-link:hover {
  color: var(--ns-red);
}

/* =========================================================
   FULL WIDTH LEGAL CARD
   Optional class for longer sections
   ========================================================= */

.legal-card-full {
  grid-column: 1 / -1;
}

/* =========================================================
   FOOTER LEGAL LINKS
   Add inside the existing footer
   ========================================================= */

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.82rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--ns-white);
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.35);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .legal-hero {
    padding: 90px 0;
  }

  .legal-intro,
  .legal-section {
    padding: 80px 0;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-card-full {
    grid-column: auto;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .legal-hero {
    padding: 72px 0;
  }

  .legal-hero h1 {
    font-size: 2.6rem;
  }

  .legal-hero p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .legal-intro,
  .legal-section {
    padding: 65px 0;
  }

  .legal-intro-content {
    text-align: left;
  }

  .legal-intro p {
    margin-left: 0;
    margin-right: 0;
  }

  .legal-card {
    padding: 28px 24px;
  }

  .legal-card h2,
  .legal-card h3 {
    font-size: 1.28rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 7px;
  }

  .footer-legal span {
    display: none;
  }
}
