/* CSS Variables */
:root {
  --primary-color: #7b2cbf;
  --primary-light: #9d4edd;
  --primary-dark: #5a189a;
  --secondary-color: #4361ee;
  --secondary-light: #7209b7;
  --secondary-dark: #3a0ca3;
  --accent-color: #ffd700;
  --accent-light: #ffdf33;
  --accent-dark: #e6c200;
  --background-dark: #0a1128;
  --background-light: #e0aaff;
  --text-light: #ffffff;
  --text-muted: #f8f9fa;
  --text-dark: #333333;
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 25px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --transition-fast: 0.3s;
  --transition-medium: 0.5s;
  --transition-slow: 0.8s;
}

/* Global Styles */
body {
  font-family: "Roboto", sans-serif;
  background-color: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
  background-image: url("../images/bg.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.95)
  );
  z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-light);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-light);
}

/* Navigation Styles */
#main-nav {
  background-color: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-medium);
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-dark)
  );
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* Terms of Service Styles */
.terms-container {
  background-color: rgba(20, 29, 54, 0.85);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(123, 44, 191, 0.2);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-light),
    var(--accent-color)
  );
  border-radius: 3px;
}

/* List Styles */
ul,
ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Footer Styles */
footer {
  background-color: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(123, 44, 191, 0.3);
}

/* Back to Top Button */
#back-to-top {
  background-color: var(--primary-dark);
  transition: all var(--transition-fast);
}

#back-to-top:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  .terms-container {
    padding: 1.5rem !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-dark);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}
