﻿/* ============================================================
   terms.css - Terms & Privacy page styles
   ============================================================ */

/* ==================== PAGE LAYOUT ==================== */
.termsSection {
  min-height: 100vh;
  padding: 100px 24px 60px;
  background: var(--bg-gradient);
}

.termsContainer {
  max-width: 900px;
  margin: 0 auto;
}

.termsHeader {
  text-align: center;
  margin-bottom: 32px;
}

.termsTitle {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
}

.termsSubtitle {
  font-size: 16px;
  color: #999;
  margin: 0;
}

/* ==================== DOC VIEWER (paginated) ==================== */
.docViewer {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* ---------- Top controls bar ---------- */
.docControls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(135deg, #1a2a6c 0%, #2b4a8f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docPageInfo {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  user-select: none;
}

.docActions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.docBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.docBtn:hover:not(:disabled) {
  background: rgba(1, 214, 245, 0.25);
  color: #01D6F5;
}

.docBtn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.docBtn svg {
  width: 20px;
  height: 20px;
}

/* ---------- Pages ---------- */
.docPages {
  position: relative;
}

.docPage {
  display: none;
  padding: 48px 56px;
  min-height: 480px;
  animation: fadeInPage 0.25s ease;
}

.docPage.active {
  display: block;
}

@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Page content typography ---------- */
.docPage h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0b0b0b;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #01D6F5;
}

.docPage p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  margin: 0 0 14px;
}

.docPage ul {
  padding-left: 22px;
  margin: 0 0 14px;
}

.docPage ul li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 6px;
}

.docPage a {
  color: #01D6F5;
  text-decoration: none;
}

.docPage a:hover {
  text-decoration: underline;
}

/* ---------- Bottom controls bar ---------- */
.docControlsBottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(135deg, #1a2a6c 0%, #2b4a8f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Dot indicators ---------- */
.docDots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.docDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.docDot.active {
  background: #01D6F5;
  transform: scale(1.3);
}

/* ==================== NAVIGATION LINK ==================== */
.termsBackNav {
  text-align: center;
  margin-top: 40px;
  padding-bottom: 8px;
}

.btnBackRegister {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid var(--accent-cyan);
  border-radius: 12px;
  color: var(--accent-cyan);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all var(--transition-smooth);
}

.btnBackRegister svg {
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
}

.btnBackRegister:hover {
  background: var(--accent-cyan);
  color: #0b0b0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(1, 214, 245, 0.3);
}

.btnBackRegister:hover svg {
  transform: translateX(-4px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .termsSection {
    padding: 90px 16px 40px;
  }

  .termsTitle {
    font-size: 28px;
  }

  .termsSubtitle {
    font-size: 14px;
  }

  .docPage {
    padding: 28px 24px;
    min-height: 380px;
  }

  .docPage h2 {
    font-size: 1.2rem;
  }

  .docControls,
  .docControlsBottom {
    padding: 10px 14px;
  }

  .docPageInfo {
    font-size: 13px;
  }

  .docBtn {
    width: 32px;
    height: 32px;
  }
}