:root {
  --navy: #010d35;
  --blue: #0075ff;
  --blue-deep: #0a4ec9;
  --orange: #fe951c;
  --orange-deep: #ff7b00;
  --sky: #dff2ff;
  --soft-bg: #eef4fb;
  --paper: #ffffff;
  --ink: #0d1b43;
  --muted: #5e6c88;
  --line: rgba(8, 24, 67, 0.12);
  --shadow-sm: 0 10px 24px rgba(8, 24, 67, 0.08);
  --shadow-md: 0 22px 48px rgba(8, 24, 67, 0.14);
}

/* ── Base ── */
.disclaimer-page {
  padding-top: 86px;
  color: var(--ink);
}

/* ── Hero ── */
.disclaimer-hero {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    #08245d 55%,
    #0a3580 100%
  );
  padding: 96px 0 80px;
  overflow: hidden;
  text-align: center;
}

.dh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.dh-orb-one {
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(0, 117, 255, 0.22) 0%,
    transparent 70%
  );
  top: -140px;
  left: -120px;
}

.dh-orb-two {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(254, 149, 28, 0.18) 0%,
    transparent 70%
  );
  bottom: -100px;
  right: -80px;
}

.dh-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 117, 255, 0.18);
  border: 1px solid rgba(0, 117, 255, 0.32);
  color: var(--sky);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.dh-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 20px;
}

.dh-lead {
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.75;
}

.dh-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
  font-weight: 600;
}

.dh-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Reveal animations ── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition:
    opacity 0.72s ease,
    transform 0.72s ease;
}

.reveal {
  transform: translateY(28px);
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: none;
}

/* ── Body section ── */
.disclaimer-body {
  background: linear-gradient(180deg, #eef4fb 0%, #f8fbff 100%);
  padding: 72px 0 96px;
}

.disclaimer-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  align-items: start;
}

/* ── Sidebar ── */
.terms-sidebar {
  position: sticky;
  top: 106px;
}

.terms-sidebar-inner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-label {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    padding-left 0.2s;
  line-height: 1.4;
}

.sidebar-link:hover {
  background: var(--soft-bg);
  color: var(--blue);
  padding-left: 16px;
}

.active-sidebar-link {
  background: rgba(0, 117, 255, 0.08);
  color: var(--blue);
  font-weight: 750;
}

/* ── Terms main ── */
.terms-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Scrollable box */
.terms-scroll-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-sm);
  height: 560px;
  overflow-y: auto;
  padding: 40px 44px;
  scroll-behavior: smooth;
}

.terms-scroll-box::-webkit-scrollbar {
  width: 6px;
}

.terms-scroll-box::-webkit-scrollbar-track {
  background: var(--soft-bg);
  border-radius: 99px;
}

.terms-scroll-box::-webkit-scrollbar-thumb {
  background: rgba(0, 117, 255, 0.28);
  border-radius: 99px;
}

.terms-scroll-box::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

/* Terms sections */
.terms-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

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

.terms-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(0, 117, 255, 0.12),
    rgba(0, 117, 255, 0.06)
  );
  border: 1px solid rgba(0, 117, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 14px;
}

.terms-section-icon.warning-icon {
  background: linear-gradient(
    135deg,
    rgba(254, 149, 28, 0.12),
    rgba(254, 149, 28, 0.06)
  );
  border-color: rgba(254, 149, 28, 0.22);
  color: var(--orange-deep);
}

.terms-section h2 {
  font-size: 1.28rem;
  font-weight: 850;
  color: var(--ink);
  margin-bottom: 14px;
}

.terms-section h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  margin: 22px 0 8px;
}

.terms-section p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.terms-section p:last-child {
  margin-bottom: 0;
}

.terms-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(
    135deg,
    rgba(254, 149, 28, 0.1),
    rgba(254, 149, 28, 0.04)
  );
  border: 1px solid rgba(254, 149, 28, 0.28);
  border-radius: 12px;
  padding: 12px 16px;
  color: #b45309;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.terms-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.terms-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 7px;
}

/* Contact grid */
.terms-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.terms-contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--soft-bg);
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
}

.terms-contact-card:hover {
  border-color: rgba(0, 117, 255, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
  color: var(--ink);
}

.terms-contact-card i {
  font-size: 1.35rem;
  color: var(--blue);
  margin-bottom: 2px;
}

.terms-contact-card strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

.terms-contact-card span {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Read progress bar ── */
.read-progress-bar {
  height: 5px;
  background: var(--line);
  border-radius: 0;
}

.read-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transition: width 0.15s ease;
  border-radius: 0;
}

.read-progress-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
  padding: 10px 0 6px;
  transition: color 0.3s;
}

.read-progress-label.read-complete {
  color: var(--blue);
}

/* ── Acceptance card ── */
.acceptance-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow-sm);
  padding: 36px 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.acceptance-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  opacity: 0.4;
  transition: opacity 0.4s;
}

.acceptance-card.acceptance-unlocked::before {
  opacity: 1;
}

.acceptance-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(0, 117, 255, 0.12),
    rgba(0, 117, 255, 0.05)
  );
  border: 1px solid rgba(0, 117, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--blue);
}

.acceptance-text h3 {
  font-size: 1.18rem;
  font-weight: 850;
  color: var(--ink);
  margin-bottom: 8px;
}

.acceptance-text p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* Checkbox */
.accept-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.55;
  user-select: none;
}

.accept-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 2px solid rgba(0, 117, 255, 0.35);
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition:
    background 0.2s,
    border-color 0.2s;
  color: transparent;
  font-size: 14px;
}

.accept-checkbox-label input:checked ~ .custom-check {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Buttons */
.acceptance-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-accept {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 117, 255, 0.22);
  transition:
    opacity 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-accept:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 117, 255, 0.3);
}

.btn-accept:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-accept.btn-accepted {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.22);
  pointer-events: none;
}

.btn-decline {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.btn-decline:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .disclaimer-layout {
    grid-template-columns: minmax(0, 1fr);
    overflow-wrap: anywhere;
  }

  .terms-sidebar {
    position: static;
  }

  .terms-sidebar-inner {
    padding: 18px 16px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .sidebar-link {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .sidebar-link:hover {
    padding-left: 10px;
  }
}

@media (max-width: 768px) {
  .disclaimer-hero {
    padding: 72px 0 60px;
  }

  .terms-scroll-box {
    height: 420px;
    padding: 28px 24px;
  }

  .acceptance-card {
    padding: 28px 24px 32px;
  }

  .terms-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .terms-scroll-box {
    height: 360px;
    padding: 22px 18px;
    border-radius: 16px 16px 0 0;
  }

  .acceptance-card {
    border-radius: 0 0 16px 16px;
    padding: 22px 18px 28px;
  }

  .dh-meta {
    gap: 14px;
    font-size: 0.8rem;
  }
}
