:root {
  --primary: #a9e3f6;
  --secondary: #4a90e2;
  --accent: #e0f7fa;
  --text: #2d3436;
  --text-light: #636e72;
  --white: #ffffff;
  --background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  --border: #e1f5fe;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --pill: 50px;
}

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

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-top: 80px;
}

.main-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  padding: 0.8rem 4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.logo-img-text {
  height: 45px;
  width: auto;
  display: block;
}

.logo-img-icon {
  height: 45px;
  width: auto;
  display: block;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: space-between;
  margin-left: 3rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-item {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 0.6rem 1.2rem;
  border-radius: var(--pill);
  position: relative;
}

.nav-item.active {
  background-color: var(--accent);
  color: #000;
}

.nav-item:hover {
  color: var(--secondary);
  background: rgba(0, 0, 0, 0.02);
}

.menu-toggle,
.menu-close {
  display: none;
}

/* Category Slider on Home Page */
.category-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  padding: 0 40px;
}

.category-grid.slider-mode {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 2rem;
  padding: 2rem 0;
  width: 100%;
}

.category-grid.slider-mode::-webkit-scrollbar {
  display: none;
}

.category-grid.slider-mode .category-card {
  flex: 0 0 calc(25% - 2rem);
  min-width: 220px;
  max-width: 300px;
}

@media (max-width: 1024px) {
  .category-grid.slider-mode .category-card {
    flex: 0 0 calc(33.33% - 2rem);
  }
}

@media (max-width: 768px) {
  .category-grid.slider-mode .category-card {
    flex: 0 0 calc(45% - 2rem);
  }
}

.slider-btn {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 8px 25px rgba(169, 227, 246, 0.4);
  transition: var(--transition);
  position: absolute;
  color: var(--text);
  font-size: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.slider-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 12px 30px rgba(169, 227, 246, 0.6);
}

.slider-btn.prev {
  left: -25px;
}

.slider-btn.next {
  right: -25px;
}

/* Gradient overrides for the slider visibility */
.category-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  padding: 0;
  overflow: visible;
}

.category-slider-wrapper::before,
.category-slider-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f0f9ff 20%, transparent);
}

.category-slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f0f9ff 20%, transparent);
}

.category-slider-wrapper.show-left-fade::before {
  opacity: 1;
}

.category-slider-wrapper.show-right-fade::after {
  opacity: 1;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.dropdown-toggle .arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  min-width: 220px;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.dropdown-content a {
  color: var(--text);
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  display: block;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.95rem;
}

.dropdown-content a:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateX(5px);
}

