/* =========================================================
   Legal Page (Privacy Policy / Terms etc.) - Responsive CSS
   ========================================================= */

.legal-page {
  width: 100%;
  margin-top: 90px; /* apni navbar ki actual height se match karo */
  font-family: inherit;
  color: #333c4d;
  overflow-x: hidden;
}

/* ===== Hero ===== */
.legal-hero {
  position: relative;
  background: linear-gradient(135deg, #1a2a5e, #0f1b40);
  padding: 60px 24px 50px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.legal-hero__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.legal-hero__title {
  position: relative;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.legal-hero__breadcrumb {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  flex-wrap: wrap;
}

.legal-hero__breadcrumb a {
  color: #d8dcec;
  text-decoration: none;
}

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

.legal-hero__current {
  color: #f0b429;
  font-weight: 600;
}

/* ===== Content ===== */
.legal-content {
  max-width: 960px;
  margin: -40px auto 0;
  background: #ffffff;
  border-radius: 10px;
  padding: 48px 50px 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}

.legal-h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a2a5e;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e5ee;
}

.legal-h2:first-child,
.legal-content > .legal-h2:first-of-type {
  margin-top: 0;
}

.legal-h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a2a5e;
  margin: 0 0 10px;
}

.legal-lead {
  font-size: 17px;
  font-weight: 500;
  color: #333c4d;
  line-height: 1.75;
}

.legal-content p {
  font-size: 15.5px;
  line-height: 1.8;
  color: #4a4f5e;
  margin: 0 0 16px;
  word-wrap: break-word;
}

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

.legal-content a {
  color: #1a2a5e;
  font-weight: 600;
  text-decoration: underline;
  word-break: break-word;
}

.legal-content a:hover {
  color: #f0b429;
}

.legal-content strong {
  color: #1a2a5e;
}

/* Lists */
.legal-list,
.legal-check-list {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-list li,
.legal-check-list li {
  font-size: 15.5px;
  line-height: 1.75;
  color: #4a4f5e;
  margin-bottom: 10px;
}

.legal-check-list {
  list-style: none;
  padding-left: 0;
}

.legal-check-list li {
  position: relative;
  padding-left: 28px;
}

.legal-check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  color: #f0b429;
  font-weight: 700;
}

/* Sub-blocks (Onboarding, KYC, Gmail, etc.) */
.legal-block {
  background: #f7f8fc;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.legal-block p {
  margin-bottom: 12px;
}

.legal-block .legal-check-list {
  margin-bottom: 0;
}

/* Table */
.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.legal-table thead th {
  background: #1a2a5e;
  color: #fff;
  text-align: left;
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 18px;
}

.legal-table tbody td {
  font-size: 14.5px;
  line-height: 1.7;
  color: #4a4f5e;
  padding: 14px 18px;
  border-top: 1px solid #e6e9f2;
  vertical-align: top;
}

.legal-table tbody tr:nth-child(even) {
  background: #f7f8fc;
}

.legal-table tbody td:first-child {
  font-weight: 600;
  color: #1a2a5e;
  width: 32%;
}

/* Contact grid */
.legal-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px;
}

.legal-contact-card {
  background: #f7f8fc;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  padding: 24px 26px;
}

.legal-contact-card p {
  font-size: 15px;
  margin-bottom: 10px;
}

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

/* ---------- Responsive ---------- */

/* Tablets */
@media (max-width: 992px) {
  .legal-content {
    max-width: 90%;
    padding: 36px 30px 44px;
    margin-top: -30px;
  }

  .legal-hero__title {
    font-size: 34px;
  }

  .legal-h2 {
    font-size: 21px;
  }

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

/* Large mobile */
@media (max-width: 768px) {
  .legal-page {
    margin-top: 75px;
  }

  .legal-hero {
    padding: 44px 20px 40px;
  }

  .legal-hero__title {
    font-size: 28px;
  }

  .legal-hero__breadcrumb {
    font-size: 14px;
  }

  .legal-content {
    max-width: 94%;
    padding: 28px 22px 36px;
    margin-top: -24px;
    border-radius: 8px;
  }

  .legal-h2 {
    font-size: 19px;
    margin: 30px 0 12px;
  }

  .legal-h3 {
    font-size: 16.5px;
  }

  .legal-lead,
  .legal-content p,
  .legal-list li,
  .legal-check-list li {
    font-size: 14.5px;
  }

  .legal-block {
    padding: 18px 18px;
  }

  .legal-table thead th,
  .legal-table tbody td {
    font-size: 13.5px;
    padding: 12px 14px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .legal-page {
    margin-top: 65px;
  }

  .legal-hero {
    padding: 34px 16px 30px;
  }

  .legal-hero__circle {
    width: 180px;
    height: 180px;
  }

  .legal-hero__title {
    font-size: 22px;
  }

  .legal-hero__breadcrumb {
    font-size: 13px;
    gap: 6px;
  }

  .legal-content {
    max-width: 100%;
    padding: 22px 16px 30px;
    margin-top: -18px;
    border-radius: 6px;
  }

  .legal-h2 {
    font-size: 17px;
    margin: 26px 0 10px;
  }

  .legal-h3 {
    font-size: 15.5px;
  }

  .legal-lead,
  .legal-content p,
  .legal-list li,
  .legal-check-list li {
    font-size: 13.5px;
    line-height: 1.7;
  }

  .legal-block {
    padding: 16px 14px;
  }

  .legal-contact-card {
    padding: 18px 16px;
  }

  .legal-contact-card p {
    font-size: 13.5px;
  }

  .legal-table {
    min-width: 480px;
  }
}