/* TechOut Legal Pages Styles
   Privacy Policy, Terms, Shipping, Refund */

/* ============================================
   LEGAL CONTENT
   ============================================ */

.legal-content {
  padding: var(--section-spacing-mobile) var(--container-padding);
}

@media (min-width: 768px) {
  .legal-content {
    padding: var(--section-spacing) var(--container-padding);
  }
}

.legal-content__container {
  max-width: var(--container-lg);
  margin: 0 auto;
}

/* Intro */
.legal-content__intro {
  margin-bottom: var(--space-10);
}

.legal-content__intro p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

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

/* ============================================
   LEGAL SECTIONS
   ============================================ */

.legal-section {
  margin-bottom: var(--space-10);
}

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

.legal-section__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

.legal-section__subtitle {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-section p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

/* ============================================
   LEGAL LISTS
   ============================================ */

.legal-list {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  list-style: disc;
}

.legal-list li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2);
  padding-left: var(--space-2);
}

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

.legal-list li strong {
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

/* ============================================
   LEGAL HIGHLIGHT
   ============================================ */

.legal-highlight {
  padding: var(--space-5) var(--space-6);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
}

.legal-highlight h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.legal-highlight p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ============================================
   LEGAL TABLE
   ============================================ */

.legal-table-wrapper {
  overflow-x: auto;
  margin: var(--space-6) 0;
}

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

.legal-table th,
.legal-table td {
  padding: var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-light);
}

.legal-table th {
  font-weight: var(--weight-semibold);
  background-color: var(--bg-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-size: var(--text-xs);
}

.legal-table td {
  color: var(--text-secondary);
  vertical-align: top;
}

.legal-table td strong {
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

.legal-table tr:hover td {
  background-color: var(--bg-secondary);
}

/* ============================================
   LEGAL STEPS
   ============================================ */

.legal-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin: var(--space-6) 0;
}

.legal-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.legal-step__number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.legal-step__content {
  flex: 1;
}

.legal-step__content h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-1);
}

.legal-step__content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ============================================
   LEGAL CONTACT
   ============================================ */

.legal-contact {
  padding: var(--space-6);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
}

.legal-contact p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

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

.legal-contact strong {
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

.legal-contact a {
  color: var(--text-primary);
  text-decoration: underline;
}

.legal-contact a:hover {
  opacity: 0.7;
}

/* ============================================
   LEGAL LINKS
   ============================================ */

.legal-section a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  opacity: 0.7;
}
