* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #F8F9FA;
  color: #2C3E50;
  line-height: 1.8;
  overflow-x: hidden;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 61, 165, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: #003DA5;
  letter-spacing: 1px;
  text-decoration: none;
}

.nav-link {
  background: transparent;
  color: #003DA5;
  padding: 12px 28px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.4s ease;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(0, 61, 165, 0.3);
}

.nav-link:hover {
  background: rgba(0, 61, 165, 0.1);
  border-color: #003DA5;
  transform: translateY(-2px);
}

/* Main Content */
.legal-section {
  min-height: 100vh;
  background: linear-gradient(rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.98)),
              url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1920&q=80') center/cover fixed;
  padding: 120px 5% 80px;
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 60px;
  border: 1px solid rgba(0, 61, 165, 0.15);
  box-shadow: 0 20px 60px rgba(0, 61, 165, 0.1);
}

/* Header */
.legal-header {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 61, 165, 0.1);
}

.legal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  background: rgba(0, 61, 165, 0.1);
  border: 2px solid #003DA5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003DA5;
}

.legal-icon i {
  font-size: 40px;
}

.legal-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: #003DA5;
  margin-bottom: 15px;
  font-weight: 600;
}

.legal-subtitle {
  font-size: 16px;
  color: #6C757D;
}

/* Table of Contents */
.toc {
  background: rgba(245, 245, 245, 0.6);
  border: 1px solid rgba(0, 61, 165, 0.1);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 50px;
}

.toc h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #003DA5;
  margin-bottom: 20px;
  font-weight: 600;
}

.toc ul {
  list-style: none;
}

.toc li {
  margin-bottom: 12px;
}

.toc a {
  color: #2C3E50;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toc a:hover {
  color: #003DA5;
  padding-left: 10px;
}

.toc a i {
  font-size: 12px;
  color: #003DA5;
}

/* Content Sections */
.content-section {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 61, 165, 0.08);
}

.content-section:last-child {
  border-bottom: none;
}

.section-number {
  display: inline-block;
  background: rgba(0, 61, 165, 0.1);
  color: #003DA5;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.content-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #003DA5;
  margin-bottom: 25px;
  font-weight: 600;
}

.content-section h3 {
  font-size: 20px;
  color: #003DA5;
  margin: 30px 0 15px;
  font-weight: 600;
}

.content-section p {
  font-size: 16px;
  color: #6C757D;
  line-height: 1.9;
  margin-bottom: 20px;
}

.content-section ul {
  margin: 20px 0;
  padding-left: 20px;
}

.content-section li {
  font-size: 16px;
  color: #6C757D;
  line-height: 1.9;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.content-section li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #003DA5;
  font-weight: 600;
}

.highlight-box {
  background: rgba(0, 61, 165, 0.05);
  border-left: 3px solid #003DA5;
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 4px;
}

.highlight-box p {
  margin-bottom: 0;
  color: #2C3E50;
}

.info-table {
  background: rgba(245, 245, 245, 0.6);
  border: 1px solid rgba(0, 61, 165, 0.1);
  border-radius: 8px;
  padding: 25px;
  margin: 25px 0;
}

.info-row {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 61, 165, 0.08);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #003DA5;
  min-width: 150px;
}

.info-value {
  color: #2C3E50;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #003DA5;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 15px rgba(0, 61, 165, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #002B73;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 61, 165, 0.4);
}

/* Footer */
footer {
  background: #003DA5;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  font-size: 13px;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 15px 5%;
  }

  .logo {
    font-size: 20px;
  }

  .nav-link {
    padding: 10px 20px;
    font-size: 12px;
  }

  .legal-section {
    padding: 100px 5% 60px;
  }

  .legal-container {
    padding: 40px 30px;
  }

  .legal-title {
    font-size: 32px;
  }

  .content-section h2 {
    font-size: 26px;
  }

  .info-row {
    flex-direction: column;
  }

  .info-label {
    margin-bottom: 5px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .legal-container {
    padding: 30px 20px;
  }

  .legal-title {
    font-size: 26px;
  }

  .content-section h2 {
    font-size: 22px;
  }
}