/* Legal Pages Shared Styles */
.legal-main {
  padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 20) 0;
  background: var(--background-color);
}

.page-header {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 16);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: calc(var(--spacing-unit) * 4);
  color: var(--text-color);
}

.page-header p {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.6;
  font-weight: 500;
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  background: linear-gradient(135deg, var(--primary-color) 0%, #d1154a 100%);
  color: white;
  padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 6);
  border-radius: calc(var(--border-radius) * 0.7);
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(235, 26, 78, 0.3);
}

.badge-icon {
  font-size: 1.2rem;
}

.badge-text {
  font-size: 0.95rem;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: calc(var(--spacing-unit) * 16);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  line-height: 1.7;
}

.legal-section {
  margin-bottom: calc(var(--spacing-unit) * 16);
  padding-bottom: calc(var(--spacing-unit) * 12);
  border-bottom: 1px solid var(--background-color);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 6);
  color: var(--text-color);
  padding-bottom: calc(var(--spacing-unit) * 3);
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.legal-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 4) 0;
  color: var(--text-color);
}

.legal-section p {
  font-size: 1rem;
  margin-bottom: calc(var(--spacing-unit) * 6);
  color: var(--text-color);
  opacity: 0.9;
}

.legal-section ul,
.legal-section ol {
  margin-bottom: calc(var(--spacing-unit) * 6);
  padding-left: calc(var(--spacing-unit) * 8);
}

.legal-section li {
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: var(--text-color);
  opacity: 0.9;
}

.legal-section li strong {
  color: var(--primary-color);
  font-weight: 600;
}

.legal-section a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.legal-section a:hover {
  color: #d1154a;
  text-decoration: underline;
}

/* Contact Information in Legal Pages */
.contact-info {
  background: var(--background-color);
  padding: calc(var(--spacing-unit) * 6);
  border-radius: calc(var(--border-radius) * 0.7);
  margin: calc(var(--spacing-unit) * 6) 0;
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: calc(var(--spacing-unit) * 4);
  color: var(--primary-color);
}

.contact-info ul {
  margin-bottom: 0;
}

.contact-info li {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Acceptance/Notice Boxes */
.acceptance-notice,
.satisfaction-guarantee {
  background: linear-gradient(135deg, var(--primary-color) 0%, #d1154a 100%);
  color: white;
  padding: calc(var(--spacing-unit) * 8);
  border-radius: var(--border-radius);
  margin-top: calc(var(--spacing-unit) * 12);
  text-align: center;
}

.acceptance-notice h3,
.satisfaction-guarantee h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 4);
  color: white;
}

.acceptance-notice p,
.satisfaction-guarantee p {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: white;
  opacity: 0.95;
  line-height: 1.6;
}

/* Guarantee Stats (Refund Page) */
.guarantee-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: calc(var(--spacing-unit) * 6);
  margin-top: calc(var(--spacing-unit) * 8);
  padding-top: calc(var(--spacing-unit) * 8);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.guarantee-stats .stat {
  text-align: center;
}

.guarantee-stats .stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: white;
}

.guarantee-stats .stat span {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Ordered Lists Styling */
.legal-section ol {
  counter-reset: legal-counter;
  list-style: none;
}

.legal-section ol li {
  counter-increment: legal-counter;
  position: relative;
  padding-left: calc(var(--spacing-unit) * 4);
}

.legal-section ol li::before {
  content: counter(legal-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-color);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Highlight Boxes */
.highlight-box {
  background: #e8f5e8;
  border-left: 4px solid #28a745;
  padding: calc(var(--spacing-unit) * 4);
  margin: calc(var(--spacing-unit) * 6) 0;
  border-radius: calc(var(--border-radius) * 0.5);
}

.highlight-box h4 {
  margin-top: 0;
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: #28a745;
  font-weight: 600;
}

.highlight-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Warning Boxes */
.warning-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: calc(var(--spacing-unit) * 4);
  margin: calc(var(--spacing-unit) * 6) 0;
  border-radius: calc(var(--border-radius) * 0.5);
}

.warning-box h4 {
  margin-top: 0;
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: #856404;
  font-weight: 600;
}

.warning-box p {
  margin-bottom: 0;
  color: #856404;
  font-size: 0.95rem;
}

/* Table Styling (if needed) */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: calc(var(--spacing-unit) * 6) 0;
  background: white;
  border-radius: calc(var(--border-radius) * 0.5);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.legal-table th,
.legal-table td {
  padding: calc(var(--spacing-unit) * 4);
  text-align: left;
  border-bottom: 1px solid var(--background-color);
}

.legal-table th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:nth-child(even) {
  background: var(--background-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .legal-content {
    padding: calc(var(--spacing-unit) * 8);
    margin: calc(var(--spacing-unit) * 4);
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .legal-section h2 {
    font-size: 1.5rem;
  }

  .legal-section h3 {
    font-size: 1.2rem;
  }

  .guarantee-badge {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    font-size: 0.9rem;
  }

  .guarantee-stats {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 4);
  }

  .acceptance-notice,
  .satisfaction-guarantee {
    padding: calc(var(--spacing-unit) * 6);
  }

  .contact-info {
    padding: calc(var(--spacing-unit) * 4);
  }
}

@media (max-width: 480px) {
  .legal-main {
    padding: calc(var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 16) 0;
  }

  .legal-content {
    padding: calc(var(--spacing-unit) * 6);
    margin: calc(var(--spacing-unit) * 2);
  }

  .legal-section {
    margin-bottom: calc(var(--spacing-unit) * 12);
    padding-bottom: calc(var(--spacing-unit) * 8);
  }

  .legal-section ul,
  .legal-section ol {
    padding-left: calc(var(--spacing-unit) * 6);
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .guarantee-badge {
    flex-direction: column;
    text-align: center;
    gap: calc(var(--spacing-unit) * 1);
  }
}