/* ========== LEGAL PAGES (Privacy / Tokushoho) ========== */

.header-legal {
  position: relative;
  background: var(--shikkoku);
  border-bottom: 1px solid rgba(196, 162, 101, 0.15);
}

.header-legal .logo {
  text-decoration: none;
  color: var(--kin);
}

/* Page Layout */
.legal-page {
  min-height: 100vh;
  padding: 120px 0 80px;
  background: linear-gradient(180deg, #0a0a12 0%, #10131a 40%, #0d0f16 100%);
  color: var(--white);
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Title */
.legal-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--kin);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.legal-updated {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.5);
  margin-bottom: 48px;
}

/* Sections */
.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--kin);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(196, 162, 101, 0.2);
  letter-spacing: 0.04em;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(245, 240, 232, 0.9);
  margin: 20px 0 10px;
}

.legal-section p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-section li {
  font-size: 0.93rem;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: 6px;
}

.legal-section li strong {
  color: rgba(245, 240, 232, 0.9);
}

/* Table (Tokushoho) */
.legal-table-wrapper {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(196, 162, 101, 0.15);
}

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

.legal-table th,
.legal-table td {
  padding: 18px 20px;
  font-size: 0.93rem;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(196, 162, 101, 0.1);
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table th {
  width: 200px;
  font-weight: 600;
  color: var(--kin);
  background: rgba(196, 162, 101, 0.06);
  white-space: nowrap;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.03em;
}

.legal-table td {
  color: rgba(245, 240, 232, 0.75);
  background: rgba(10, 10, 18, 0.5);
}

/* Contact Info (Privacy) */
.legal-contact-info {
  background: rgba(196, 162, 101, 0.04);
  border: 1px solid rgba(196, 162, 101, 0.12);
  border-radius: 10px;
  padding: 24px;
  margin: 16px 0;
}

.legal-contact-info dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 0;
}

.legal-contact-info dt {
  font-weight: 600;
  color: rgba(245, 240, 232, 0.85);
  font-size: 0.9rem;
}

.legal-contact-info dd {
  color: rgba(245, 240, 232, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.legal-dates {
  margin-top: 24px;
  font-size: 0.85rem !important;
  color: rgba(245, 240, 232, 0.45) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .legal-page {
    padding: 100px 0 60px;
  }

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

  .legal-table th {
    display: block;
    width: 100%;
    padding: 14px 16px 4px;
    white-space: normal;
  }

  .legal-table td {
    display: block;
    padding: 4px 16px 14px;
  }

  .legal-table tr {
    display: block;
    border-bottom: 1px solid rgba(196, 162, 101, 0.1);
  }

  .legal-table tr:last-child {
    border-bottom: none;
  }

  .legal-table th,
  .legal-table td {
    border-bottom: none;
  }

  .legal-contact-info dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .legal-contact-info dt {
    margin-top: 12px;
  }

  .legal-contact-info dt:first-child {
    margin-top: 0;
  }

  .legal-section {
    margin-bottom: 36px;
  }
}
