/* === Legal Pages === */
.legal-page .container {
  max-width: 928px;
  text-align: left;
  min-height: calc(100dvh - var(--header-height));
  padding: var(--footer-height) 2rem var(--footer-height) 2rem;
}

.icon-box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px; 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--icon-box-shadow);
  cursor: pointer;
}

.color-brand {
  background: var(--bg-color-brand);
}

.home-link{
  width: 28px;
  height: 28px;
}

.legal-page h1 {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-page .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 64px;
  transition: color .5s ease;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.legal-card {
  background-color: var(--card-bg);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  transition: all .5s ease;
}

.legal-card h3 {
  margin-top: 0;
  font-size: 1.1em;
  color: var(--brand);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-card p, 
.legal-card li {
  color: var(--text-main);
  line-height: 1.6;
  font-size: 0.95em;
  transition: color .5s ease;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 10px;
}

.contact-list a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: all .5s ease;
}

.contact-list a:hover {
  border-bottom-color: var(--brand);
}

.divider {
  border: 0;
  height: 1px;
  background: var(--card-border);
  margin: 40px 0;
  transition: background .5s ease;
}

.legal-text-content h2 {
  margin-top: 64px;
  margin-bottom: 24px;
  font-size: 1.5em;
  border-bottom: 2px solid var(--card-border);
  padding-bottom: 10px;
  color: var(--text-main);
}

.legal-text-content h3 {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.2em;
  color: var(--text-main);
  transition: color .5s ease;
}

.legal-text-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  transition: color .5s ease;
}

.legal-text-content a {
  color: var(--brand);
  transition: color .5s ease;
}

@media (max-width: 768px) {
  .legal-page .container {
    padding: 2rem; 
    min-height: auto; 
  }

  .icon-box {
    display: flex;
    margin: 0 auto 20px auto;
  }

  .home-link {
    display: block; 
    margin: 0 auto;
  }

  .legal-page h1 {
    margin-top: 15px; 
  }
  
  .legal-page .subtitle {
    margin-bottom: 32px;
  }
  
  .legal-grid {
    margin-bottom: 32px;
  }
}