/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Plus Jakarta Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9fafb;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img,
svg {
  max-width: 100%;
  display: block;
}

/* Added to address Lighthouse warning */
section h1,
article h1,
aside h1,
nav h1 {
  font-size: 2.2rem;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  font-weight: 700;
  font-size: 1.8rem;
  color: #2563eb;
  display: flex;
  align-items: center;
}
.logo span.highlight {
  color: #f97316;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.lang-switcher button {
  background: transparent;
  border: 2px solid #e2e8f0;
  color: #64748b;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}
.lang-switcher button:hover {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
}
.lang-switcher button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Legal Content Section */
.legal-content {
  padding: 8rem 0 4rem;
  min-height: calc(100vh - 100px);
}
.legal-content .container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 3rem;
}
/* Ensure .legal-content h1 specific style is maintained if different, or remove if covered by the general rule */
.legal-content h1 {
  color: #2563eb;
  margin-bottom: 2rem;
  /* font-size: 2.2rem; */ /* Covered by the general rule above */
}
.legal-content h2 {
  color: #333;
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.legal-content p {
  margin-bottom: 1.2rem;
}
.legal-content ul,
.legal-content ol {
  margin-left: 2rem;
  margin-bottom: 1.2rem;
}
.legal-content li {
  margin-bottom: 0.5rem;
}
.legal-section {
  margin-bottom: 3rem;
}
.back-home {
  display: inline-flex;
  align-items: center;
  margin: 2rem 0;
  color: #2563eb;
  font-weight: 500;
  transition: color 0.3s ease;
}
.back-home i {
  margin-right: 0.5rem;
}
.back-home:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.legal-content a {
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* Footer */
.footer {
  background: #1e293b;
  color: #e2e8f0;
  padding: 3rem 0 1.5rem;
  text-align: center;
}
.footer .container {
  padding-bottom: 1.5rem;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer-logo h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-logo span {
  color: #f97316;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}
.footer-links a {
  color: #94a3b8;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #fff;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.social-links a {
  color: #94a3b8;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
  color: #fff;
  transform: scale(1.1);
}
.copyright {
  font-size: 0.9rem;
  color: #94a3b8;
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  .legal-content .container {
    padding: 2rem;
  }
  .footer-links {
    /* Added from index.html for consistency */
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
  }
}
@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  .legal-content .container {
    padding: 1.5rem;
  }
}
@media (max-width: 480px) {
  .container {
    max-width: 100%;
  }
  .legal-content {
    padding: 7rem 0 2rem 0; /* Increased top padding for mobile to prevent overlap with fixed header */
  }
  .legal-content .container {
    padding: 0.5rem;
  }
  .legal-content h1 {
    font-size: 1.2rem; /* This specific rule for .legal-content h1 will override the general section h1 if needed */
  }
  .legal-content h2 {
    font-size: 1rem;
  }
  .legal-content h3 {
    font-size: 0.95rem;
  }
  .legal-content p,
  .legal-content ul,
  .legal-content ol {
    font-size: 0.95rem;
  }
}
