.terms-hero {
  background: linear-gradient(135deg, #0b1e33, #1e3a8a, #2563eb);
  padding: 200px 0 120px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.terms-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.terms-hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(145deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2;
}

.terms-hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-icons i {
  position: absolute;
  color: rgba(255, 255, 255, 0.1);
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.updated-bar {
  background: white;
  padding: 20px 0;
  border-bottom: 3px solid #0dcaf0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.updated-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.updated-date {
  background: linear-gradient(145deg, #1e3a8a, #2563eb);
  color: white;
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 600;
}

.updated-date i {
  margin-right: 10px;
  color: #0dcaf0;
}

.print-btn {
  background: linear-gradient(145deg, #0dcaf0, #0a58ca);
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.print-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(13, 202, 240, 0.3);
}

.terms-content {
  padding: 80px 0;
  background: #f8fafc;
}

.terms-wrapper {
  background: white;
  border-radius: 40px;
  padding: 60px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.terms-section {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
}

.terms-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.section-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(145deg, #1e3a8a, #2563eb);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  transform: rotate(45deg);
  transition: all 0.3s;
  flex-shrink: 0;
}

.section-icon i {
  transform: rotate(-45deg);
}

.terms-section:hover .section-icon {
  border-radius: 15px 15px 15px 0;
  transform: rotate(0deg);
  background: linear-gradient(145deg, #0dcaf0, #0a58ca);
}

.section-title h2 {
  font-size: 2rem;
  color: #1e3a8a;
  font-weight: 700;
  margin: 0;
}

.terms-section h3 {
  font-size: 1.3rem;
  color: #2563eb;
  margin: 25px 0 15px;
  font-weight: 600;
}

.terms-section p {
  color: #4b5563;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.terms-section ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.terms-section li {
  color: #4b5563;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 8px;
}

.terms-section li::marker {
  color: #0dcaf0;
}

.highlight-box {
  background: linear-gradient(145deg, #f0f9ff, #e6f0fa);
  border-left: 5px solid #0dcaf0;
  padding: 30px;
  border-radius: 20px;
  margin: 30px 0;
}

.highlight-box p {
  margin-bottom: 0;
  font-weight: 500;
}

.table-of-contents {
  background: #f8fafc;
  border-radius: 30px;
  padding: 30px;
  margin-bottom: 40px;
}

.table-of-contents h4 {
  color: #1e3a8a;
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.table-of-contents li a {
  color: #4b5563;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: white;
  border-radius: 15px;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.table-of-contents li a:hover {
  background: linear-gradient(145deg, #1e3a8a, #2563eb);
  color: white;
  transform: translateX(5px);
}

.table-of-contents li a i {
  color: #0dcaf0;
  font-size: 0.9rem;
}

.table-of-contents li a:hover i {
  color: white;
}

.agreement-section {
  background: linear-gradient(145deg, #0b1e33, #1e3a8a);
  border-radius: 30px;
  padding: 40px;
  color: white;
  margin-top: 50px;
}

.agreement-section h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.agreement-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  line-height: 1.7;
}

.agree-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-agree {
  background: linear-gradient(145deg, #0dcaf0, #0a58ca);
  color: white;
  border: none;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-agree:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(13, 202, 240, 0.3);
  color: white;
}

.btn-print {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-print:hover {
  background: white;
  color: #1e3a8a;
  border-color: white;
}

.newsletter-form-footer {
  margin-top: 20px;
  display: flex;
  width: 100%;
}

.newsletter-form-footer input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 8px 0 0 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form-footer input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form-footer button {
  padding: 12px 20px;
  border: none;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(135deg, #0dcaf0, #0a58ca);
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}

.newsletter-form-footer button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 202, 240, 0.3);
}

@media (max-width: 1200px) {
  .terms-hero h1 {
    font-size: 4rem;
  }
}

@media (max-width: 992px) {
  .terms-hero {
    padding: 180px 0 100px;
  }

  .terms-hero h1 {
    font-size: 3.5rem;
  }

  .terms-hero p {
    font-size: 1.1rem;
  }

  .terms-wrapper {
    padding: 40px;
  }

  .table-of-contents ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .terms-hero {
    padding: 150px 0 80px;
  }

  .terms-hero h1 {
    font-size: 2.5rem;
  }

  .terms-hero p {
    font-size: 1rem;
    padding: 0 20px;
  }

  .floating-icons i {
    font-size: 1.5rem;
  }

  .updated-bar-content {
    flex-direction: column;
    text-align: center;
  }

  .terms-wrapper {
    padding: 30px;
  }

  .section-title {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .terms-section h3 {
    font-size: 1.2rem;
  }

  .terms-section p {
    font-size: 1rem;
  }

  .terms-section li {
    font-size: 0.95rem;
  }

  .highlight-box {
    padding: 25px;
  }

  .agreement-section {
    padding: 30px;
  }

  .agreement-section h3 {
    font-size: 1.5rem;
  }

  .agree-buttons {
    justify-content: center;
  }

  .btn-agree,
  .btn-print {
    padding: 10px 25px;
    font-size: 0.95rem;
  }
  .social-icons {
    justify-content: center;
  }

  .newsletter-form-footer {
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
  }

  .newsletter-form-footer input,
  .newsletter-form-footer button {
    width: 100%;
    border-radius: 8px;
  }
}

@media (max-width: 576px) {
  .terms-hero h1 {
    font-size: 2rem;
  }

  .terms-wrapper {
    padding: 20px;
  }

  .table-of-contents {
    padding: 20px;
  }

  .table-of-contents h4 {
    font-size: 1.2rem;
  }

  .table-of-contents li a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .terms-section {
    margin-bottom: 35px;
    padding-bottom: 20px;
  }

  .terms-section h3 {
    font-size: 1.1rem;
  }

  .terms-section p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

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

  .highlight-box {
    padding: 20px;
  }

  .agreement-section {
    padding: 25px;
  }

  .agreement-section h3 {
    font-size: 1.3rem;
  }

  .agreement-section p {
    font-size: 0.95rem;
  }

  .btn-agree,
  .btn-print {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}