/* Desktop Hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180deg);
  }
}

/* Responsive Header Overhaul */
@media (max-width: 1024px) {
  .main-header {
    padding: 0.8rem 1.5rem;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    right: -100vw;
    width: 80vw;
    max-width: 320px;
    height: 100dvh;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 6rem 2rem 6rem;
    margin: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 3rem;
  }

  .nav-container.active {
    right: 0;
  }

  .menu-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-item {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
  }

  .dropdown-content {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    padding-left: 2rem;
    display: none;
    margin-top: 0.5rem;
  }

  .dropdown.open .dropdown-content {
    display: flex;
  }

  .dropdown.open .dropdown-toggle .arrow {
    transform: rotate(180deg);
  }

  .header-right {
    width: 100%;
    margin-top: auto;
  }

  .search-form {
    width: 100%;
  }

  .search-input {
    width: 100% !important;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-form {
  position: relative;
}

.search-input {
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  width: 250px;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-input:focus {
  outline: none;
  width: 300px;
  border-color: var(--primary);
}

.search-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  color: #000;
  box-shadow: 0 4px 10px rgba(169, 227, 246, 0.4);
  transition: var(--transition);
}

.search-btn:hover {
  background: #8cd7f0;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 15px rgba(169, 227, 246, 0.6);
}

.search-btn .icon-svg {
  width: 18px;
  height: 18px;
}

.dark-mode-toggle {
  font-size: 1.2rem;
  cursor: pointer;
  color: #343a40;
}

.container {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 2rem;
  animation: fadeIn 0.8s ease-out forwards;
  position: relative;
  z-index: 10;
  /* Above decorations */
}

.hero {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-box {
  background: linear-gradient(135deg, #fce4ec 0%, #e1f5fe 50%, #fff9c4 100%);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  color: var(--text);
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  animation: fadeIn 1s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-box h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #2d3436;
}

.hero-box p {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero-box {
    padding: 3rem 1.5rem;
  }

  .hero-box h1 {
    font-size: 2.2rem;
  }

  .hero-box p {
    font-size: 1.1rem;
  }
}

section {
  position: relative;
  z-index: 10;
  /* Above decorations */
}

/* Galería Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  border: 6px solid white;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

.card-favorite {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #dee2e6;
  font-size: 1.1rem;
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s;
}

.card-favorite:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  padding: 2rem;
  background-color: #fff;
  transition: var(--transition);
}

.card-info {
  padding: 2rem;
  background: white;
}

/* Secciones Home */
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.category-card {
  background: linear-gradient(135deg, #ffdae1 0%, #d1e9ff 50%, #ffefc2 100%);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}

.category-card .category-icon {
  color: #ffffff;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
}

.category-icon {
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(-5deg);
}

.category-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #2d3436;
}


.card-header {
  margin-bottom: 1rem;
}

.card-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  background: #f0f7ff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--pill);
}

.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-view {
  flex: 1;
  background: var(--primary);
  color: #000;
  padding: 0.6rem;
  text-align: center;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-view:hover {
  background: #8cd7f0;
}

.btn-download-sq {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-download-sq:hover {
  transform: scale(1.05);
}

.btn-download-sq .icon-svg {
  width: 22px;
  height: 22px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #000;
  box-shadow: 0 4px 15px rgba(169, 227, 246, 0.3);
}

.btn-primary:hover {
  background-color: #8cd7f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(169, 227, 246, 0.4);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text);
  box-shadow: 0 4px 15px rgba(226, 240, 203, 0.3);
}

.btn-secondary:hover {
  background-color: #d4e8b8;
  transform: translateY(-2px);
}

.btn-download {
  background: white;
  color: #adb5bd;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.btn-download:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
}

.btn-download-grid {
  width: calc(100% - 3rem);
  margin: 0 1.5rem 1.5rem;
  background: var(--primary);
  color: #000;
  font-weight: 700;
}

.btn-download-grid:hover {
  background: #8cd7f0;
}

/* Filtros */
.filters-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.filters {
  margin-bottom: 3rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-tag {
  text-decoration: none;
  color: #666;
  background: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  white-space: nowrap;
}

.filter-tag:hover {
  background: #e1f5fe;
  color: #000;
  border-color: #8cd7f0;
  transform: translateY(-2px);
}

.filter-tag.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(169, 227, 246, 0.4);
}

/* Formulario Admin */
.admin-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}

#preview {
  width: 100%;
  max-width: 300px;
  margin-top: 1rem;
  display: none;
  border: 2px dashed var(--border);
  border-radius: 10px;
}



/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar aesthetic */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8cd7f0;
}

/* Floating Decorations */
.floating-decor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background: transparent;
}

.decor-item {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.3;
  animation: floatingDecor 25s infinite ease-in-out;
  filter: blur(1px);
}

@keyframes floatingDecor {
  0% {
    transform: translateY(110vh) rotate(0deg) translateX(0);
  }

  25% {
    transform: translateY(75vh) rotate(90deg) translateX(30px);
  }

  50% {
    transform: translateY(50vh) rotate(180deg) translateX(-30px);
  }

  75% {
    transform: translateY(25vh) rotate(270deg) translateX(30px);
  }

  100% {
    transform: translateY(-10vh) rotate(360deg) translateX(0);
  }
}

/* SVG Icon Support */
.icon-svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  /* Prevent collapsing in flex containers */
}

.category-icon .icon-svg {
  width: 60px;
  height: 60px;
}

/* Responsive fixes and improvements */
@media (max-width: 1024px) {
  .nav-container {
    width: 280px;
    padding: 5rem 1.5rem 6rem;
  }

  .nav-item {
    padding: 0.8rem 1.2rem;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .main-header {
    padding: 0.6rem 1rem;
  }

  .logo-img-text {
    height: 35px;
  }

  .logo-img-icon {
    height: 35px;
  }

  .container {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }

  .hero-box {
    padding: 2.5rem 1.5rem;
  }

  .hero-box h1 {
    font-size: 1.8rem;
  }

  .hero-box p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .category-slider-wrapper {
    padding: 0;
    margin-bottom: 2.5rem;
  }

  .slider-btn {
    display: none;
  }

  .category-grid.slider-mode {
    gap: 1rem;
    padding: 1rem 0.5rem;
  }

  .category-grid.slider-mode .category-card {
    min-width: 160px;
    padding: 1.5rem;
  }

  .category-icon .icon-svg {
    width: 40px;
    height: 40px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .card-info {
    padding: 1.2rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .decor-item {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    width: 100%;
  }

  .hero-box {
    padding: 2rem 1.2rem;
  }

  .hero-box h1 {
    font-size: 1.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* Legal & Informational Pages Styles */
.legal-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 3.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: fadeIn 0.8s ease-out;
}

.legal-container h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.legal-container h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: var(--primary);
  border-radius: var(--pill);
}

.legal-container h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 2.5rem 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.legal-container h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.8rem 0 1rem;
}

.legal-container p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.legal-container ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-container li {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.legal-container strong {
  color: var(--text);
  font-weight: 700;
}

.legal-contact-box {
  margin-top: 3.5rem;
  padding: 2.5rem;
  background: var(--accent);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px dashed var(--primary);
}

.legal-contact-box h3 {
  margin-top: 0;
  color: var(--secondary);
}

.legal-contact-box p {
  margin-bottom: 0;
}

.legal-email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

.legal-email:hover {
  color: var(--primary);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .legal-container {
    margin: 2rem 1rem;
    padding: 2rem;
  }
  
  .legal-container h1 {
    font-size: 2rem;
  }
  
  .legal-container h2 {
    font-size: 1.4rem;
  }
}