/* ===== RESET ===== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #001020;
  color: #c8dff0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== HEADER ===== */

.terms-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(15px);
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
  text-decoration: none;
}

.logo span {
  color: #00d4ff;
}

.terms-header nav a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 20px;
  font-size: 1rem;
  opacity: 0.8;
  transition: 0.3s;
}

.terms-header nav a:hover {
  color: #00d4ff;
  opacity: 1;
}

/* ===== MAIN ===== */

.terms-main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

/* ===== HERO ===== */

.terms-hero {
  text-align: center;
  margin-bottom: 40px;
}

.terms-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 18px;
}

.terms-hero p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  color: rgba(170, 205, 235, 0.72);
}

.last-updated {
  margin-top: 24px;
  color: #00d4ff;
  font-size: 14px;
  font-weight: 700;
}

/* ===== TERMS CARD ===== */

.terms-card {
  background: linear-gradient(
    135deg,
    rgba(0, 26, 51, 0.7),
    rgba(0, 40, 80, 0.4)
  );

  border: 1px solid rgba(0, 212, 255, 0.1);

  border-radius: 20px;

  padding: 34px;

  margin-bottom: 20px;

  transition: 0.35s ease;
}

.terms-card:hover {
  border-color: rgba(0, 212, 255, 0.28);

  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

.terms-card h2 {
  font-size: 1.55rem;
  color: #ffffff;
  margin-bottom: 18px;
}

.terms-card p {
  color: rgba(170, 205, 235, 0.82);
  line-height: 1.85;
  margin-bottom: 16px;
}

.legal-contact-link {
  color: #00d4ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.45);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.legal-contact-link:hover {
  color: #7ff3ff;
  border-color: #7ff3ff;
}

.terms-card ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.terms-card li {
  color: rgba(170, 205, 235, 0.82);
  margin-bottom: 10px;
  line-height: 1.75;
}

.terms-section {
  margin-top: 72px;
}

.terms-section:first-child {
  margin-top: 0;
}

/* Intro Card */

.intro-card {
  text-align: center;
}

.intro-card p {
  font-size: 1.02rem;
  line-height: 1.95;
  color: #dceeff;
}

.intro-card p:last-child {
  margin-bottom: 0;
  font-weight: 600;
}

/* ===== FOOTER ===== */
.terms-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 24px;
  border-top: 2px solid rgba(0, 212, 255, 0.08);
}

.terms-footer p {
  font-size: 13px;
  color: rgba(170, 205, 235, 0.35);
}

@media (max-width: 640px) {
  .terms-header {
    padding: 12px 16px;
  }

  .terms-header .logo {
    font-size: 1.08rem;
  }

  .terms-header nav {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .terms-header nav a {
    margin-right: 0;
    font-size: 0.85rem;
  }

  .terms-main {
    padding: 96px 16px 56px;
  }

  .terms-card {
    padding: 24px;
  }

  .terms-card h2 {
    font-size: 1.3rem;
    line-height: 1.3;
  }
}

@media (max-width: 380px) {
  .terms-header .logo {
    font-size: 0.98rem;
  }

  .terms-header nav {
    gap: 8px;
  }

  .terms-header nav a {
    font-size: 0.78rem;
  }

  .terms-card {
    padding: 20px;
  }
}
