:root {
  --yellow: #ddd92a;
  --gold: #eae151;
  --black: #2d2a32;
  --dark-black: #0f0f0f;
  --white: #fafdf6;
  --light-gray: #aaa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  background-color: var(--dark-black);
  color: var(--white);
  overflow-x: hidden;
}

.chess-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(15, 15, 15, 0.92), rgba(15, 15, 15, 0.92)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ddd92a' fill-opacity='0.15'%3E%3Cpath d='M0 0h30v30H0V0zm30 30h30v30H30V30zM0 30h30v30H0V30zm30-30h30v30H30V0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -2;
  transition: background-position 0.3s ease;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v1H0zM0 99h100v1H0z' fill='%23ddd92a' fill-opacity='0.1'/%3E%3Cpath d='M0 0v100h1V0zM99 0v100h1V0z' fill='%23ddd92a' fill-opacity='0.1'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

.main-content {
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 100px;
  position: relative;
}

.legal-header {
  padding: 0 20px 40px;
  text-align: center;
  position: relative;
}

.legal-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.legal-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--yellow);
  box-shadow: 0 0 10px rgba(221, 217, 42, 0.5);
}

.legal-subtitle {
  font-size: 1.2rem;
  color: var(--yellow);
  margin-bottom: 40px;
  font-weight: 500;
}

.legal-date {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 20px;
}

.legal-content {
  padding: 0 30px;
}

.legal-section {
  margin-bottom: 40px;
  background: rgba(15, 15, 15, 0.7);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--yellow);
  backdrop-filter: blur(5px);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.legal-section-title {
  font-size: 1.8rem;
  color: var(--yellow);
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  padding-left: 20px;
  transition: all 0.3s ease;
  white-space: normal;
  display: inline-block;
}

.legal-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 25px;
  background-color: var(--yellow);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(221, 217, 42, 0.5);
}

.legal-subsection-title {
  font-size: 1.3rem;
  color: var(--gold);
  margin: 25px 0 15px;
  font-weight: 600;
  position: relative;
  padding-left: 15px;
}

.legal-subsection-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background-color: var(--gold);
  border-radius: 2px;
}

.legal-text {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.legal-list {
  margin-left: 20px;
  margin-bottom: 20px;
}

.legal-list li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-left: 5px;
}

.legal-list li::marker {
  color: var(--yellow);
}

.legal-sublist {
  margin-left: 20px;
  margin-top: 8px;
}

.legal-sublist li {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.legal-sublist li::marker {
  color: var(--gold);
}

.legal-highlight {
  color: var(--yellow);
  font-weight: 600;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.legal-highlight:hover {
  color: var(--gold);
}

.legal-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--yellow), transparent);
  margin: 40px 0;
  opacity: 0.3;
  position: relative;
}

.legal-contact {
  background: linear-gradient(135deg, rgba(221, 217, 42, 0.1), rgba(45, 42, 50, 0.3));
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
  border: 1px solid rgba(221, 217, 42, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.legal-contact:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--yellow);
}

.legal-contact-title {
  font-size: 1.5rem;
  color: var(--yellow);
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.legal-contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  position: relative;
  z-index: 1;
}

.legal-contact-item {
  margin: 10px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.legal-contact-item:hover {
  transform: scale(1.05) translateY(-5px);
}

.legal-contact-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
}

.legal-contact-value {
  font-size: 1.1rem;
  color: var(--white);
}

@media (max-width: 768px) {
  .legal-title {
    font-size: 2rem;
  }

  .legal-section-title {
    font-size: 1.3rem;
  }

  .legal-subsection-title {
    font-size: 1.1rem;
  }

  .legal-contact-info {
    flex-direction: column;
  }

  .main-content {
    padding: 80px 10px 60px;
  }

  .legal-content {
    padding: 0 10px;
  }

  .legal-section {
    padding: 20px;
  }
}
