/* ex-inline legal/terms.html — externalisé pour la mise en cache */
  .legal-hero {
    background: linear-gradient(135deg, #0066cc 0%, #5ba3e0 100%);
    color: white;
    padding: 6rem 0 4rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
  }

  .legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
  }

  .legal-hero-content {
    position: relative;
    z-index: 1;
  }

  .legal-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .legal-hero .last-update {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-top: 1rem;
  }

  .legal-content {
    padding: 4rem 0;
  }

  .legal-sidebar {
    position: sticky;
    top: 120px;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .legal-sidebar h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #0066cc;
  }

  .legal-nav {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .legal-nav li {
    margin-bottom: 0.5rem;
  }

  .legal-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
  }

  .legal-nav a:hover,
  .legal-nav a.active {
    background: #f8fafc;
    color: #0066cc;
    transform: translateX(5px);
  }

  .legal-main {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .legal-section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
  }

  .legal-section h2 {
    color: #0066cc;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e2e8f0;
  }

  .legal-section h3 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
  }

  .legal-section p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  .legal-section ul,
  .legal-section ol {
    margin: 1rem 0 1rem 1.5rem;
    color: #4b5563;
  }

  .legal-section li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
  }

  .highlight-box {
    background: #f0f9ff;
    border-left: 4px solid #0066cc;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
  }

  .highlight-box strong {
    color: #0066cc;
  }

  .contact-box {
    background: linear-gradient(135deg, #0066cc 0%, #5ba3e0 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-top: 3rem;
    text-align: center;
  }

  .contact-box h4 {
    margin-bottom: 1rem;
  }

  .contact-box .btn {
    background: white;
    color: #0066cc;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .contact-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }

  @media (max-width: 991px) {
    .legal-hero h1 {
      font-size: 2rem;
    }
    
    .legal-sidebar {
      position: relative;
      top: 0;
      margin-bottom: 2rem;
    }

    .legal-main {
      padding: 2rem;
    }
  }
