/* LEGAL PAGE STYLING */

:root {
  --primary: rgba(30, 127, 153, 0.95);
  --primary-dark: rgba(50, 54, 84, 0.98);
  --primary-light: #6366F1;
  --secondary: rgba(50, 54, 84, 0.98);
  --secondary-dark: #0284C7;
  --accent: #10B981;
  --accent-dark: #059669;
  --bg: #F9FAFB;
  --card: #FFFFFF;
  --text: #111827;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --maxw: 1200px;
  --gap: 2rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  animation: pageLoad 0.5s ease forwards;
}

@keyframes pageLoad {
  to { opacity: 1; }
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem;
}

/* HEADER WITH NAVIGATION */
header.site {
  background: linear-gradient(135deg, rgba(50, 54, 84, 0.95) 0%, rgba(30, 127, 153, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #f7f9f5;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 0;
}

header.site.scrolled {
  padding: 0.3rem 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, rgba(50, 54, 84, 0.98) 0%, rgba(30, 127, 153, 0.98) 100%);
}




header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  gap: 2rem;
}



.brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}

.brand .meta {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* NAVIGATION */
nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  animation: fadeIn 0.6s ease;
}

nav a,
#langSelect {
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

nav a::before,
#langSelect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

nav a:hover::before,
#langSelect:hover::before {
  left: 100%;
}

nav a:hover,
#langSelect:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.4);
}

#langSelect {
  cursor: pointer;
  min-width: 140px;
  text-align: center;
}

/* LEGAL SECTION */
.legal-section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.legal-section h3 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary);
}

.legal-section h4 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 600;
}

.legal-section p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1rem;
}

.legal-section a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.legal-section a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  header .wrap {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .brand {
    flex-direction: column;
    text-align: center;
  }

  

  .brand h1 {
    font-size: 1.25rem;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a,
  #langSelect {
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
  }

  .legal-section {
    padding: 2rem 1.5rem;
  }

  .legal-section h2 {
    font-size: 2rem;
  }

  .legal-section h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .legal-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  nav a,
  #langSelect {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  .brand h1 {
    font-size: 1.1rem;
  }

  .brand .meta {
    font-size: 0.75rem;
  }

  .legal-section h2 {
    font-size: 1.75rem;
  }
}