:root {
  --color-blue: #4a90e2;
  --color-yellow: #ffd93d;
  --color-green: #6bcf7f;
  --color-purple: #9b59b6;
  --color-white: #ffffff;
  --color-light-bg: #f5f7fa;
  --color-dark: #2c3e50;
  --color-grey: #95a5a6;
  --shadow-iso: 4px 4px 0px rgba(0, 0, 0, 0.1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--color-light-bg);
  color: var(--color-dark);
  line-height: 1.6;
}

.age-modal {
  display: flex;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.age-cube {
  max-width: 500px;
  width: 90%;
}

.cube-container {
  position: relative;
  width: 100%;
  height: 400px;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(20deg);
  margin-bottom: 2rem;
}

.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backface-visibility: hidden;
}

.cube-front {
  transform: translateZ(50px);
  border: 5px solid var(--color-blue);
}

.cube-top {
  transform: rotateX(90deg) translateZ(50px);
  background: var(--color-yellow);
}

.cube-right {
  transform: rotateY(90deg) translateZ(50px);
  background: var(--color-green);
}

.age-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.cube-front h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-blue);
}

.age-text {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.age-subtitle {
  font-size: 0.9rem;
  color: var(--color-grey);
  margin-bottom: 1rem;
}

.age-buttons {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.btn-cube {
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-iso);
  position: relative;
  overflow: hidden;
}

.btn-green {
  background: var(--color-green);
  color: white;
}

.btn-green:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
}

.btn-red {
  background: #e74c3c;
  color: white;
}

.btn-red:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
}

.cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 1.5rem;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: bottom 0.5s ease;
  border-top: 4px solid var(--color-yellow);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-icon {
  font-size: 3rem;
}

.cookie-content p {
  flex: 1;
  min-width: 250px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.btn-accept,
.btn-learn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
}

.btn-accept {
  background: var(--color-green);
  color: white;
  box-shadow: var(--shadow-iso);
}

.btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}

.btn-learn {
  background: transparent;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
}

.btn-learn:hover {
  background: var(--color-blue);
  color: white;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.isometric-map {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.navbar-iso {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-poly {
  text-decoration: none;
}

.logo-cube {
  width: 50px;
  height: 50px;
  background: var(--color-yellow);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-iso);
  transition: var(--transition-smooth);
}

.logo-text {
  transform: rotate(-45deg);
  font-weight: 800;
  font-size: 0.6rem;
  line-height: 1.1;
  color: var(--color-dark);
  text-align: center;
}

.logo-cube:hover {
  transform: rotate(45deg) scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-blue);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark);
  cursor: pointer;
}

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

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.3;
}

.shape-cube {
  width: 80px;
  height: 80px;
  background: var(--color-yellow);
  top: 10%;
  left: 10%;
  transform: rotate(45deg);
  animation: float 6s ease-in-out infinite;
}

.shape-pyramid {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 80px solid var(--color-green);
  top: 20%;
  right: 15%;
  animation: float 8s ease-in-out infinite 1s;
}

.shape-sphere {
  width: 100px;
  height: 100px;
  background: var(--color-blue);
  border-radius: 50%;
  bottom: 20%;
  left: 20%;
  animation: float 7s ease-in-out infinite 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
}

.hero-title {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.poly-accent {
  color: var(--color-yellow);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.feature-block {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-iso);
  transform: rotate(-2deg);
  transition: var(--transition-smooth);
}

.feature-block:nth-child(2) {
  transform: rotate(2deg);
}

.feature-block:hover {
  transform: rotate(0deg) translateY(-10px);
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15);
}

.block-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-block h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-blue);
}

.feature-block p {
  color: var(--color-grey);
}

.btn-hero {
  padding: 1.5rem 3rem;
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--color-yellow);
  color: var(--color-dark);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.btn-hero:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-hero i {
  margin-right: 0.5rem;
}

section {
  padding: 6rem 0;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-grey);
  margin-bottom: 4rem;
}

.building-blocks {
  background: var(--color-white);
}

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

.info-cube {
  background: var(--color-light-bg);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-iso);
  transition: var(--transition-smooth);
}

.info-cube:hover {
  transform: translateY(-10px);
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15);
}

.cube-icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
  transform: rotate(-5deg);
}

.cube-icon.blue {
  background: var(--color-blue);
}
.cube-icon.yellow {
  background: var(--color-yellow);
  color: var(--color-dark);
}
.cube-icon.green {
  background: var(--color-green);
}
.cube-icon.purple {
  background: var(--color-purple);
}

.info-cube h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.info-cube p {
  line-height: 1.8;
  color: var(--color-grey);
}

