/* 
* SafeBot Terms of Use Styles
* Stylesheet for SafeBot Terms of Use page
*/

/* Terms Section */
.terms-section {
  padding: calc(80px + var(--spacing-xxl)) 0 var(--spacing-xxl);
  background-color: var(--background);
}

.terms-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--divider);
}

.terms-header h1 {
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.last-updated {
  color: var(--text-tertiary);
  font-style: italic;
  margin-bottom: 0;
}

.terms-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--background);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
}

.terms-block {
  margin-bottom: var(--spacing-xl);
}

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

.terms-block h2 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--divider);
}

.terms-block h3 {
  color: var(--primary-light);
  font-size: 1.3rem;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.terms-block p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.terms-block ul {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.terms-block ul li {
  margin-bottom: var(--spacing-md);
  position: relative;
  line-height: 1.6;
}

.terms-block ul li:last-child {
  margin-bottom: 0;
}

.terms-block a {
  color: var(--primary);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.terms-block a:hover {
  color: var(--primary-light);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .terms-section {
    padding-top: calc(70px + var(--spacing-xl));
  }

  .terms-content {
    padding: var(--spacing-lg);
    box-shadow: none;
  }

  .terms-block h2 {
    font-size: 1.5rem;
  }

  .terms-block h3 {
    font-size: 1.2rem;
  }

  .terms-block ul {
    padding-left: var(--spacing-md);
  }
}

@media screen and (max-width: 576px) {
  .terms-section {
    padding-top: calc(60px + var(--spacing-lg));
  }

  .terms-content {
    padding: var(--spacing-md);
  }

  .terms-block h2 {
    font-size: 1.3rem;
  }

  .terms-block h3 {
    font-size: 1.1rem;
    margin-top: var(--spacing-md);
  }

  .terms-block {
    margin-bottom: var(--spacing-lg);
  }
}

/* Footer Vertical Column Mode */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-md);
}

.footer-col {
  width: 100%;
  max-width: 500px;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.footer-logo {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: var(--spacing-md) 0 !important;
  padding: var(--spacing-sm) 0 !important;
}

.footer-col h4 {
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.footer-col ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-col ul li {
  margin-bottom: 0;
}

.footer-col p {
  margin-bottom: var(--spacing-sm);
}

.footer-bottom {
  margin-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Additional footer adjustments */
footer {
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content>.footer-col:first-child {
  margin-bottom: var(--spacing-sm);
}

.footer-content>.footer-col:last-child {
  margin-top: 0;
}

/* Ensure consistent footer logo spacing */
.footer-logo {
  margin: var(--spacing-xs) 0 !important;
  padding: 0 !important;
}

/* Tighter layout for legal links */
.footer-col:nth-child(4) {
  margin-top: 0;
  padding-top: 0;
}

.footer-col:nth-child(4) h4 {
  margin-bottom: var(--spacing-xs);
}

/* Reduce overall footer spacing */
.footer-content {
  margin-bottom: var(--spacing-md);
}

/* Hide footer logo text but keep the image */
.footer-logo a {
  font-size: 0;
}

.footer-logo img {
  margin-right: 0;
  height: 70px !important;
  /* Force consistent height */
  width: auto !important;
  margin-top: 5px !important;
  /* Add minimal top margin */
}

/* Set max-width for the footer description text */
.footer-col:first-child p {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* Legal section column layout */
.footer-col:nth-child(4) ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-col:nth-child(4) ul li {
  width: 100%;
  max-width: 200px;
}

.footer-col:nth-child(4) ul li a {
  display: block;
  padding: var(--spacing-xs) 0;
  transition: all var(--transition-fast);
}

.footer-col:nth-child(4) ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Mobile specific footer adjustments */
@media screen and (max-width: 576px) {
  footer {
    padding: var(--spacing-md) 0 var(--spacing-sm);
  }

  .footer-col {
    margin-bottom: var(--spacing-xs);
  }

  .footer-col p {
    font-size: 0.9rem;
  }

  .footer-logo {
    margin-bottom: var(--spacing-xs);
  }

  /* Override any mobile-specific logo size reductions */
  .logo img,
  .footer-logo img {
    height: 70px !important;
    width: auto !important;
    margin-top: 5px !important;
    padding-top: 0 !important;
  }

  .footer-bottom {
    margin-top: var(--spacing-sm);
  }
}