/*
 * Privacy Policy Page
 *
 * Styles the privacy/legal page shell. Includes decorative background effects,
 * hero card, policy sections, callouts, metadata/content cards, contact areas,
 * and responsive legal-page layout.
 */

.legal-page {
  min-height: calc(100vh - 200px);
  padding: 42px 20px 70px;
  position: relative;
  overflow: hidden;
}

.legal-page::before {
  content: "";
  position: absolute;
  top: -110px;
  left: 22%;
  width: 820px;
  height: 560px;
  background:
    radial-gradient(
      ellipse at 30% 10%,
      rgba(74, 163, 255, 0.1) 0%,
      transparent 48%
    ),
    radial-gradient(
      ellipse at 82% 36%,
      rgba(16, 185, 129, 0.055) 0%,
      transparent 42%
    );
  pointer-events: none;
}

.legal-page::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: 6%;
  width: 560px;
  height: 560px;
  background: radial-gradient(
    circle,
    rgba(125, 175, 255, 0.055),
    transparent 62%
  );
  pointer-events: none;
}

.legal-card {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background:
    radial-gradient(
      ellipse at 18% 0%,
      rgba(74, 163, 255, 0.1) 0%,
      transparent 42%
    ),
    linear-gradient(180deg, rgba(10, 15, 25, 0.58), rgba(7, 12, 22, 0.52));
  backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(125, 175, 255, 0.14);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  color: #cfe7ff;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.legal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 175, 255, 0.42),
    transparent
  );
}

.legal-header {
  margin: -2px 0 26px;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.legal-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, rgba(74, 163, 255, 0.85), transparent);
}

.legal-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: #f4f8ff;
  margin: 0;
  line-height: 1.08;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8fa5c4;
  margin: 0 0 2px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid rgba(125, 175, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  flex: 0 0 auto;
}

.legal-updated::before {
  content: "\F1E2";
  font-family: "bootstrap-icons";
  color: #7bb4ff;
}

.legal-section-title {
  font-size: 1.14rem;
  font-weight: 900;
  margin: 28px 0 12px;
  color: #eaf2ff;
  line-height: 1.35;
}

.legal-section-title::before {
  content: none;
}

.legal-section-title:first-of-type {
  margin-top: 4px;
}

.legal-text {
  font-size: 0.95rem;
  color: #9fb2ce;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-text strong {
  color: #f4f8ff;
  font-weight: 800;
}

.legal-text a {
  color: #4aa3ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-text a:hover {
  color: #7bb4ff;
  text-decoration: underline;
}

.legal-subtitle {
  font-size: 0.96rem;
  font-weight: 900;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #d7e6ff;
  padding: 12px 14px;
  border: 1px solid rgba(74, 163, 255, 0.16);
  border-radius: 12px;
  background: rgba(74, 163, 255, 0.06);
}

.legal-list {
  margin: 12px 0 18px;
  color: #9fb2ce;
  font-size: 0.9rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.legal-list li {
  line-height: 1.6;
  padding: 11px 12px 11px 38px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 18px;
  width: 7px;
  height: 7px;
  background: #7bb4ff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(74, 163, 255, 0.1);
}

.legal-list strong {
  color: #f4f8ff;
  font-weight: 800;
}

@media (max-width: 768px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .legal-title {
    font-size: 1.8rem;
  }

  .legal-section-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .legal-page {
    padding: 26px 12px 46px;
  }

  .legal-card {
    padding: 22px 18px;
  }

  .legal-title {
    font-size: 1.6rem;
  }

  .legal-section-title {
    font-size: 1.05rem;
  }

  .legal-list li {
    padding-right: 10px;
  }
}
