@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500&display=swap');

.terms-root {
  background: #f9f7f4;
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  color: #2d2a25;
  overflow-x: hidden;
}

.terms-hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.terms-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(184, 147, 90, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgb(238, 29, 29);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-label.in {
  opacity: 1;
  transform: translateY(0);
}

.hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgb(238, 29, 29);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -2px;
  color: #1e1b16;
  margin: 0 0 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}

.hero-title.in {
  opacity: 1;
  transform: translateY(0);
}

.hero-title em {
  font-style: italic;
  color: rgb(238, 29, 29);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  color: rgba(238, 29, 29, 0.53);
  opacity: 0;
  transition: opacity 0.7s ease 0.25s;
}

.hero-meta.in {
  opacity: 1;
}

.hero-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(238, 29, 29);
}

.hero-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 29, 29, 0.53), transparent);
  margin: 60px 0 0;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}

.hero-divider.in {
  opacity: 1;
}

.terms-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  padding: 0 0 120px;
}

@media (max-width: 900px) {
  .terms-layout {
    grid-template-columns: 1fr;
  }

  .terms-sidebar {
    display: none;
  }
}

.terms-sidebar {
  position: sticky;
  top: 40px;
  align-self: start;
  padding: 40px 40px 40px 0;
  border-right: 1px solid rgba(238, 29, 29, 0.53);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}

.terms-sidebar.in {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-heading {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgb(238, 29, 29);
  margin-bottom: 20px;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 0;
  font-size: 13px;
  color: rgb(238, 29, 29);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s;
  cursor: pointer;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: rgb(238, 29, 29);
}

.sidebar-nav li a .nav-num {
  font-size: 10px;
  font-weight: 500;
  color: inherit;
  min-width: 16px;
  opacity: 0.6;
}

.sidebar-nav li a .nav-bar {
  display: block;
  width: 0;
  height: 1px;
  background: #b8935a;
  transition: width 0.3s;
}

.sidebar-nav li a.active .nav-bar {
  width: 20px;
}

.terms-content {
  padding: 40px 0 40px 60px;
}

.intro-block {
  padding: 32px 36px;
  border: 1px solid rgba(238, 29, 29, 1);
  border-left: 3px solid rgba(238, 29, 29, 1);
  border-radius: 2px;

  margin-bottom: 56px;
  font-size: 15px;
  line-height: 1.75;
  color: #5a5248;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}

.intro-block.in {
  opacity: 1;
  transform: translateY(0);
}

.term-section {
  margin-bottom: 4px;
  border: 1px solid rgba(238, 29, 29, 0.53);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s, box-shadow 0.2s;
}

.term-section.in {
  opacity: 1;
  transform: translateY(0);
}

.term-section:hover {
  border-color: rgba(238, 29, 29, 0.53);
  box-shadow: 0 2px 16px rgba(238, 29, 29, 0.53);
}

.term-section.open {
  border-color: rgba(238, 29, 29, 0.53);
  background: #fffdf9;
  box-shadow: 0 4px 20px rgba(238, 29, 29, 0.53);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  font-size: 100px;
}


.section-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(238, 29, 29, 1);
  line-height: 1;
  min-width: 36px;
  transition: color 0.2s;
}

.term-section.open .section-number {
  color: rgba(238, 29, 29, 0.53);
}

.section-title {
  font-size: 15px;
  font-weight: 500;
  color: #2d2a25;
  letter-spacing: 0.2px;
}

.section-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(238, 29, 29, 0.53);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.term-section.open .section-toggle {
  background: rgba(238, 29, 29, 0.53);
  border-color: rgba(238, 29, 29, 0.926);
}

.toggle-icon {
  width: 10px;
  height: 10px;
  position: relative;
}

.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  background: rgba(238, 29, 29, 0.914);
  transition: transform 0.25s, background 0.2s, opacity 0.25s;
}

.toggle-icon::before {
  width: 10px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.toggle-icon::after {
  width: 1.5px;
  height: 10px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  opacity: 1;
}

.term-section.open .toggle-icon::before {
  background: #ffffff;
}

.term-section.open .toggle-icon::after {
  background: #ffffff;
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.section-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.term-section.open .section-body {
  max-height: 300px;
}

.section-body-inner {
  padding: 0 28px 24px 84px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(13, 13, 13, 1);
}

.contact-card {
  margin-top: 48px;
  padding: 40px;
  border: 1px solid rgba(238, 29, 29, 0.53);
  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 0.6s ease 1s;
}

.contact-card.in {
  opacity: 1;
}

.contact-card-text h4 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #1e1b16;
  margin: 0 0 6px;
}

.contact-card-text p {
  font-size: 13px;
  color: rgba(238, 29, 29, 0.53);
  margin: 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(238, 29, 29, 0.975);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.contact-link:hover {
  background: rgb(249, 249, 249);
  transform: translateY(-1px);
}

.contact-link svg {
  width: 14px;
  height: 14px;
}