/* terms-conditions.html — AI agent terms & conditions layout (teal · purple · orange) */

.terms-page {
  --lt-teal: #3ac4ce;
  --lt-purple: #a181ff;
  --lt-orange: #ff984e;
  --lt-bg0: #03050a;
  --lt-bg1: #070c14;
  --lt-text: rgba(240, 244, 255, 0.92);
  --lt-muted: rgba(200, 210, 235, 0.78);
  min-height: 100vh;
  background: var(--lt-bg0);
  color: var(--lt-text);
}

.terms-page main {
  padding-top: 5.5rem;
}

@media (min-width: 992px) {
  .terms-page main {
    padding-top: 6rem;
  }
}

.terms-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6.5vw, 4.5rem) clamp(18px, 4.5vw, 36px) clamp(3.25rem, 8vw, 5.25rem);
  margin-bottom: clamp(0.5rem, 2vw, 1.25rem);
  background:
    radial-gradient(ellipse 75% 55% at 12% 5%, rgba(161, 129, 255, 0.16), transparent 52%),
    radial-gradient(ellipse 70% 50% at 92% 95%, rgba(255, 152, 78, 0.12), transparent 48%),
    radial-gradient(ellipse 50% 45% at 50% 50%, rgba(58, 196, 206, 0.07), transparent 55%),
    linear-gradient(185deg, var(--lt-bg0) 0%, var(--lt-bg1) 100%);
}

.terms-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 175, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 130, 200, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 100%, #000 8%, transparent 72%);
  pointer-events: none;
  opacity: 0.9;
}

.terms-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.terms-hero__kicker {
  margin: 0 0 0.65rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(198, 200, 245, 0.95);
}

.terms-hero__title {
  margin: 0 0 0.85rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw + 1rem, 3.15rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.terms-hero__title span {
  background: linear-gradient(115deg, #ffd4b8 0%, var(--lt-orange) 35%, var(--lt-purple) 58%, var(--lt-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.terms-hero__meta {
  margin: 0;
  padding-bottom: 0.25rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--lt-muted);
  max-width: 36rem;
  margin-inline: auto;
}

.terms-hero__meta strong {
  color: rgba(220, 228, 255, 0.95);
  font-weight: 600;
}

.terms-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(20px, 5vw, 42px) clamp(3.75rem, 9vw, 6rem);
  display: grid;
  row-gap: clamp(1.75rem, 4vw, 2.5rem);
  column-gap: clamp(2rem, 5vw, 3.75rem);
  align-items: start;
}

@media (min-width: 992px) {
  .terms-shell {
    grid-template-columns: minmax(230px, 288px) minmax(0, 1fr);
  }
}

.terms-toc {
  position: relative;
  padding: 1.5rem 1.35rem 1.55rem;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(12, 16, 28, 0.92), rgba(6, 10, 18, 0.96));
  border: 1px solid rgba(255, 152, 78, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

@media (min-width: 992px) {
  .terms-toc {
    position: sticky;
    top: 6.5rem;
  }
}

.terms-toc__label {
  margin: 0 0 1.05rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 152, 78, 0.15);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lt-orange);
}

.terms-toc ul {
  margin: 0;
  padding: 0.35rem 0 0;
  list-style: none;
}

.terms-toc li {
  margin-bottom: 0.35rem;
}

.terms-toc a {
  display: block;
  padding: 0.48rem 0.55rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.84rem;
  color: var(--lt-muted);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.terms-toc a:hover {
  color: #fff;
  background: rgba(161, 129, 255, 0.12);
}

.terms-article {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.terms-block {
  position: relative;
  margin-bottom: clamp(1.5rem, 3.5vw, 2rem);
  padding: clamp(1.55rem, 3.5vw, 2.2rem) clamp(1.45rem, 3.2vw, 2rem) clamp(1.55rem, 3.5vw, 2.2rem)
    clamp(1.65rem, 3.5vw, 2.45rem);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(10, 14, 24, 0.94), rgba(5, 8, 16, 0.98));
  border: 1px solid rgba(255, 152, 78, 0.15);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(161, 129, 255, 0.05) inset;
}

.terms-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--lt-orange), var(--lt-purple), var(--lt-teal));
  opacity: 0.9;
}