.terrain-notice {
  background: var(--color-blue);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.terrain-notice i {
  font-size: 2rem;
  flex-shrink: 0;
}

.terrain-notice p {
  line-height: 1.8;
}

.poly-games {
  background: var(--color-light-bg);
}

.games-terrain {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .games-terrain {
    grid-template-columns: 1fr;
  }
}

.game-cube {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-iso);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.game-cube:hover {
  transform: translateY(-10px);
  box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.15);
}

.game-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-yellow);
  color: var(--color-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
}

.game-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(100, 200, 255, 0.6);
}

/* Фонові зображення для кожної гри */
.game-cube[data-game="cube-cascade"] .game-visual {
  background-image: url("../images/1.jpg");
}

.game-cube[data-game="pyramid-peak"] .game-visual {
  background-image: url("../images/2.jpg");
}

.game-cube[data-game="sphere-spin"] .game-visual {
  background-image: url("../images/3.jpg");
}

.game-cube[data-game="terrain-tiles"] .game-visual {
  background-image: url("../images/4.jpg");
}

/* Затемнення для кращої видимості контенту */
.game-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
  transition: var(--transition-smooth);
}

.game-cube:hover .game-visual::before {
  background: rgba(0, 0, 0, 0.1);
}

.game-cube:hover .game-visual {
  box-shadow: 0 0 40px rgba(100, 200, 255, 0.8);
}

.visual-cube {
  width: 120px;
  height: 120px;
  transform: rotate(45deg);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
  opacity: 0; /* Приховуємо геометричні фігури */
}

.game-cube:hover .visual-cube {
  transform: rotate(45deg) scale(1.1);
}

.visual-pyramid {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
  opacity: 0; /* Приховуємо геометричні фігури */
}

.game-cube:hover .visual-pyramid {
  transform: scale(1.1);
}

.visual-sphere {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
  opacity: 0; /* Приховуємо геометричні фігури */
}

.game-cube:hover .visual-sphere {
  transform: scale(1.1);
}

.visual-tiles {
  width: 140px;
  height: 140px;
  background: linear-gradient(
      45deg,
      transparent 45%,
      currentColor 45%,
      currentColor 55%,
      transparent 55%
    ),
    linear-gradient(
      -45deg,
      transparent 45%,
      currentColor 45%,
      currentColor 55%,
      transparent 55%
    );
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
  opacity: 0; /* Приховуємо геометричні фігури */
}

.game-cube:hover .visual-tiles {
  transform: rotate(90deg);
}

.blue-game {
  background: var(--color-blue);
}
.yellow-game {
  border-bottom-color: var(--color-yellow);
}
.green-game {
  background: var(--color-green);
}
.purple-game {
  color: var(--color-purple);
}

.game-cube h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.game-cube p {
  color: var(--color-grey);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.game-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-grey);
}

.game-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-play {
  width: 100%;
  padding: 1.2rem;
  background: var(--color-blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-iso);
  transition: var(--transition-smooth);
}

.btn-play:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
}

.btn-play i {
  margin-right: 0.5rem;
}

.game-modal {
  display: none;
  position: fixed;
  z-index: 5000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.95);
  backdrop-filter: blur(10px);
}

.game-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-modal-content {
  position: relative;
  width: 95%;
  height: 95%;
  max-width: 1400px;
  max-height: 900px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.game-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5001;
  background: var(--color-yellow);
  color: var(--color-dark);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-iso);
  transition: var(--transition-smooth);
}

.game-close:hover {
  transform: scale(1.1);
  background: #e74c3c;
  color: white;
}

.game-container {
  width: 100%;
  height: 100%;
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.player-stats {
  background: white;
}

.stats-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.stat-tower {
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
}

.tower-level {
  background: var(--color-light-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-iso);
  text-align: center;
  transition: var(--transition-smooth);
}

.tower-level:hover {
  transform: translateX(10px);
}

.level-1 {
  background: var(--color-blue);
  color: white;
}

.level-2 {
  background: var(--color-yellow);
  color: var(--color-dark);
}

.level-3 {
  background: var(--color-green);
  color: white;
}

.tower-level i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.tower-level h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stats-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stats-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.stat-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  flex-shrink: 0;
}

.stat-text h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.stat-text p {
  color: var(--color-grey);
  line-height: 1.7;
}

.contact-town {
  background: var(--color-light-bg);
}

