/* Modern Terms & Conditions Styles */
:root {
  --primary: #002787;
  --primary-dark: #218a4c;
  --secondary: #6a00ff;
  --text: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --white: #fff;
  --highlight: #ffdb58;
  --border-radius: 12px;
}

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

body, html {
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-light);
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background-color: var(--primary);
  padding: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header .logo {
  text-align: center;
}

.header .logo img {
  height: 70px;
  transition: transform 0.3s ease;
}

.header .logo img:hover {
  transform: scale(1.05);
}

.page-title {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: white;
  text-align: center;
  padding: 40px 0;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.page-title h1 {
  font-family: 'Chewy', cursive;
  font-size: 2.5rem;
  margin: 0;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/pattern.png');
  opacity: 0.1;
  z-index: 0;
}

.content {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.terms-nav {
  background: var(--primary-dark);
  padding: 15px;
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.terms-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.terms-nav li {
  margin: 0;
}

.terms-nav a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: inline-block;
}

.terms-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.section {
  margin-bottom: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-family: 'Chewy', cursive;
  font-size: 1.6rem;
  position: relative;
  padding-bottom: 8px;
}

h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px;
}

p {
  margin-bottom: 15px;
  color: var(--text);
}

ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.highlight {
  background-color: var(--highlight);
  padding: 2px 5px;
  border-radius: 3px;
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: var(--primary);
  color: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.footer a {
  color: white;
  text-decoration: underline;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background: var(--secondary);
}

/* Responsive styles */
@media (max-width: 768px) {
  .content {
    padding: 20px;
  }
  
  .page-title h1 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  .terms-nav {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
  }
  
  .terms-nav ul {
    display: inline-flex;
    padding-bottom: 5px;
  }
}

@media (max-width: 480px) {
  .page-title {
    padding: 30px 0;
  }
  
  .page-title h1 {
    font-size: 1.8rem;
  }
  
  .content {
    padding: 15px;
  }
} 