/* Terms of Service Specific Styles */

.terms-main {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8faff 0%, #e8f4fd 100%);
  padding: 120px 0 60px;
}

.back-to-top {
  margin-bottom: 40px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4285F4;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 20px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.back-button:hover {
  background: linear-gradient(90deg, #58c6ff 0%, #076ad9 40%, #ff3bef 80%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(66, 133, 244, 0.2);
}

.back-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.terms-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 40px;
}

.terms-header {
  background: linear-gradient(135deg, #4285F4 0%, #1976D2 100%);
  color: white;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.terms-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #58c6ff 0%, #076ad9 40%, #ff3bef 80%);
  opacity: 0.9;
}

.terms-header * {
  position: relative;
  z-index: 2;
}

.update-date {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
  font-weight: 500;
}

.terms-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.terms-body {
  padding: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.notice-section {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 40px;
  border-left: 5px solid #f39c12;
}

.notice-text {
  font-size: 15px;
  line-height: 1.7;
  color: #856404;
  margin: 0;
  font-weight: 500;
}

.terms-section {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e8f0fe;
}

.terms-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.terms-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid transparent;
  background: linear-gradient(90deg, #58c6ff 0%, #076ad9 40%, #ff3bef 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.terms-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #58c6ff 0%, #076ad9 40%, #ff3bef 80%);
  border-radius: 2px;
}

.terms-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 25px 0 15px 0;
  padding-left: 15px;
  border-left: 4px solid #4285F4;
}

.terms-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.info-table {
  background: #f8faff;
  border-radius: 15px;
  overflow: hidden;
  margin: 20px 0;
  border: 1px solid #e8f0fe;
}

.info-row {
  display: flex;
  border-bottom: 1px solid #e8f0fe;
  transition: background-color 0.3s ease;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row:hover {
  background-color: #f0f8ff;
}

.info-label {
  background: #4285F4;
  color: white;
  padding: 20px;
  font-weight: 600;
  font-size: 15px;
  min-width: 180px;
  display: flex;
  align-items: center;
}

.info-value {
  padding: 20px;
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.product-category {
  margin-bottom: 30px;
  background: #f8faff;
  border-radius: 15px;
  padding: 25px;
  border-left: 5px solid #4285F4;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.product-list li {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.product-list li::before {
  content: '●';
  color: #4285F4;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.product-note {
  background: #e8f4fd;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  margin-top: 20px;
  border-left: 4px solid #4285F4;
}

.payment-list,
.return-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.payment-list li,
.return-list li {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
  padding: 20px;
  background: #f8faff;
  border-radius: 10px;
  border-left: 4px solid #4285F4;
}

.sub-list {
  margin-top: 15px;
  margin-left: 0;
  list-style: none;
  padding: 0;
}

.sub-list li {
  font-size: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8f0fe;
  margin-left: 0;
}

.sub-list li::before {
  content: '◦';
  color: #666;
  margin-right: 10px;
}

.return-note {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 14px;
  color: #856404;
  margin-top: 20px;
  border-left: 4px solid #f39c12;
}

.back-to-top-link {
  text-align: center;
  padding: 40px 0;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4285F4;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 30px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.top-link:hover {
  background: linear-gradient(90deg, #58c6ff 0%, #076ad9 40%, #ff3bef 80%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(66, 133, 244, 0.2);
}

.top-link svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .terms-main {
    padding: 100px 0 40px;
  }

  .terms-header {
    padding: 40px 20px;
  }

  .terms-title {
    font-size: 1.8rem;
  }

  .terms-body {
    padding: 40px 20px;
  }

  .info-row {
    flex-direction: column;
  }

  .info-label {
    min-width: auto;
    border-radius: 0;
  }

  .terms-section h2 {
    font-size: 20px;
  }

  .terms-section h3 {
    font-size: 16px;
  }

  .terms-section p,
  .payment-list li,
  .return-list li {
    font-size: 15px;
  }

  .product-category {
    padding: 20px;
  }

  .back-button,
  .top-link {
    font-size: 14px;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .terms-header {
    padding: 30px 15px;
  }

  .terms-body {
    padding: 30px 15px;
  }

  .terms-section {
    margin-bottom: 40px;
  }

  .terms-section h2 {
    font-size: 18px;
  }

  .info-label,
  .info-value {
    padding: 15px;
  }

  .product-category {
    padding: 15px;
  }

  .payment-list li,
  .return-list li {
    padding: 15px;
    font-size: 14px;
  }

  .notice-section {
    padding: 20px;
  }

  .notice-text {
    font-size: 14px;
  }
}