import { Component, OnInit } from '@angular/core';
import { CommonModule, Location } from '@angular/common';
import { SeoService } from '../../services/seo.service';

@Component({
  selector: 'app-terms-of-use',
  standalone: true,
  imports: [CommonModule],
  templateUrl: './terms-of-use.component.html',
  styleUrls: ['./terms-of-use.component.scss']
})
export class TermsOfUseComponent implements OnInit {
  constructor(
    private seoService: SeoService,
    private location: Location
  ) {}

  ngOnInit(): void {
    // Set SEO meta tags for Terms of Use page
    this.seoService.updateMetaTags({
      title: 'Terms of Use - BizMatch',
      description: 'Read the terms and conditions for using BizMatch marketplace. Learn about user responsibilities, listing guidelines, and platform rules.',
      type: 'website'
    });
  }

  goBack(): void {
    this.location.back();
  }
}
