<?php
if (session_status() !== PHP_SESSION_ACTIVE) session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title>Legal & Policies - Emporio Sport</title>
  <meta name="description" content="Privacy Policy, Cookie Policy, and Terms & Conditions for Emporio Sport.">
  <link rel="stylesheet" href="styles.css">
  <style>
    .legal-tabs {
      display: flex;
      gap: 0;
      margin-bottom: 30px;
      border-bottom: 2px solid #e6e6e6;
      flex-wrap: wrap;
    }

    .legal-tabs button {
      background: none;
      border: none;
      padding: 15px 25px;
      cursor: pointer;
      font-size: 16px;
      font-weight: 600;
      color: #666;
      border-bottom: 3px solid transparent;
      transition: all 0.3s ease;
      white-space: nowrap;
    }

    .legal-tabs button:hover {
      color: #F07E2D;
    }

    .legal-tabs button.active {
      color: #F07E2D;
      border-bottom-color: #F07E2D;
    }

    .legal-content {
      display: none;
      animation: fadeIn 0.3s ease;
    }

    .legal-content.active {
      display: block;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    .legal-content h2 {
      font-size: 28px;
      font-weight: 700;
      color: #333;
      margin-top: 30px;
      margin-bottom: 20px;
    }

    .legal-content h2:first-child {
      margin-top: 0;
    }

    .legal-content h3 {
      font-size: 18px;
      font-weight: 600;
      color: #333;
      margin-top: 25px;
      margin-bottom: 15px;
    }

    .legal-content ul {
      margin: 15px 0;
      padding-left: 25px;
    }

    .legal-content ul li {
      margin: 8px 0;
      line-height: 1.6;
    }

    .legal-content p {
      margin: 15px 0;
      line-height: 1.8;
      color: #333;
    }
  </style>
</head>
<body>
<?php include __DIR__ . '/header.php'; ?>

<main class="container">
  <div style="text-align: center; margin: 40px 0;">
    <h1>Legal & Policies</h1>
    <p style="color: #666;">Last Updated: January 2026</p>
  </div>

  <div style="max-width: 900px; margin: 0 auto;">
    <!-- Tab Buttons -->
    <div class="legal-tabs">
      <button class="tab-button active" onclick="switchTab('privacy')">Privacy Policy</button>
      <button class="tab-button" onclick="switchTab('cookies')">Cookie Policy</button>
      <button class="tab-button" onclick="switchTab('terms')">Terms & Conditions</button>
    </div>

    <!-- Privacy Policy Tab -->
    <div class="legal-content active" id="privacy">
      <h2>Privacy Policy</h2>
      
      <h3>1. Introduction</h3>
      <p>At Emporio Sport, we are committed to protecting your privacy and ensuring you have a positive experience on our website. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website.</p>

      <h3>2. Information We Collect</h3>
      <p>We may collect information about you in a variety of ways. The information we may collect on the Site includes:</p>
      <ul>
        <li><strong>Personal Data:</strong> Name, email address, phone number, shipping address, billing address</li>
        <li><strong>Payment Information:</strong> Credit card details (processed securely through payment gateways)</li>
        <li><strong>Account Information:</strong> Username, password, profile information</li>
        <li><strong>Browsing Data:</strong> IP address, browser type, pages visited, referring website</li>
        <li><strong>Cookies:</strong> Session and persistent cookies for user experience</li>
      </ul>

      <h3>3. Use of Your Information</h3>
      <p>Having accurate information about you permits us to provide you with a smooth, efficient, and customized experience. Specifically, we may use information collected about you to:</p>
      <ul>
        <li>Process your transactions and send related information</li>
        <li>Email regarding your account or order</li>
        <li>Fulfill and manage purchases, orders, payments, and other transactions related to the Site</li>
        <li>Generate a personal profile about you</li>
        <li>Increase the efficiency and operation of the Site</li>
        <li>Monitor and analyze usage and trends to improve your experience</li>
        <li>Notify you of updates to the Site</li>
        <li>Perform other business activities as needed</li>
      </ul>

      <h3>4. Disclosure of Your Information</h3>
      <p>We may share your information in the following situations:</p>
      <ul>
        <li><strong>Service Providers:</strong> With vendors and contractors who assist us in operating our website and conducting business</li>
        <li><strong>Legal Requirements:</strong> When required by law or to protect our legal rights</li>
        <li><strong>Business Transfer:</strong> In connection with a merger, acquisition, or sale of assets</li>
        <li><strong>With Your Consent:</strong> When you explicitly authorize us to share your information</li>
      </ul>

      <h3>5. Security of Your Information</h3>
      <p>We implement administrative, technical, and physical security measures to protect your personal information. However, no method of transmission over the Internet or electronic storage is 100% secure. While we strive to use commercially acceptable means to protect your personal information, we cannot guarantee absolute security.</p>

      <h3>6. Children's Privacy</h3>
      <p>Our Site is not intended for children under the age of 13. We do not knowingly collect personal information from children under 13. If we learn that we have collected personal information from a child under 13, we will promptly delete that information.</p>

      <h3>7. Contact Us</h3>
      <p>If you have questions or comments about this Privacy Policy, please contact us at:</p>
      <p style="margin: 20px 0;">
        <strong>Emporio Sport</strong><br>
        Email: privacy@emporio-sport.it<br>
        Phone: +39 (40) 574114<br>
        Address: Via Marco Polo 15/A - Altamonte (PD)
      </p>
    </div>

    <!-- Cookie Policy Tab -->
    <div class="legal-content" id="cookies">
      <h2>Cookie Policy</h2>

      <h3>1. What Are Cookies?</h3>
      <p>Cookies are small files that are stored on your device (computer, tablet, or mobile phone) when you visit a website. They help websites recognize you and remember your preferences.</p>

      <h3>2. Types of Cookies We Use</h3>

      <h4 style="font-weight: 600; margin-top: 20px;">Essential Cookies</h4>
      <p>These cookies are necessary for the website to function properly. They enable:</p>
      <ul>
        <li>User authentication and login sessions</li>
        <li>Security features and fraud prevention</li>
        <li>Basic site functionality</li>
      </ul>

      <h4 style="font-weight: 600; margin-top: 20px;">Performance Cookies</h4>
      <p>These cookies help us understand how visitors interact with our website:</p>
      <ul>
        <li>Pages most frequently visited</li>
        <li>Error messages received</li>
        <li>Website traffic and usage patterns</li>
      </ul>

      <h4 style="font-weight: 600; margin-top: 20px;">Functional Cookies</h4>
      <p>These cookies remember your choices to provide a personalized experience:</p>
      <ul>
        <li>Language preferences</li>
        <li>Currency selection</li>
        <li>Saved items and wishlist</li>
      </ul>

      <h4 style="font-weight: 600; margin-top: 20px;">Marketing Cookies</h4>
      <p>These cookies track your browsing habits to deliver relevant advertising:</p>
      <ul>
        <li>Marketing campaign effectiveness</li>
        <li>Personalized product recommendations</li>
        <li>Retargeting advertisements</li>
      </ul>

      <h3>3. Third-Party Cookies</h3>
      <p>We may use third-party service providers who place cookies on your device. These include:</p>
      <ul>
        <li><strong>Google Analytics:</strong> For website traffic analysis</li>
        <li><strong>Payment Processors:</strong> For secure transaction processing</li>
        <li><strong>Marketing Partners:</strong> For targeted advertising</li>
      </ul>

      <h3>4. How to Control Cookies</h3>
      <p>Most web browsers allow you to control cookies through their settings. You can:</p>
      <ul>
        <li><strong>Accept all cookies:</strong> Allow all cookies on our website</li>
        <li><strong>Reject cookies:</strong> Disable cookies from being stored on your device</li>
        <li><strong>Delete cookies:</strong> Remove previously stored cookies</li>
        <li><strong>Customize settings:</strong> Choose which types of cookies to accept</li>
      </ul>

      <h4 style="font-weight: 600; margin-top: 20px;">Browser-Specific Instructions:</h4>
      <ul>
        <li><strong>Chrome:</strong> Settings → Privacy and security → Cookies and other site data</li>
        <li><strong>Firefox:</strong> Preferences → Privacy & Security → Cookies and Site Data</li>
        <li><strong>Safari:</strong> Preferences → Privacy → Cookies and website data</li>
        <li><strong>Edge:</strong> Settings → Privacy → Cookies and other site data</li>
      </ul>

      <h3>5. Impact of Disabling Cookies</h3>
      <p>Please note that disabling certain cookies may affect the functionality of our website:</p>
      <ul>
        <li>You may not be able to log in to your account</li>
        <li>Shopping cart functionality may not work properly</li>
        <li>Personalized recommendations may not be available</li>
        <li>Website performance may be reduced</li>
      </ul>

      <h3>6. Cookie Retention</h3>
      <p>Cookies are retained for varying periods:</p>
      <ul>
        <li><strong>Session Cookies:</strong> Deleted when you close your browser</li>
        <li><strong>Persistent Cookies:</strong> Stored for up to 2 years</li>
        <li><strong>Marketing Cookies:</strong> Retained for up to 365 days</li>
      </ul>

      <h3>7. International Compliance</h3>
      <p>We comply with GDPR (General Data Protection Regulation) and other international privacy laws regarding cookie usage and consent.</p>

      <h3>8. Contact Us</h3>
      <p>If you have questions about our cookie practices, please contact us at:</p>
      <p style="margin: 20px 0;">
        <strong>Emporio Sport</strong><br>
        Email: privacy@emporio-sport.it<br>
        Phone: +39 (40) 574114<br>
        Address: Via Marco Polo 15/A - Altamonte (PD)
      </p>
    </div>

    <!-- Terms & Conditions Tab -->
    <div class="legal-content" id="terms">
      <h2>Terms & Conditions</h2>

      <h3>1. Acceptance of Terms</h3>
      <p>By accessing and using this website, you accept and agree to be bound by the terms and provision of this agreement. If you do not agree to abide by the above, please do not use this service.</p>

      <h3>2. Use License</h3>
      <p>Permission is granted to temporarily download one copy of the materials (information or software) on Emporio Sport's website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not:</p>
      <ul>
        <li>Modify or copy the materials</li>
        <li>Use the materials for any commercial purpose or for any public display</li>
        <li>Attempt to decompile or reverse engineer any software contained on the website</li>
        <li>Remove any copyright or other proprietary notations from the materials</li>
        <li>Transfer the materials to another person or "mirror" the materials on any other server</li>
      </ul>

      <h3>3. Disclaimer</h3>
      <p>The materials on Emporio Sport's website are provided on an 'as is' basis. Emporio Sport makes no warranties, expressed or implied, and hereby disclaims and negates all other warranties including, without limitation, implied warranties or conditions of merchantability, fitness for a particular purpose, or non-infringement of intellectual property or other violation of rights.</p>

      <h3>4. Limitations</h3>
      <p>In no event shall Emporio Sport or its suppliers be liable for any damages (including, without limitation, damages for loss of data or profit, or due to business interruption) arising out of the use or inability to use the materials on Emporio Sport's website.</p>

      <h3>5. Product Information</h3>
      <p>All product descriptions, pricing, and availability information are subject to change without notice. We strive to ensure accuracy but do not warrant that descriptions, prices, or other content is accurate, complete, reliable, current, or error-free.</p>

      <h3>6. Pricing and Availability</h3>
      <ul>
        <li>All prices are subject to change without notice</li>
        <li>Products are subject to availability</li>
        <li>We reserve the right to limit quantities</li>
        <li>We reserve the right to refuse or cancel any order</li>
        <li>Bulk orders may require special pricing</li>
      </ul>

      <h3>7. Orders and Payments</h3>
      <p>By placing an order, you agree to the following:</p>
      <ul>
        <li>You warrant that you are legally capable of entering into binding contracts</li>
        <li>All information provided is accurate and complete</li>
        <li>You authorize us to charge your payment method</li>
        <li>You agree to pay all applicable taxes and shipping fees</li>
      </ul>

      <h3>8. Returns and Refunds</h3>
      <p>Our return and refund policy is available on our website. Products must be returned within 30 days of purchase in unused condition with original packaging. Returns are subject to inspection and verification.</p>

      <h3>9. Intellectual Property Rights</h3>
      <p>All materials on the website, including text, graphics, logos, images, and software, are the property of Emporio Sport or its content suppliers and are protected by international copyright laws.</p>

      <h3>10. User Accounts</h3>
      <p>If you create an account on our website, you are responsible for:</p>
      <ul>
        <li>Maintaining the confidentiality of your password</li>
        <li>All activities that occur under your account</li>
        <li>Notifying us immediately of unauthorized use</li>
        <li>Ensuring information provided is accurate and current</li>
      </ul>

      <h3>11. Prohibited Activities</h3>
      <p>You may not:</p>
      <ul>
        <li>Use the website for illegal purposes or in violation of any laws</li>
        <li>Transmit viruses, malware, or harmful code</li>
        <li>Engage in harassment, abuse, or threatening behavior</li>
        <li>Interfere with the normal operation of the website</li>
        <li>Attempt to gain unauthorized access to systems or data</li>
      </ul>

      <h3>12. Limitation of Liability</h3>
      <p>Emporio Sport shall not be liable for any indirect, incidental, special, consequential, or punitive damages resulting from your use of or inability to use the website or materials.</p>

      <h3>13. Governing Law</h3>
      <p>These Terms and Conditions and any separate agreements we may have with you relating to these materials shall be governed by and construed in accordance with the laws of Italy, and you irrevocably submit to the exclusive jurisdiction of the courts located in Italy.</p>

      <h3>14. Contact Information</h3>
      <p>If you have any questions about these Terms and Conditions, please contact us at:</p>
      <p style="margin: 20px 0;">
        <strong>Emporio Sport</strong><br>
        Email: info@emporio-sport.it<br>
        Phone: +39 (40) 574114<br>
        Address: Via Marco Polo 15/A - Altamonte (PD)
      </p>
    </div>
  </div>
</main>

<script>
function switchTab(tabName) {
  // Hide all tabs
  document.querySelectorAll('.legal-content').forEach(tab => {
    tab.classList.remove('active');
  });
  
  // Remove active class from all buttons
  document.querySelectorAll('.tab-button').forEach(btn => {
    btn.classList.remove('active');
  });
  
  // Show selected tab
  document.getElementById(tabName).classList.add('active');
  
  // Add active class to clicked button
  event.target.classList.add('active');
}
</script>

<?php include __DIR__ . '/footer.php'; ?>
</body>
</html>
