/* ═══════════════════════════════════════════════════════════════
   Legal and Compliance Center
   ═══════════════════════════════════════════════════════════════ */

.legal-page {
  background: #fff;
  color: #333;
}

/* ── Tab Navigation ── */
.legal-nav {
  position: relative;
  z-index: 9;
}

.legal-nav__inner {
  width: 90%;
  max-width: 1000px;
  margin: -40px auto 0;
  padding: 0 20px;
  background: #fff;
}

.legal-nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-nav li {
  padding: 20px 30px;
  text-align: center;
  transition: background 0.2s;
  cursor: pointer;
}

.legal-nav li:hover {
  background: #1b222d;
}

.legal-nav li:hover a {
  color: #fff;
}

.legal-nav a {
  color: #2e3b50;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}

/* ── Content Sections ── */
.legal-section {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 0;
}

.legal-section__inner {
  padding: 0 20px;
}

.legal-section__title {
  font-size: 2.5em;
  text-align: center;
  margin: 20px auto;
  max-width: 1300px;
}

/* ── Icon Cards (Notices / Terms) ── */
.legal-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
}

.legal-card {
  max-width: 200px;
}

.legal-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.legal-card__icon {
  text-align: center;
  background: #eeecec;
  max-width: 200px;
  border: 1px solid #ccc;
}

.legal-card__icon img {
  height: 224px;
  width: 100%;
  margin: 0 auto;
  display: block;
  padding: 15px;
  max-height: 224px;
  object-fit: contain;
  box-sizing: border-box;
}

#data-collection-disclosure .legal-card__icon img[src$=".svg"] {
  filter: brightness(0);
}

.legal-card__title {
  font-size: 20px;
  text-align: center;
  margin-top: 10px;
  color: #333;
}

.legal-card a:hover .legal-card__title {
  color: #ff0037;
}

/* ── Certifications ── */
.legal-certs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-cert {
  display: block;
  padding: 20px;
  text-align: center;
  color: #222;
  text-decoration: none;
  font-size: 20px;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.legal-cert:hover {
  color: #222;
}

.legal-cert__image {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(244, 244, 244, 0.33);
  margin-bottom: 10px;
}

.legal-cert__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.legal-cert__text {
  margin-top: 10px;
}

.legal-cert__sub {
  font-size: 16px;
  font-weight: 400;
}

/* ── Updates Table (JP) ── */
.legal-updates-table {
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #1a212b;
}

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

.legal-updates-table th,
.legal-updates-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  line-height: 1.6;
}

.legal-updates-table thead th {
  background: #1a212b;
  color: #fff;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.legal-updates-table th:nth-child(1),
.legal-updates-table td:nth-child(1) {
  width: 12%;
}

.legal-updates-table th:nth-child(2),
.legal-updates-table td:nth-child(2) {
  width: 20%;
}

.legal-updates-table th:nth-child(3),
.legal-updates-table td:nth-child(3) {
  width: 15%;
}

.legal-updates-table th:nth-child(4),
.legal-updates-table td:nth-child(4) {
  width: 53%;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .legal-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .legal-nav li {
    width: 100%;
  }

  .legal-cards {
    justify-content: center;
  }

  .legal-certs {
    flex-direction: column;
    align-items: center;
  }
}