/* Terms of Service Styles */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

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

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(145deg, #e1f3f7 0%, #cde5f5 100%);
  color: #2c4851;
  line-height: 1.65;
  min-height: 100vh;
}

.page-container {
  max-width: 920px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(44, 72, 81, 0.12);
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
}

.header {
  background: linear-gradient(135deg, #4a90a4 0%, #5fb3c3 50%, #74d0e0 100%);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #ffffff;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

.content {
  padding: 3rem 2.5rem;
}

.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  color: #3a6f7d;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 5px solid #74d0e0;
  position: relative;
}

.section h2::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #74d0e0, #4a90a4);
  border-radius: 3px;
}

.section p {
  font-size: 1rem;
  color: #3d5963;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.section ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.section li {
  color: #456b73;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  position: relative;
}

.section li::marker {
  color: #74d0e0;
}

.alert-box {
  background: linear-gradient(135deg, #e8f4f8 0%, #d4ebf2 100%);
  border-left: 6px solid #4a90a4;
  padding: 1.5rem 1.8rem;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(74, 144, 164, 0.15);
  position: relative;
}

.alert-box::before {
  content: "ℹ️";
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.alert-box p {
  margin-left: 2rem;
  color: #1e3a42;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.alert-box strong {
  color: #2d5a6b;
  font-weight: 600;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #4a90a4 0%, #74d0e0 100%);
  color: #ffffff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(74, 144, 164, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 2rem;
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(74, 144, 164, 0.4);
  background: linear-gradient(135deg, #3d7b8d 0%, #65c1d3 100%);
}

.back-button:active {
  transform: translateY(0);
}

.back-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.back-button:hover .back-arrow {
  transform: translateX(-3px);
}

.last-updated {
  text-align: center;
  font-size: 0.85rem;
  color: #6a7a85;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0f0f5;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-container {
    margin: 1rem;
    border-radius: 15px;
  }

  .header {
    padding: 2rem 1.5rem;
  }

  .header h1 {
    font-size: 2rem;
  }

  .content {
    padding: 2rem 1.5rem;
  }

  .section h2 {
    font-size: 1.4rem;
  }

  .section p,
  .section li {
    font-size: 0.9rem;
  }

  .alert-box {
    padding: 1.2rem 1.5rem;
  }

  .alert-box p {
    margin-left: 1.5rem;
  }

  .back-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.7rem;
  }

  .header .subtitle {
    font-size: 1rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }
}

.test-account-notice {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-left: 6px solid #ff9800;
  padding: 1.5rem 1.8rem;
  border-radius: 12px;
  margin: 2.5rem 0;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.15);
  position: relative;
}

.test-account-notice::before {
  content: "🧪";
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.test-account-notice p {
  margin-left: 2rem;
  color: #e65100;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.6;
}

.test-account-notice strong {
  color: #bf360c;
  font-weight: 700;
  background: rgba(255, 152, 0, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.scoring-policy-notice {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border-left: 6px solid #ffa726;
  padding: 1.5rem 1.8rem;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(255, 167, 38, 0.15);
  position: relative;
}

.scoring-policy-notice::before {
  content: "⚖️";
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.scoring-policy-notice p {
  margin-left: 2rem;
  color: #e65100;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.6;
}

.scoring-policy-notice strong {
  color: #bf360c;
  font-weight: 700;
  background: rgba(255, 167, 38, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
