:root {
  --accent-color: #efe17c;
  --bg-color: #0b0b0b;
  --card-bg: #161616;
  --text-color: #e0e0e0;
  --muted-text: #a0a0a0;
  --transition: all 0.2s ease-in-out;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Inter", -apple-system, sans-serif;
  line-height: 1.6;
}

.info-section {
  padding: 40px 20px;
  background-color: var(--card-bg);
  max-width: 1100px;
  margin: 0vw 0vw 2vw 0vw;
}

.info-section h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--accent-color);
}

.section-desc {
  color: #6b7280;
  margin-bottom: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px 22px;
  border: 1px solid #efe17c;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #efe17c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card h3 i {
  color: #efe17c;
}

.info-card ul {
  padding-left: 18px;
}

.info-card li {
  margin-bottom: 8px;
  color: #ffffff;
  line-height: 1.5;
}

.info-card li span {
  color: #ffffff;
  font-size: 0.9rem;
}

/* --- Header --- */
.terms-header {
  text-align: center;
  padding: 80px 20px 30px;
}

.terms-header h1 {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 5px;
}
.effective-date {
  color: var(--muted-text);
  font-size: 0.85rem;
}

/* --- Layout --- */
.main-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
  gap: 30px;
}

/* --- STICKY & COMPRESSED SIDEBAR --- */
.toc-sidebar {
  flex: 0 0 250px;
  position: sticky;
  top: 80px; /* Distance from top of screen */
  height: calc(100vh - 40px); /* Fill screen height */
  display: none;
  flex-direction: column;
  padding-right: 10px;
}

@media (min-width: 992px) {
  .toc-sidebar {
    display: flex;
  }
}

.toc-sidebar h4 {
  color: var(--accent-color);
  font-size: 0.8rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toc-sidebar ul {
  list-style: none;
  border-left: 1px solid #333;
  overflow-y: auto; /* Scroll if content exceeds screen height */
  padding-bottom: 20px;
}

/* Hide scrollbar for sidebar while allowing scroll */
.toc-sidebar ul::-webkit-scrollbar {
  width: 0px;
}

.toc-sidebar li a {
  color: var(--muted-text);
  text-decoration: none;
  font-size: 0.78rem; /* Compressed font */
  padding: 0px 0px; /* Compressed padding */
  display: block;
  transition: var(--transition);
  border-left: 2px solid transparent;
  margin-left: -1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toc-sidebar li a:hover,
.toc-sidebar li a.active {
  color: var(--accent-color);
  border-left-color: var(--accent-color);
  background: rgba(239, 225, 124, 0.05);
}

/* --- Content --- */
.terms-content {
  flex: 1;
  min-width: 0;
}

section {
  scroll-margin-top: 20px;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #222;
}

h2 {
  color: var(--accent-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
h2::before {
  content: "";
  width: 3px;
  height: 20px;
  background: var(--accent-color);
  margin-right: 12px;
}

ul {
  padding-left: 20px;
}
li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.contact-info {
  background: #1e1e1a;
  border: 1px dashed var(--accent-color) !important;
}

.footer-note {
  text-align: center;
  padding: 40px;
  color: var(--muted-text);
  font-size: 0.85rem;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  transition: var(--transition);
}
#backToTop.show {
  opacity: 1;
}