.terms-block h2 {
  margin: 0 0 1rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: #fff;
  scroll-margin-top: 6.5rem;
}

.terms-block p,
.terms-block li {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 0.96rem);
  line-height: 1.68;
  color: var(--lt-muted);
}

.terms-block p {
  margin: 0 0 0.85rem;
}

.terms-block p:last-child {
  margin-bottom: 0;
}

.terms-block ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.terms-block li {
  margin-bottom: 0.4rem;
}

.terms-block li::marker {
  color: var(--lt-orange);
}

.terms-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(161, 129, 255, 0.09);
  border: 1px solid rgba(161, 129, 255, 0.25);
  font-size: 0.88rem !important;
  color: rgba(210, 215, 245, 0.9) !important;
}

.terms-cta-row {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid rgba(255, 152, 78, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  justify-content: center;
}

.terms-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.terms-cta--primary {
  color: #1a1428;
  background: linear-gradient(135deg, #8af0f8 0%, var(--lt-teal) 45%, #2aa8b5 100%);
  box-shadow: 0 12px 32px rgba(58, 196, 206, 0.28);
}

.terms-cta--primary:hover {
  color: #1a1428;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(58, 196, 206, 0.35);
}

.terms-cta--ghost {
  color: #fff;
  border: 1px solid rgba(58, 196, 206, 0.45);
  background: rgba(58, 196, 206, 0.08);
}

.terms-cta--ghost:hover {
  color: #fff;
  border-color: var(--lt-orange);
  background: rgba(255, 152, 78, 0.1);
  transform: translateY(-2px);
}

.terms-toc-mobile {
  margin-top: 0.35rem;
  margin-bottom: 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 152, 78, 0.24);
  background: rgba(10, 14, 24, 0.88);
  overflow: hidden;
}

.terms-toc-mobile summary {
  padding: 1rem 1.15rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.terms-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.terms-toc-mobile summary::after {
  content: "";
  float: right;
  width: 8px;
  height: 8px;
  margin-top: 0.35rem;
  border-right: 2px solid var(--lt-orange);
  border-bottom: 2px solid var(--lt-purple);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.terms-toc-mobile[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.5rem;
}

.terms-toc-mobile ul {
  margin: 0;
  padding: 0 1.1rem 1.15rem;
  list-style: none;
  max-height: min(50vh, 360px);
  overflow-y: auto;
}

.terms-toc-mobile a {
  display: block;
  padding: 0.45rem 0.35rem;
  font-size: 0.84rem;
  color: var(--lt-muted);
  text-decoration: none;
}

.terms-toc-mobile a:hover {
  color: #fff;
}

@media (max-width: 991.98px) {
  .terms-toc {
    order: 2;
  }

  .terms-article {
    order: 1;
  }

  .terms-shell {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.25rem);
    padding-inline: clamp(18px, 4.5vw, 28px);
  }

  .terms-hero {
    margin-bottom: 0;
    padding-bottom: clamp(2.5rem, 7vw, 4rem);
  }
}

.terms-page .site-footer .footer-bottom {
  border-top: none;
  padding-top: 1.5rem;
}

.terms-page .site-footer .footer-bottom a {
  color: rgba(240, 244, 255, 0.75);
  text-decoration: none;
}

.terms-page .site-footer .footer-bottom a:hover {
  color: var(--lt-orange);
}

@media (max-width: 575.98px) {
  .terms-page main {
    padding-top: 5rem;
  }

  .terms-hero {
    padding: 2.25rem 16px 2.75rem;
  }

  .terms-hero__title {
    font-size: 1.75rem;
  }

  .terms-shell {
    padding: 1.35rem 16px 3.25rem;
    gap: 1.35rem;
  }

  .terms-block {
    padding: 1.3rem 1.15rem 1.35rem 1.35rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
  }

  .terms-block::before {
    top: 0.85rem;
    bottom: 0.85rem;
  }

  .terms-toc {
    padding: 1.2rem 1.1rem;
  }

  .terms-toc-mobile {
    margin-bottom: 1.15rem;
  }
}
