/* Legal Pages Styles */

/* Header adjustments for legal pages */
.legal-header {
  position: relative;
  background: var(--bg-white);
}

.legal-header .header-inner {
  justify-content: space-between;
}

.back-link {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Main content area */
.legal-main {
  padding: 60px 24px 80px;
  background: var(--bg-light);
  min-height: calc(100vh - 64px - 80px);
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.legal-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-align: center;
}

.legal-subtitle {
  font-size: 15px;
  color: var(--text-medium);
  text-align: center;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* Content sections */
.legal-content {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-dark);
}

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

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

.legal-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-100);
}

.legal-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.legal-section p {
  margin-bottom: 12px;
  color: var(--text-medium);
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0;
  padding-left: 24px;
  color: var(--text-medium);
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section ul li {
  list-style-type: disc;
}

.legal-section ol li {
  list-style-type: decimal;
}

.legal-section ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Intro section */
.intro-section {
  background: var(--primary-50);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.intro-section p {
  margin-bottom: 0;
  color: var(--text-dark);
}

/* Security items */
.security-item {
  display: flex;
  gap: 20px;
  background: var(--bg-light);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.security-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.security-content {
  flex: 1;
}

.security-content h3 {
  margin-bottom: 8px;
}

.security-content p {
  margin-bottom: 10px;
}

.security-content ul {
  margin: 8px 0 0;
}

/* Contact info box */
.contact-info {
  background: var(--bg-light);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.contact-info p {
  margin-bottom: 6px;
  color: var(--text-dark);
}

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

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Tokusho table */
.tokusho-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tokusho-table tr {
  border-bottom: 1px solid var(--border);
}

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

.tokusho-table th,
.tokusho-table td {
  padding: 16px 12px;
  text-align: left;
  vertical-align: top;
}

.tokusho-table th {
  width: 180px;
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.tokusho-table td {
  color: var(--text-medium);
  line-height: 1.8;
}

.tokusho-table td ul {
  margin: 0;
  padding-left: 20px;
}

.tokusho-table td li {
  margin-bottom: 4px;
}

.tokusho-table td li:last-child {
  margin-bottom: 0;
}

.tokusho-table td small {
  font-size: 12px;
  color: var(--text-light);
}

.tokusho-table td a {
  color: var(--primary);
  text-decoration: none;
}

.tokusho-table td a:hover {
  text-decoration: underline;
}

/* Footer for legal pages */
.legal-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 24px;
}

.legal-footer .footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.legal-footer .footer-copy {
  font-size: 12px;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-main {
    padding: 40px 16px 60px;
  }

  .legal-container {
    padding: 32px 24px;
    border-radius: var(--radius-md);
  }

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

  .legal-section h2 {
    font-size: 16px;
  }

  .security-item {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .security-icon {
    margin: 0 auto;
  }

  .tokusho-table th,
  .tokusho-table td {
    display: block;
    width: 100%;
    padding: 12px;
  }

  .tokusho-table th {
    background: var(--primary-50);
    border-bottom: none;
    padding-bottom: 8px;
  }

  .tokusho-table td {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .tokusho-table tr {
    display: block;
    margin-bottom: 8px;
  }

  .back-link {
    font-size: 13px;
  }
}
