/********** WD Racing Policy Pages **********/

.policy-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 191, 255, 0.06) 0%, transparent 35%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px,
      transparent 10px
    ),
    #0b0f17;
  color: #e8eef7;
  padding: 60px 0 80px;
  overflow-x: clip;
}

.policy-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(0, 191, 255, 0.22), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(0, 70, 174, 0.18), transparent 40%);
  pointer-events: none;
  animation: policyGlowShift 12s ease-in-out infinite alternate;
}

.policy-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(0, 191, 255, 0.45), transparent),
    radial-gradient(1px 1px at 78% 18%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 45% 68%, rgba(0, 191, 255, 0.3), transparent),
    radial-gradient(1px 1px at 88% 55%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 25% 82%, rgba(0, 191, 255, 0.35), transparent);
  pointer-events: none;
  animation: policyParticles 18s linear infinite;
}

@keyframes policyGlowShift {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

@keyframes policyParticles {
  0% { transform: translateY(0); }
  100% { transform: translateY(-30px); }
}

.policy-section .container {
  position: relative;
  z-index: 1;
}

.policy-intro {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.policy-intro__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00bfff;
  border: 1px solid rgba(0, 191, 255, 0.35);
  background: rgba(0, 191, 255, 0.08);
  margin-bottom: 1rem;
  animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 191, 255, 0.2); }
  50% { box-shadow: 0 0 22px rgba(0, 191, 255, 0.4); }
}

.policy-intro__text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.policy-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.policy-nav-wrap {
  position: sticky;
  top: 100px;
}

.policy-nav-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 1rem;
  min-height: 48px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.policy-nav-toggle:hover,
.policy-nav-toggle:focus-visible {
  border-color: rgba(0, 191, 255, 0.45);
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
  outline: none;
}

.policy-nav-toggle i.fa-chevron-down {
  transition: transform 0.25s ease;
  color: #00bfff;
}

.policy-nav-toggle[aria-expanded="true"] i.fa-chevron-down {
  transform: rotate(180deg);
}

.policy-nav {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.policy-nav__label {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.75rem;
  padding: 0 0.35rem;
}

.policy-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.policy-nav__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.35;
}

.policy-nav__link:hover {
  color: #fff;
  background: rgba(0, 191, 255, 0.1);
  border-left-color: rgba(0, 191, 255, 0.5);
}

.policy-nav__link.is-active {
  color: #00bfff;
  background: rgba(0, 191, 255, 0.12);
  border-left-color: #00bfff;
  box-shadow: inset 0 0 12px rgba(0, 191, 255, 0.08);
}

.policy-nav__link i {
  width: 16px;
  flex-shrink: 0;
  font-size: 0.75rem;
  opacity: 0.85;
}

.policy-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.policy-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.75rem 1.85rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  scroll-margin-top: 110px;
}

.policy-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 191, 255, 0.35);
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.25);
}

.policy-panel__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.1rem;
  line-height: 1.25;
}

.policy-panel__title i {
  color: #00bfff;
  font-size: 1.15rem;
  filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.65));
  flex-shrink: 0;
}

.policy-panel__body {
  font-size: 18px;
  line-height: 1.75;
  color: #b8c4d4;
}

.policy-panel__body p {
  margin-bottom: 0.85rem;
}

.policy-panel__body p:last-child {
  margin-bottom: 0;
}

.policy-list {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.policy-list li {
  margin-bottom: 0.5rem;
}

.policy-list li:last-child {
  margin-bottom: 0;
}

.policy-sublist {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  list-style: circle;
}

.policy-panel__body a {
  color: #00bfff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 191, 255, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.policy-panel__body a:hover {
  color: #7ddfff;
  border-bottom-color: #7ddfff;
}

.policy-contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 30px rgba(0, 191, 255, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.policy-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 35px rgba(0, 191, 255, 0.28);
}

.policy-contact-card__title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

.policy-contact-card__text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.policy-contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.policy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.policy-btn--primary {
  color: #0b0f17;
  background: #00bfff;
  border: 1px solid #00bfff;
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.35);
}

.policy-btn--primary:hover {
  color: #0b0f17;
  background: #7ddfff;
  border-color: #7ddfff;
  box-shadow: 0 0 28px rgba(0, 191, 255, 0.55);
  transform: translateY(-2px);
}

.policy-btn--outline {
  color: #00bfff;
  background: transparent;
  border: 1px solid rgba(0, 191, 255, 0.5);
}

.policy-btn--outline:hover {
  color: #fff;
  background: rgba(0, 191, 255, 0.15);
  border-color: #00bfff;
  box-shadow: 0 0 22px rgba(0, 191, 255, 0.3);
  transform: translateY(-2px);
}

/* Shop pre-footer policy strip */
.shop-policy-strip {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, #f8f9fa 0%, #eef3f8 100%);
  border-top: 1px solid rgba(0, 70, 174, 0.08);
}

.shop-policy-strip__label {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0046ae;
  margin-bottom: 1.25rem;
}

.shop-policy-strip__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.shop-policy-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 70, 174, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  min-height: 72px;
}

.shop-policy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 191, 255, 0.45);
  box-shadow: 0 8px 28px rgba(0, 191, 255, 0.18);
}

.shop-policy-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.15), rgba(0, 70, 174, 0.12));
  color: #0046ae;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.shop-policy-card__text strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  color: #182333;
  margin-bottom: 0.15rem;
}

.shop-policy-card__text span {
  font-size: 0.82rem;
  color: #666;
}

html.policy-smooth-scroll {
  scroll-behavior: smooth;
}

@media (max-width: 991.98px) {
  .policy-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .policy-nav-wrap {
    position: static;
    top: auto;
  }

  .policy-nav-toggle {
    display: flex;
  }

  .policy-nav {
    display: none;
    margin-bottom: 1.5rem;
  }

  .policy-nav.is-open {
    display: block;
  }

  .policy-nav__link {
    min-height: 44px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .policy-section {
    padding: 40px 0 60px;
  }

  .policy-panel {
    padding: 1.35rem 1.25rem;
  }

  .policy-panel__body {
    font-size: 16px;
  }
}

@media (max-width: 575.98px) {
  .shop-policy-strip__cards {
    grid-template-columns: 1fr;
  }

  .policy-contact-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .policy-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .policy-section::before,
  .policy-section::after,
  .policy-intro__badge {
    animation: none;
  }

  .policy-panel:hover,
  .policy-contact-card:hover,
  .shop-policy-card:hover,
  .policy-btn--primary:hover,
  .policy-btn--outline:hover {
    transform: none;
  }

  html.policy-smooth-scroll {
    scroll-behavior: auto;
  }
}