.town-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.town-buildings {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.building {
  perspective: 800px;
}

.building-top {
  width: 100%;
  height: 30px;
  background: var(--color-yellow);
  transform: rotateX(60deg);
  transform-origin: bottom;
  box-shadow: var(--shadow-iso);
}

.building-body {
  background: white;
  padding: 2rem;
  border-radius: 0 0 15px 15px;
  box-shadow: var(--shadow-iso);
  transition: var(--transition-smooth);
}

.building:hover .building-body {
  transform: translateY(-5px);
}

.building-body i {
  font-size: 2.5rem;
  color: var(--color-blue);
  margin-bottom: 1rem;
  display: block;
}

.building-body h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.building-body p {
  line-height: 1.8;
  color: var(--color-grey);
}

.building-body a {
  color: var(--color-blue);
  text-decoration: none;
}

.building-body a:hover {
  text-decoration: underline;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-iso);
}

.contact-form h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-dark);
  text-align: center;
}

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

.form-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-blue);
  font-size: 1.2rem;
}

.form-group textarea + i {
  top: 1.5rem;
  transform: none;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--color-light-bg);
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  background: white;
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 1.2rem;
  background: var(--color-green);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-iso);
  transition: var(--transition-smooth);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
}

.btn-submit i {
  margin-right: 0.5rem;
}

.legal-land {
  background: white;
}

.legal-cubes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  perspective: 1000px;
}

.legal-cube {
  position: relative;
  height: 300px;
  transform-style: preserve-3d;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

.legal-cube:hover {
  transform: rotateY(-15deg) rotateX(10deg);
}

.cube-top,
.cube-front,
.cube-side {
  position: absolute;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  backface-visibility: hidden;
}

.cube-top {
  height: 60px;
  background: var(--color-yellow);
  transform: rotateX(90deg) translateZ(90px);
}

.cube-front {
  height: 240px;
  background: var(--color-light-bg);
  transform: translateZ(30px);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-iso);
}

.cube-side {
  width: 60px;
  height: 240px;
  background: var(--color-blue);
  transform: rotateY(90deg) translateZ(30px);
}

.cube-front i {
  font-size: 4rem;
  color: var(--color-blue);
  margin-bottom: 1.5rem;
}

.cube-front h3 {
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--color-dark);
}

.footer {
  background: var(--color-dark);
  color: white;
  padding: 4rem 0 2rem;
  border-top: 5px solid var(--color-yellow);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--color-yellow);
}

.footer-section p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
  color: var(--color-yellow);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 968px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .stats-layout,
  .town-layout {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 90px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem;
    gap: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .cube-container {
    height: 350px;
  }

  section {
    padding: 4rem 0;
  }
}

.legal-page {
  min-height: 100vh;
  padding-top: 1rem;
  background: var(--color-light-bg);
}

.legal-container {
  max-width: 900px;
  margin: 1rem auto 2rem;
  padding: 1.5rem 2rem 3rem;
  background: white;
  border-radius: 20px;
  box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.1);
  position: relative;
}

.legal-container::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: 10px;
  bottom: 10px;
  background: linear-gradient(
    135deg,
    rgba(74, 144, 226, 0.1),
    rgba(155, 89, 182, 0.1)
  );
  border-radius: 20px;
  z-index: -1;
}

.legal-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--color-blue) 0%,
    var(--color-purple) 100%
  );
  border-radius: 20px;
  box-shadow: var(--shadow-iso);
  transform: perspective(1000px) rotateX(2deg);
}

.legal-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.legal-date {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  font-size: 1.1rem;
}

.legal-content h2 {
  font-size: 1.8rem;
  color: var(--color-blue);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.4rem;
  color: var(--color-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  line-height: 1.9;
  margin-bottom: 1.25rem;
  color: var(--color-dark);
}

.legal-content ul,
.legal-content ol {
  margin-left: 2rem;
  margin-bottom: 1.25rem;
  line-height: 1.9;
}

.legal-content li {
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.legal-content strong {
  color: var(--color-blue);
}

.legal-contact {
  background: linear-gradient(
    135deg,
    rgba(74, 144, 226, 0.1),
    rgba(107, 207, 127, 0.1)
  );
  padding: 2rem;
  border-radius: 15px;
  border-left: 6px solid var(--color-blue);
  margin: 2rem 0;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
  transform: translateX(5px);
  transition: var(--transition-smooth);
}

.legal-contact:hover {
  transform: translateX(0);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}

.back-home {
  display: inline-block;
  margin: 2rem 0;
  padding: 1rem 2rem;
  background: var(--color-yellow);
  color: var(--color-dark);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: var(--shadow-iso);
  transition: var(--transition-smooth);
}

.back-home:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 35px auto;
}

.footer-legal img {
  height: 60px;
}
