body {
  background: linear-gradient(135deg, var(--light) 0%, #f5f5f5 100%);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
}

.logo-section {
  text-align: center;
  margin-bottom: 2rem;
}

.page-logo {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-clickable {
  cursor: pointer;
}

.logo-clickable:hover {
  transform: scale(1.05);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.back-btn:hover {
  background: #f8f8f8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.legal-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.toggle-section {
  margin-bottom: 3rem;
}

.toggle-container {
  display: flex;
  background: white;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 500px;
  margin: 0 auto;
}

.toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.toggle-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(201, 100, 66, 0.25);
  transform: translateY(-1px);
}

.toggle-btn:hover:not(.active) {
  background: rgba(201, 100, 66, 0.05);
  color: var(--accent);
}

.toggle-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.toggle-btn.active svg {
  transform: scale(1.1);
}

.legal-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

.content-section {
  display: none;
  padding: 3rem;
  animation: fadeIn 0.5s ease;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.last-updated {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.content-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.content-block h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  letter-spacing: -0.01em;
}

.content-block h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 1rem 0;
  letter-spacing: -0.01em;
}

.content-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
}

.content-block ul {
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
}

.content-block li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.content-block li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.contact-info {
  background: linear-gradient(135deg, rgba(201, 100, 66, 0.05) 0%, rgba(212, 118, 74, 0.05) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(201, 100, 66, 0.1);
  margin-top: 1rem;
}

.contact-info p {
  margin: 0;
  color: var(--text-primary);
}

.contact-info strong {
  color: var(--accent);
}

.auth-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-footer-text {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.auth-footer-link {
  color: var(--accent) !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-footer-link:hover {
  color: var(--deep-orange) !important;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-container {
    padding: 1rem;
  }
  
  .legal-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .back-btn {
    align-self: flex-start;
  }
  
  .legal-title {
    font-size: 1.5rem;
  }
  
  .toggle-container {
    margin: 0;
    max-width: none;
  }
  
  .toggle-btn {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
  
  .toggle-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .content-section {
    padding: 2rem 1.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .content-block h3 {
    font-size: 1.3rem;
  }
  
  .content-block h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .legal-container {
    padding: 0.5rem;
  }
  
  .content-section {
    padding: 1.5rem 1rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .content-block {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .toggle-btn {
    padding: 0.75rem;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
  }
  
  .toggle-btn svg {
    width: 14px;
    height: 14px;
  }
}

.toggle-btn:focus,
.back-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media print {
  .toggle-section,
  .legal-header,
  .logo-section {
    display: none;
  }
  
  .content-section {
    display: block !important;
    box-shadow: none;
    border: none;
    padding: 0;
  }
  
  .legal-content {
    box-shadow: none;
    border: none;
  }
}