/* ─────────────────────────────────────────────
   TERMS & CONDITIONS PAGE CSS
   Brand: White bg / RTW Orange / Charcoal / Lato
───────────────────────────────────────────── */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* Buttons */

/* ── NAV ── */

/* Mobile nav */

/* ── PAGE HERO ── */
.page-hero {
  padding: 8rem 0 4rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--orange); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--orange-pale); border: 1px solid rgba(231,92,35,0.25);
  border-radius: 50px; padding: 0.4rem 1rem;
  font-size: 0.8rem; font-weight: 600; color: var(--orange);
  margin-bottom: 1.25rem;
}
.badge__dot {
  width: 7px; height: 7px; background: var(--orange);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.4); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.page-hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--charcoal);
  margin-bottom: 1rem;
  animation: fadeUp 0.6s ease both;
}
.page-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero__sub {
  font-size: 1.05rem; color: var(--text-muted); max-width: 560px; line-height: 1.7;
  margin-bottom: 0.5rem; animation: fadeUp 0.6s 0.1s ease both;
}
.page-hero__date {
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
  animation: fadeUp 0.6s 0.2s ease both;
}

/* ── TERMS LAYOUT ── */
.terms-section { padding: 4rem 0 6rem; background: var(--white); }

.terms-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Sidebar */
.terms-sidebar { position: sticky; top: 7rem; }
.toc-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow);
}
.toc-title {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.25rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.toc-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.toc-link {
  display: block; padding: 0.45rem 0.75rem;
  font-size: 0.83rem; font-weight: 500; color: var(--text-muted);
  border-radius: 8px; border-left: 2px solid transparent;
  transition: all var(--trans);
}
.toc-link:hover { background: var(--orange-pale); color: var(--orange); border-left-color: var(--orange); }
.toc-link.active { background: var(--orange-pale); color: var(--orange); border-left-color: var(--orange); font-weight: 700; }

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

.terms-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 7rem;
  animation: fadeUp 0.5s ease both;
}
.terms-block:last-of-type { border-bottom: none; }

.terms-block__header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}
.terms-block__num {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--orange-pale); border: 1.5px solid rgba(231,92,35,0.3);
  border-radius: 8px;
  font-size: 0.72rem; font-weight: 900;
  color: var(--orange); letter-spacing: 0.04em;
}
.terms-block h2 {
  font-size: 1.25rem; font-weight: 800;
  color: var(--charcoal); line-height: 1.2;
}
.terms-block p {
  font-size: 0.95rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 0.9rem;
}
.terms-block p:last-child { margin-bottom: 0; }
.terms-block a {
  color: var(--orange); font-weight: 500;
}
.terms-block a:hover { text-decoration: underline; }

/* CTA block */
.terms-cta {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 2.5rem; padding: 2rem;
  background: var(--orange-pale); border: 1px solid rgba(231,92,35,0.25);
  border-radius: var(--radius-lg);
}
.terms-cta__icon { font-size: 2rem; flex-shrink: 0; }
.terms-cta h3 { font-size: 1rem; font-weight: 700; color: var(--charcoal); margin-bottom: 0.35rem; }
.terms-cta p { font-size: 0.88rem; color: var(--text-muted); }
.terms-cta a { color: var(--orange); font-weight: 600; }
.terms-cta a:hover { text-decoration: underline; }

/* ── FOOTER ── */

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .terms-layout { grid-template-columns: 220px 1fr; gap: 2rem; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; margin-left: auto; }
  .page-hero { padding: 7rem 0 3rem; }
  .terms-layout { grid-template-columns: 1fr; }
  .terms-sidebar { position: static; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 480px) {
  .terms-block { padding: 1.75rem 0; }
  .terms-cta { flex-direction: column; text-align: center; }
}
