/* ============================================================================
   LEGAL NOTICE COMPONENT

   Bordered information box for displaying legal disclosures, terms,
   billing information, and other formal notices.

   Purpose: Present legal and policy information in a clear, consistent
   format that's visually distinct from main content but not distracting.

   Required HTML Structure:

   <div class="legal-notice">
     <h4 class="legal-notice__title">Billing & Cancellation</h4>
     <p class="legal-notice__text">
       Legal disclosure text goes here. Can include multiple paragraphs,
       lists, or links as needed.
     </p>
   </div>

   Alternative (without title):

   <div class="legal-notice">
     <p class="legal-notice__text">
       Notice text without a title heading.
     </p>
   </div>

   Modifiers:
   - .legal-notice--info       # Blue accent (informational)
   - .legal-notice--warning    # Yellow accent (important notice)
   - .legal-notice--compact    # Reduced padding for smaller notices

   Features:
   - Subtle background and border
   - Smaller font size for legal text
   - Clear visual hierarchy
   - Icon support (optional)
   - Responsive padding

   Accessibility:
   - Semantic heading structure
   - Sufficient color contrast (WCAG AA)
   - Links clearly distinguishable

   Notes:
   - Default styling uses neutral colors
   - Can contain paragraphs, lists, and links
   - Text is slightly smaller than body copy (0.9rem)
   - Use for billing terms, refund policies, disclaimers
   ============================================================================ */

/* ===== Base Legal Notice ===== */

.legal-notice {
  background: rgba(30, 58, 138, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}


/* ===== Title ===== */

.legal-notice__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  letter-spacing: 0.3px;
}


/* ===== Text Content ===== */

.legal-notice__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.legal-notice__text:not(:last-child) {
  margin-bottom: 1rem;
}

.legal-notice__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-notice__text a {
  color: var(--sky-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-notice__text a:hover {
  color: var(--light-blue);
  text-decoration: underline;
}


/* ===== Lists ===== */

.legal-notice ul,
.legal-notice ol {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0.5rem 0 0.5rem 1.5rem;
}

.legal-notice li {
  margin-bottom: 0.5rem;
}

.legal-notice li:last-child {
  margin-bottom: 0;
}


/* ===== Modifiers ===== */

/* Info variant - Blue accent */
.legal-notice--info {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--sky-blue);
}

.legal-notice--info .legal-notice__title {
  color: var(--sky-blue);
}

/* Warning variant - Yellow/amber accent */
.legal-notice--warning {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(251, 191, 36, 0.5);
}

.legal-notice--warning .legal-notice__title {
  color: #fbbf24;
}

/* Compact variant - Reduced padding */
.legal-notice--compact {
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}


/* ===== Icon Support (Optional) ===== */

.legal-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  color: var(--sky-blue);
  font-size: 1rem;
  vertical-align: middle;
}


/* ===== Responsive ===== */

@media (max-width: 768px) {
  .legal-notice {
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
  }

  .legal-notice__title {
    font-size: 1rem;
  }

  .legal-notice__text {
    font-size: 0.85rem;
  }

  .legal-notice ul,
  .legal-notice ol {
    font-size: 0.85rem;
    margin-left: 1.25rem;
  }
}

@media (max-width: 480px) {
  .legal-notice {
    padding: 1rem;
    margin: 1rem 0;
  }

  .legal-notice__title {
    font-size: 0.95rem;
  }

  .legal-notice__text {
    font-size: 0.8rem;
  }
}
